Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tools/testing/perf_testing/create_graph.py

Issue 9252002: Make changes for Safari to run with webdriver on the bots. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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): Ensure that the frog and froglib flags work when they get 514 #TODO(efortuna): Ensure that the frog and froglib flags work when they get
Siggi Cherem (dart-lang) 2012/01/18 01:35:16 TODO can go away :)?
Emily Fortuna 2012/01/18 02:20:36 Done.
515 # implemented in test.dart (Bug #1046) 515 # implemented in test.dart (Bug #1046)
516 run_cmd([os.path.join('.', 'tools', 'testing', 'bin', system, 516 run_cmd([os.path.join('.', 'tools', 'testing', 'bin', system,
517 'dart' + suffix), os.path.join('tools', 'test.dart'), 517 'dart' + suffix), os.path.join('tools', 'test.dart'),
518 '--component=webdriver', 518 '--component=webdriver',
519 '--browser=%s' % browser, '--frog=%s' % os.path.join(dart_sdk, 'bin', 519 '--browser=%s' % browser, '--frog=%s' % os.path.join(dart_sdk, 'bin',
520 'frogc'), '--froglib=%s' % os.path.join(dart_sdk, 'lib')), '--report', 520 'frogc'), '--froglib=%s' % os.path.join(dart_sdk, 'lib'), '--report',
521 '--timeout=20', '--progress=color', '--mode=release', '-j1', 521 '--timeout=20', '--progress=color', '--mode=release', '-j1',
522 self.test_type], self.trace_file, append=True) 522 self.test_type], self.trace_file, append=True)
523 523
524 def process_file(self, afile): 524 def process_file(self, afile):
525 """Given a trace file, extract all the relevant information out of it to 525 """Given a trace file, extract all the relevant information out of it to
526 determine the number of correctly passing tests. 526 determine the number of correctly passing tests.
527 527
528 Arguments: 528 Arguments:
529 afile the filename string""" 529 afile the filename string"""
530 browser = afile.rpartition('-')[2] 530 browser = afile.rpartition('-')[2]
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 if has_new_code(): 724 if has_new_code():
725 run_test_sequence(cl, size, language, perf) 725 run_test_sequence(cl, size, language, perf)
726 else: 726 else:
727 time.sleep(SLEEP_TIME) 727 time.sleep(SLEEP_TIME)
728 else: 728 else:
729 run_test_sequence(cl, size, language, perf) 729 run_test_sequence(cl, size, language, perf)
730 730
731 if __name__ == '__main__': 731 if __name__ == '__main__':
732 main() 732 main()
733 733
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698