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

Side by Side Diff: tools/test.py

Issue 5890003: Make V8 compilable with profiling support turned off. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years 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 | « src/top.cc ('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/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 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 dest="store_unexpected_output", action="store_false") 1174 dest="store_unexpected_output", action="store_false")
1175 result.add_option("--stress-only", 1175 result.add_option("--stress-only",
1176 help="Only run tests with --always-opt --stress-opt", 1176 help="Only run tests with --always-opt --stress-opt",
1177 default=False, action="store_true") 1177 default=False, action="store_true")
1178 result.add_option("--nostress", 1178 result.add_option("--nostress",
1179 help="Don't run crankshaft --always-opt --stress-op test", 1179 help="Don't run crankshaft --always-opt --stress-op test",
1180 default=False, action="store_true") 1180 default=False, action="store_true")
1181 result.add_option("--crankshaft", 1181 result.add_option("--crankshaft",
1182 help="Run with the --crankshaft flag", 1182 help="Run with the --crankshaft flag",
1183 default=False, action="store_true") 1183 default=False, action="store_true")
1184 result.add_option("--noprof", help="Disable profiling support",
1185 default=False)
1184 return result 1186 return result
1185 1187
1186 1188
1187 def ProcessOptions(options): 1189 def ProcessOptions(options):
1188 global VERBOSE 1190 global VERBOSE
1189 VERBOSE = options.verbose 1191 VERBOSE = options.verbose
1190 options.mode = options.mode.split(',') 1192 options.mode = options.mode.split(',')
1191 for mode in options.mode: 1193 for mode in options.mode:
1192 if not mode in ['debug', 'release']: 1194 if not mode in ['debug', 'release']:
1193 print "Unknown mode %s" % mode 1195 print "Unknown mode %s" % mode
(...skipping 19 matching lines...) Expand all
1213 global VARIANT_FLAGS 1215 global VARIANT_FLAGS
1214 if options.stress_only: 1216 if options.stress_only:
1215 VARIANT_FLAGS = [['--stress-opt', '--always-opt']] 1217 VARIANT_FLAGS = [['--stress-opt', '--always-opt']]
1216 if options.nostress: 1218 if options.nostress:
1217 VARIANT_FLAGS = [[],['--nocrankshaft']] 1219 VARIANT_FLAGS = [[],['--nocrankshaft']]
1218 if options.crankshaft: 1220 if options.crankshaft:
1219 if options.special_command: 1221 if options.special_command:
1220 options.special_command += " --crankshaft" 1222 options.special_command += " --crankshaft"
1221 else: 1223 else:
1222 options.special_command = "@--crankshaft" 1224 options.special_command = "@--crankshaft"
1225 if options.noprof:
1226 options.scons_flags.append("prof=off")
1227 options.scons_flags.append("profilingsupport=off")
1223 return True 1228 return True
1224 1229
1225 1230
1226 REPORT_TEMPLATE = """\ 1231 REPORT_TEMPLATE = """\
1227 Total: %(total)i tests 1232 Total: %(total)i tests
1228 * %(skipped)4d tests will be skipped 1233 * %(skipped)4d tests will be skipped
1229 * %(nocrash)4d tests are expected to be flaky but not crash 1234 * %(nocrash)4d tests are expected to be flaky but not crash
1230 * %(pass)4d tests are expected to pass 1235 * %(pass)4d tests are expected to pass
1231 * %(fail_ok)4d tests are expected to fail that we won't fix 1236 * %(fail_ok)4d tests are expected to fail that we won't fix
1232 * %(fail)4d tests are expected to fail that we should fix\ 1237 * %(fail)4d tests are expected to fail that we should fix\
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 for entry in timed_tests[:20]: 1438 for entry in timed_tests[:20]:
1434 t = FormatTime(entry.duration) 1439 t = FormatTime(entry.duration)
1435 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) 1440 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel()))
1436 index += 1 1441 index += 1
1437 1442
1438 return result 1443 return result
1439 1444
1440 1445
1441 if __name__ == '__main__': 1446 if __name__ == '__main__':
1442 sys.exit(Main()) 1447 sys.exit(Main())
OLDNEW
« no previous file with comments | « src/top.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698