Daniel Dunbar | 5a51f70 | 2010-07-30 02:54:33 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | import re |
| 4 | import sys |
| 5 | |
| 6 | def main(): |
| 7 | _,testname,path = sys.argv |
| 8 | data = open(path).read() |
| 9 | for result in re.finditer('Result-([^:]*): (.*)', data): |
| 10 | name, value = result.groups() |
| 11 | value = float(value) |
| 12 | print |
| 13 | print '-' * 62 |
| 14 | print ">>> ========= '%s.Subtest.%s' Program " % (testname, name) |
| 15 | print '-' * 62 |
| 16 | print |
| 17 | print 'TEST-PASS: exec %s.Subtest.%s' % (testname, name) |
| 18 | print 'TEST-RESULT-exec-success: pass' |
| 19 | print 'TEST-RESULT-exec-time: program %f' % value |
| 20 | |
| 21 | if __name__ == '__main__': |
| 22 | main() |