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

Side by Side Diff: tools/test.py

Issue 9270005: MIPS: added --mips-arch-variant option to test.py. (Closed)
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
« no previous file with comments | « no previous file | 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/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2008 the V8 project authors. All rights reserved. 3 # Copyright 2008 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 result.add_option("--warn-unused", help="Report unused rules", 1204 result.add_option("--warn-unused", help="Report unused rules",
1205 default=False, action="store_true") 1205 default=False, action="store_true")
1206 result.add_option("-j", help="The number of parallel tasks to run", 1206 result.add_option("-j", help="The number of parallel tasks to run",
1207 default=1, type="int") 1207 default=1, type="int")
1208 result.add_option("--time", help="Print timing information after running", 1208 result.add_option("--time", help="Print timing information after running",
1209 default=False, action="store_true") 1209 default=False, action="store_true")
1210 result.add_option("--suppress-dialogs", help="Suppress Windows dialogs for cra shing tests", 1210 result.add_option("--suppress-dialogs", help="Suppress Windows dialogs for cra shing tests",
1211 dest="suppress_dialogs", default=True, action="store_true") 1211 dest="suppress_dialogs", default=True, action="store_true")
1212 result.add_option("--no-suppress-dialogs", help="Display Windows dialogs for c rashing tests", 1212 result.add_option("--no-suppress-dialogs", help="Display Windows dialogs for c rashing tests",
1213 dest="suppress_dialogs", action="store_false") 1213 dest="suppress_dialogs", action="store_false")
1214 result.add_option("--mips-arch-variant", help="mips architecture variant: mips 32r1/mips32r2", default="mips32r2");
1214 result.add_option("--shell", help="Path to V8 shell", default="d8") 1215 result.add_option("--shell", help="Path to V8 shell", default="d8")
1215 result.add_option("--isolates", help="Whether to test isolates", default=False , action="store_true") 1216 result.add_option("--isolates", help="Whether to test isolates", default=False , action="store_true")
1216 result.add_option("--store-unexpected-output", 1217 result.add_option("--store-unexpected-output",
1217 help="Store the temporary JS files from tests that fails", 1218 help="Store the temporary JS files from tests that fails",
1218 dest="store_unexpected_output", default=True, action="store_true") 1219 dest="store_unexpected_output", default=True, action="store_true")
1219 result.add_option("--no-store-unexpected-output", 1220 result.add_option("--no-store-unexpected-output",
1220 help="Deletes the temporary JS files from tests that fails", 1221 help="Deletes the temporary JS files from tests that fails",
1221 dest="store_unexpected_output", action="store_false") 1222 dest="store_unexpected_output", action="store_false")
1222 result.add_option("--stress-only", 1223 result.add_option("--stress-only",
1223 help="Only run tests with --always-opt --stress-opt", 1224 help="Only run tests with --always-opt --stress-opt",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 options.scons_flags.append("arch=" + options.arch) 1266 options.scons_flags.append("arch=" + options.arch)
1266 # Simulators are slow, therefore allow a longer default timeout. 1267 # Simulators are slow, therefore allow a longer default timeout.
1267 if options.timeout == -1: 1268 if options.timeout == -1:
1268 if options.arch == 'arm' or options.arch == 'mips': 1269 if options.arch == 'arm' or options.arch == 'mips':
1269 options.timeout = 2 * TIMEOUT_DEFAULT; 1270 options.timeout = 2 * TIMEOUT_DEFAULT;
1270 else: 1271 else:
1271 options.timeout = TIMEOUT_DEFAULT; 1272 options.timeout = TIMEOUT_DEFAULT;
1272 if options.snapshot: 1273 if options.snapshot:
1273 options.scons_flags.append("snapshot=on") 1274 options.scons_flags.append("snapshot=on")
1274 global VARIANT_FLAGS 1275 global VARIANT_FLAGS
1276 if options.mips_arch_variant:
1277 options.scons_flags.append("mips_arch_variant=" + options.mips_arch_variant)
1278
1275 if options.stress_only: 1279 if options.stress_only:
1276 VARIANT_FLAGS = [['--stress-opt', '--always-opt']] 1280 VARIANT_FLAGS = [['--stress-opt', '--always-opt']]
1277 if options.nostress: 1281 if options.nostress:
1278 VARIANT_FLAGS = [[],['--nocrankshaft']] 1282 VARIANT_FLAGS = [[],['--nocrankshaft']]
1279 if options.crankshaft: 1283 if options.crankshaft:
1280 if options.special_command: 1284 if options.special_command:
1281 options.special_command += " --crankshaft" 1285 options.special_command += " --crankshaft"
1282 else: 1286 else:
1283 options.special_command = "@ --crankshaft" 1287 options.special_command = "@ --crankshaft"
1284 if options.shell.endswith("d8"): 1288 if options.shell.endswith("d8"):
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 for entry in timed_tests[:20]: 1532 for entry in timed_tests[:20]:
1529 t = FormatTime(entry.duration) 1533 t = FormatTime(entry.duration)
1530 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) 1534 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel()))
1531 index += 1 1535 index += 1
1532 1536
1533 return result 1537 return result
1534 1538
1535 1539
1536 if __name__ == '__main__': 1540 if __name__ == '__main__':
1537 sys.exit(Main()) 1541 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698