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

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

Issue 10407099: Generate dart2js versions of Dromaeo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 7 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
« no previous file with comments | « samples/third_party/dromaeo/generate_frog_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, 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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 return True 842 return True
843 843
844 class DromaeoPerfTester(DromaeoTester): 844 class DromaeoPerfTester(DromaeoTester):
845 def run_tests(self): 845 def run_tests(self):
846 """Run dromaeo in the browser.""" 846 """Run dromaeo in the browser."""
847 847
848 # Build tests. 848 # Build tests.
849 dromaeo_path = os.path.join('samples', 'third_party', 'dromaeo') 849 dromaeo_path = os.path.join('samples', 'third_party', 'dromaeo')
850 current_path = os.getcwd() 850 current_path = os.getcwd()
851 os.chdir(dromaeo_path) 851 os.chdir(dromaeo_path)
852 self.test.test_runner.run_cmd(['python', 'generate_frog_tests.py']) 852 self.test.test_runner.run_cmd(['python', 'generate_dart2js_tests.py'])
853 os.chdir(current_path) 853 os.chdir(current_path)
854 854
855 versions = DromaeoTester.get_dromaeo_versions() 855 versions = DromaeoTester.get_dromaeo_versions()
856 856
857 for browser in BrowserTester.get_browsers(): 857 for browser in BrowserTester.get_browsers():
858 for version_name in versions: 858 for version_name in versions:
859 if not self.test.is_valid_combination(browser, version_name): 859 if not self.test.is_valid_combination(browser, version_name):
860 continue 860 continue
861 version = DromaeoTest.DromaeoPerfTester.get_dromaeo_url_query( 861 version = DromaeoTest.DromaeoPerfTester.get_dromaeo_url_query(
862 browser, version_name) 862 browser, version_name)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 return 'dromaeo-size' 946 return 'dromaeo-size'
947 947
948 948
949 class DromaeoSizeTester(DromaeoTester): 949 class DromaeoSizeTester(DromaeoTester):
950 def run_tests(self): 950 def run_tests(self):
951 # Build tests. 951 # Build tests.
952 dromaeo_path = os.path.join('samples', 'third_party', 'dromaeo') 952 dromaeo_path = os.path.join('samples', 'third_party', 'dromaeo')
953 current_path = os.getcwd() 953 current_path = os.getcwd()
954 os.chdir(dromaeo_path) 954 os.chdir(dromaeo_path)
955 self.test.test_runner.run_cmd( 955 self.test.test_runner.run_cmd(
956 ['python', os.path.join('generate_frog_tests.py')]) 956 ['python', os.path.join('generate_dart2js_tests.py')])
957 os.chdir(current_path) 957 os.chdir(current_path)
958 958
959 self.test.trace_file = os.path.join( 959 self.test.trace_file = os.path.join(
960 'tools', 'testing', 'perf_testing', self.test.result_folder_name, 960 'tools', 'testing', 'perf_testing', self.test.result_folder_name,
961 self.test.result_folder_name + self.test.cur_time) 961 self.test.result_folder_name + self.test.cur_time)
962 self.add_svn_revision_to_trace(self.test.trace_file) 962 self.add_svn_revision_to_trace(self.test.trace_file)
963 963
964 variants = [ 964 variants = [
965 ('frog_dom', ''), 965 ('frog_dom', ''),
966 ('frog_html', '-html'), 966 ('frog_html', '-html'),
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 while True: 1227 while True:
1228 if runner.has_new_code(): 1228 if runner.has_new_code():
1229 runner.run_test_sequence() 1229 runner.run_test_sequence()
1230 else: 1230 else:
1231 time.sleep(200) 1231 time.sleep(200)
1232 else: 1232 else:
1233 runner.run_test_sequence() 1233 runner.run_test_sequence()
1234 1234
1235 if __name__ == '__main__': 1235 if __name__ == '__main__':
1236 main() 1236 main()
OLDNEW
« no previous file with comments | « samples/third_party/dromaeo/generate_frog_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698