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 9325002: Fix windows performance tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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 | « client/tests/client/samples/smoketest/dartWebBase_tests.dart ('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) 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 """Make sure we have the latest version of of the repo, and build it. We 85 """Make sure we have the latest version of of the repo, and build it. We
86 begin and end standing in DART_INSTALL_LOCATION. 86 begin and end standing in DART_INSTALL_LOCATION.
87 87
88 Returns: 88 Returns:
89 err_code = 1 if there was a problem building.""" 89 err_code = 1 if there was a problem building."""
90 os.chdir(DART_INSTALL_LOCATION) 90 os.chdir(DART_INSTALL_LOCATION)
91 #Revert our newly built minfrog to prevent conflicts when we update 91 #Revert our newly built minfrog to prevent conflicts when we update
92 run_cmd(['svn', 'revert', os.path.join(os.getcwd(), 'frog', 'minfrog')]) 92 run_cmd(['svn', 'revert', os.path.join(os.getcwd(), 'frog', 'minfrog')])
93 93
94 run_cmd(['gclient', 'sync']) 94 run_cmd(['gclient', 'sync'])
95
96 def on_rm_error(func, path, exc_info):
Emily Fortuna 2012/02/02 18:24:09 On windows, the output directory is marked as "Rea
Siggi Cherem (dart-lang) 2012/02/02 18:29:58 It would be great to put this exact comment on the
Emily Fortuna 2012/02/02 18:51:00 Done.
97 os.chmod(path, stat.S_IWRITE)
98 os.unlink(path)
95 # TODO(efortuna): building the sdk locally is a band-aid until all build 99 # TODO(efortuna): building the sdk locally is a band-aid until all build
96 # platform SDKs are hosted in Google storage. Pull from https://sandbox. 100 # platform SDKs are hosted in Google storage. Pull from https://sandbox.
97 # google.com/storage/?arg=dart-dump-render-tree#dart-dump-render-tree%2Fsdk 101 # google.com/storage/?arg=dart-dump-render-tree#dart-dump-render-tree%2Fsdk
98 # eventually. 102 # eventually.
99 # TODO(efortuna): Currently always building ia32 architecture because we don't 103 # TODO(efortuna): Currently always building ia32 architecture because we don't
100 # have test statistics for what's passing on x64. Eliminate arch specification 104 # have test statistics for what's passing on x64. Eliminate arch specification
101 # when we have tests running on x64, too. 105 # when we have tests running on x64, too.
102 shutil.rmtree(os.path.join(os.getcwd(), 106 shutil.rmtree(os.path.join(os.getcwd(),
103 utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32'))) 107 utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32')), onerror=on_rm_error )
104 lines = run_cmd([os.path.join('.', 'tools', 'build.py'), '-m', 'release', 108 lines = run_cmd([os.path.join('.', 'tools', 'build.py'), '-m', 'release',
105 '--arch=ia32', 'create_sdk']) 109 '--arch=ia32', 'create_sdk'])
106 110
107 for line in lines: 111 for line in lines:
108 if 'BUILD FAILED' in lines: 112 if 'BUILD FAILED' in lines:
109 # Someone checked in a broken build! Just stop trying to make it work 113 # Someone checked in a broken build! Just stop trying to make it work
110 # and wait to try again. 114 # and wait to try again.
111 print 'Broken Build' 115 print 'Broken Build'
112 return 1 116 return 1
113 return 0 117 return 0
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 if has_new_code(): 741 if has_new_code():
738 run_test_sequence(cl, size, language, perf) 742 run_test_sequence(cl, size, language, perf)
739 else: 743 else:
740 time.sleep(SLEEP_TIME) 744 time.sleep(SLEEP_TIME)
741 else: 745 else:
742 run_test_sequence(cl, size, language, perf) 746 run_test_sequence(cl, size, language, perf)
743 747
744 if __name__ == '__main__': 748 if __name__ == '__main__':
745 main() 749 main()
746 750
OLDNEW
« no previous file with comments | « client/tests/client/samples/smoketest/dartWebBase_tests.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698