| 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 getpass | 8 import getpass |
| 9 import math | 9 import math |
| 10 from matplotlib.font_manager import FontProperties | 10 from matplotlib.font_manager import FontProperties |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 suffix = '.exe' | 542 suffix = '.exe' |
| 543 for browser in get_browsers(): | 543 for browser in get_browsers(): |
| 544 current_file = 'correctness%s-%s' % (self.cur_time, browser) | 544 current_file = 'correctness%s-%s' % (self.cur_time, browser) |
| 545 self.trace_file = os.path.join('tools', 'testing', | 545 self.trace_file = os.path.join('tools', 'testing', |
| 546 'perf_testing', self.result_folder_name, current_file) | 546 'perf_testing', self.result_folder_name, current_file) |
| 547 self.add_svn_revision_to_trace(self.trace_file) | 547 self.add_svn_revision_to_trace(self.trace_file) |
| 548 dart_sdk = os.path.join(os.getcwd(), utils.GetBuildRoot(utils.GuessOS(), | 548 dart_sdk = os.path.join(os.getcwd(), utils.GetBuildRoot(utils.GuessOS(), |
| 549 'release', 'ia32'), 'dart-sdk') | 549 'release', 'ia32'), 'dart-sdk') |
| 550 run_cmd([os.path.join('.', 'tools', 'testing', 'bin', system, | 550 run_cmd([os.path.join('.', 'tools', 'testing', 'bin', system, |
| 551 'dart' + suffix), os.path.join('tools', 'test.dart'), | 551 'dart' + suffix), os.path.join('tools', 'test.dart'), |
| 552 '--component=webdriver', | 552 '--compiler=frog', '--runtime=%s' % browser, |
| 553 '--browser=%s' % browser, '--frog=%s' % os.path.join(dart_sdk, 'bin', | 553 '--frog=%s' % os.path.join(dart_sdk, 'bin', |
| 554 'frogc'), '--froglib=%s' % os.path.join(dart_sdk, 'lib'), '--report', | 554 'frogc'), '--froglib=%s' % os.path.join(dart_sdk, 'lib'), '--report', |
| 555 '--timeout=20', '--progress=color', '--mode=release', | 555 '--timeout=20', '--progress=color', '--mode=release', |
| 556 self.test_type], self.trace_file, append=True) | 556 self.test_type], self.trace_file, append=True) |
| 557 | 557 |
| 558 def process_file(self, afile): | 558 def process_file(self, afile): |
| 559 """Given a trace file, extract all the relevant information out of it to | 559 """Given a trace file, extract all the relevant information out of it to |
| 560 determine the number of correctly passing tests. | 560 determine the number of correctly passing tests. |
| 561 | 561 |
| 562 Arguments: | 562 Arguments: |
| 563 afile: the filename string""" | 563 afile: the filename string""" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 while True: | 765 while True: |
| 766 if has_new_code(): | 766 if has_new_code(): |
| 767 run_test_sequence(cl, size, language, perf, username, password) | 767 run_test_sequence(cl, size, language, perf, username, password) |
| 768 else: | 768 else: |
| 769 time.sleep(SLEEP_TIME) | 769 time.sleep(SLEEP_TIME) |
| 770 else: | 770 else: |
| 771 run_test_sequence(cl, size, language, perf, username, password) | 771 run_test_sequence(cl, size, language, perf, username, password) |
| 772 | 772 |
| 773 if __name__ == '__main__': | 773 if __name__ == '__main__': |
| 774 main() | 774 main() |
| OLD | NEW |