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 try: | 9 try: |
10 from matplotlib.font_manager import FontProperties | 10 from matplotlib.font_manager import FontProperties |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 """run a test of the latest svn revision.""" | 535 """run a test of the latest svn revision.""" |
536 for browser in get_browsers(): | 536 for browser in get_browsers(): |
537 current_file = 'correctness%s-%s' % (self.cur_time, browser) | 537 current_file = 'correctness%s-%s' % (self.cur_time, browser) |
538 self.trace_file = os.path.join('tools', 'testing', | 538 self.trace_file = os.path.join('tools', 'testing', |
539 'perf_testing', self.result_folder_name, current_file) | 539 'perf_testing', self.result_folder_name, current_file) |
540 self.add_svn_revision_to_trace(self.trace_file) | 540 self.add_svn_revision_to_trace(self.trace_file) |
541 dart_sdk = os.path.join(os.getcwd(), utils.GetBuildRoot(utils.GuessOS(), | 541 dart_sdk = os.path.join(os.getcwd(), utils.GetBuildRoot(utils.GuessOS(), |
542 'release', 'ia32'), 'dart-sdk') | 542 'release', 'ia32'), 'dart-sdk') |
543 run_cmd([os.path.join('.', 'tools', 'test.py'), | 543 run_cmd([os.path.join('.', 'tools', 'test.py'), |
544 '--component=webdriver', '--flag=%s' % browser, '--flag=--frog=%s' % \ | 544 '--component=webdriver', '--flag=%s' % browser, '--flag=--frog=%s' % \ |
545 os.path.join(dart_sdk, 'bin', 'frogc'), '--report' | 545 os.path.join(dart_sdk, 'bin', 'frogc'), '--report', |
546 '--flag=--froglib=%s' % os.path.join(dart_sdk, 'lib'), | 546 '--flag=--froglib=%s' % os.path.join(dart_sdk, 'lib'), |
547 '--timeout=20', '--progress=color', '--mode=release', '-j1', | 547 '--timeout=20', '--progress=color', '--mode=release', '-j1', |
548 self.test_type], self.trace_file, append=True) | 548 self.test_type], self.trace_file, append=True) |
549 | 549 |
550 def process_file(self, afile): | 550 def process_file(self, afile): |
551 """Given a trace file, extract all the relevant information out of it to | 551 """Given a trace file, extract all the relevant information out of it to |
552 determine the number of correctly passing tests. | 552 determine the number of correctly passing tests. |
553 | 553 |
554 Arguments: | 554 Arguments: |
555 afile the filename string""" | 555 afile the filename string""" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 if has_new_code(): | 754 if has_new_code(): |
755 run_test_sequence(cl, size, language, perf) | 755 run_test_sequence(cl, size, language, perf) |
756 else: | 756 else: |
757 time.sleep(SLEEP_TIME) | 757 time.sleep(SLEEP_TIME) |
758 else: | 758 else: |
759 run_test_sequence(cl, size, language, perf) | 759 run_test_sequence(cl, size, language, perf) |
760 | 760 |
761 if __name__ == '__main__': | 761 if __name__ == '__main__': |
762 main() | 762 main() |
763 | 763 |
OLD | NEW |