OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2011 Google Inc. All Rights Reserved. | 3 # Copyright 2011 Google Inc. All Rights Reserved. |
4 | 4 |
5 import fnmatch | 5 import fnmatch |
6 import optparse | 6 import optparse |
7 import os | 7 import os |
8 import re | 8 import re |
9 import shutil | 9 import shutil |
10 import subprocess | 10 import subprocess |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 executable_map = { | 177 executable_map = { |
178 'mode': mode.lower(), | 178 'mode': mode.lower(), |
179 'build_dir': os.path.relpath(build_dir), | 179 'build_dir': os.path.relpath(build_dir), |
180 'drt': os.path.join(build_dir, drt_path), | 180 'drt': os.path.join(build_dir, drt_path), |
181 'dartium': os.path.join(build_dir, dartium_path), | 181 'dartium': os.path.join(build_dir, dartium_path), |
182 'dart': os.path.join(build_dir, dart_path), | 182 'dart': os.path.join(build_dir, dart_path), |
183 'arch': options.arch, | 183 'arch': options.arch, |
184 } | 184 } |
185 | 185 |
186 test_script = os.path.join(srcpath, 'webkit', 'tools', 'layout_tests', | 186 test_script = os.path.join(srcpath, 'third_party', 'WebKit', 'Tools', 'Scripts
', 'run-webkit-tests') |
187 'run_webkit_tests.py') | |
188 | 187 |
189 errors = False | 188 errors = False |
190 for component in components: | 189 for component in components: |
191 for checkmode in checkmodes: | 190 for checkmode in checkmodes: |
192 # Capture errors and report at the end. | 191 # Capture errors and report at the end. |
193 try: | 192 try: |
194 if ('layout' in suites and | 193 if ('layout' in suites and |
195 'layout' in TEST_INFO[component] and | 194 'layout' in TEST_INFO[component] and |
196 checkmode in TEST_INFO[component]['layout']): | 195 checkmode in TEST_INFO[component]['layout']): |
197 # Run layout tests in this mode | 196 # Run layout tests in this mode |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 return 1 | 233 return 1 |
235 else: | 234 else: |
236 return 0 | 235 return 0 |
237 | 236 |
238 if __name__ == '__main__': | 237 if __name__ == '__main__': |
239 try: | 238 try: |
240 sys.exit(main()) | 239 sys.exit(main()) |
241 except StandardError as e: | 240 except StandardError as e: |
242 print 'Fail: ' + str(e) | 241 print 'Fail: ' + str(e) |
243 sys.exit(1) | 242 sys.exit(1) |
OLD | NEW |