OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 import datetime | 7 import datetime |
8 import math | 8 import math |
9 from matplotlib.font_manager import FontProperties | 9 from matplotlib.font_manager import FontProperties |
10 import matplotlib.pyplot as plt | 10 import matplotlib.pyplot as plt |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
504 suffix = '' | 504 suffix = '' |
505 if platform.system() == 'Windows': | 505 if platform.system() == 'Windows': |
506 suffix = '.exe' | 506 suffix = '.exe' |
507 for browser in get_browsers(): | 507 for browser in get_browsers(): |
508 current_file = 'correctness%s-%s' % (self.cur_time, browser) | 508 current_file = 'correctness%s-%s' % (self.cur_time, browser) |
509 self.trace_file = os.path.join('tools', 'testing', | 509 self.trace_file = os.path.join('tools', 'testing', |
510 'perf_testing', self.result_folder_name, current_file) | 510 'perf_testing', self.result_folder_name, current_file) |
511 self.add_svn_revision_to_trace(self.trace_file) | 511 self.add_svn_revision_to_trace(self.trace_file) |
512 dart_sdk = os.path.join(os.getcwd(), utils.GetBuildRoot(utils.GuessOS(), | 512 dart_sdk = os.path.join(os.getcwd(), utils.GetBuildRoot(utils.GuessOS(), |
513 'release', 'ia32'), 'dart-sdk') | 513 'release', 'ia32'), 'dart-sdk') |
514 #TODO(efortuna): Complain to whesse to get frog and froglib flags | |
Siggi Cherem (dart-lang)
2012/01/13 18:43:34
Rephrase :), maybe simply say:
TODO(efortuna): en
| |
515 #implemented in test.dart. Until then we'll be testing frogsh instead | |
516 #of minfrog! | |
514 run_cmd([os.path.join('.', 'tools', 'testing', 'bin', system, | 517 run_cmd([os.path.join('.', 'tools', 'testing', 'bin', system, |
515 'dart' + suffix), os.path.join('tools', 'test.dart'), | 518 'dart' + suffix), os.path.join('tools', 'test.dart'), |
516 '--component=webdriver', '--flag=%s,--frog=%s,--froglib=%s' % \ | 519 '--component=webdriver', |
517 (browser, os.path.join(dart_sdk, 'bin', 'frogc'), | 520 '--browser=%s' % browser, '--frog=%s' % os.path.join(dart_sdk, 'bin', |
518 os.path.join(dart_sdk, 'lib')), '--report', | 521 'frogc'),'--froglib=%s' % os.path.join(dart_sdk, 'lib')), '--report', |
Siggi Cherem (dart-lang)
2012/01/13 18:43:34
space after ,
| |
519 '--timeout=20', '--progress=color', '--mode=release', '-j1', | 522 '--timeout=20', '--progress=color', '--mode=release', '-j1', |
520 self.test_type], self.trace_file, append=True) | 523 self.test_type], self.trace_file, append=True) |
521 | 524 |
522 def process_file(self, afile): | 525 def process_file(self, afile): |
523 """Given a trace file, extract all the relevant information out of it to | 526 """Given a trace file, extract all the relevant information out of it to |
524 determine the number of correctly passing tests. | 527 determine the number of correctly passing tests. |
525 | 528 |
526 Arguments: | 529 Arguments: |
527 afile the filename string""" | 530 afile the filename string""" |
528 browser = afile.rpartition('-')[2] | 531 browser = afile.rpartition('-')[2] |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
722 if has_new_code(): | 725 if has_new_code(): |
723 run_test_sequence(cl, size, language, perf) | 726 run_test_sequence(cl, size, language, perf) |
724 else: | 727 else: |
725 time.sleep(SLEEP_TIME) | 728 time.sleep(SLEEP_TIME) |
726 else: | 729 else: |
727 run_test_sequence(cl, size, language, perf) | 730 run_test_sequence(cl, size, language, perf) |
728 | 731 |
729 if __name__ == '__main__': | 732 if __name__ == '__main__': |
730 main() | 733 main() |
731 | 734 |
OLD | NEW |