15 test_command = sys.argv[1]
18 p = subprocess.Popen(test_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
26 raise RuntimeError(
"Test exited with error")
31 if line.startswith(var_prefix):
32 varnames.append(line.split(
'=')[0].strip().replace(var_prefix,
''))
33 exec(line.replace(var_prefix,
''))
34 if len(varnames) == 3:
35 pylab.plot(locals()[varnames[0]], locals()[varnames[1]], label=locals()[varnames[2]])
36 pylab.xlabel(varnames[0])
37 pylab.ylabel(varnames[1])
43 fig_filename = test_command.split(
'/')[-1] +
'.png'
44 pylab.savefig(fig_filename)
45 print '<DartMeasurementFile name="Graph" type="image/png">' + os.path.join(os.path.dirname(test_command), fig_filename) +
'</DartMeasurementFile>'