OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 help="Prepended to each shell command used to run a test", | 244 help="Prepended to each shell command used to run a test", |
245 default="") | 245 default="") |
246 result.add_option("--download-data", help="Download missing test suite data", | 246 result.add_option("--download-data", help="Download missing test suite data", |
247 default=False, action="store_true") | 247 default=False, action="store_true") |
248 result.add_option("--download-data-only", | 248 result.add_option("--download-data-only", |
249 help="Download missing test suite data and exit", | 249 help="Download missing test suite data and exit", |
250 default=False, action="store_true") | 250 default=False, action="store_true") |
251 result.add_option("--extra-flags", | 251 result.add_option("--extra-flags", |
252 help="Additional flags to pass to each test command", | 252 help="Additional flags to pass to each test command", |
253 default="") | 253 default="") |
254 result.add_option("--ignition", help="Skip tests which don't run in ignition", | |
255 default=False, action="store_true") | |
256 result.add_option("--ignition-turbofan", | 254 result.add_option("--ignition-turbofan", |
257 help="Skip tests which don't run in ignition_turbofan", | 255 help="Skip tests which don't run in ignition_turbofan", |
258 default=False, action="store_true") | 256 default=False, action="store_true") |
259 result.add_option("--isolates", help="Whether to test isolates", | 257 result.add_option("--isolates", help="Whether to test isolates", |
260 default=False, action="store_true") | 258 default=False, action="store_true") |
261 result.add_option("-j", help="The number of parallel tasks to run", | 259 result.add_option("-j", help="The number of parallel tasks to run", |
262 default=0, type="int") | 260 default=0, type="int") |
263 result.add_option("-m", "--mode", | 261 result.add_option("-m", "--mode", |
264 help="The test modes in which to run (comma-separated," | 262 help="The test modes in which to run (comma-separated," |
265 " uppercase for ninja and buildbot builds): %s" % MODES.keys
(), | 263 " uppercase for ninja and buildbot builds): %s" % MODES.keys
(), |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ | 739 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ |
742 'ppc', 'ppc64'] and \ | 740 'ppc', 'ppc64'] and \ |
743 ARCH_GUESS and arch != ARCH_GUESS | 741 ARCH_GUESS and arch != ARCH_GUESS |
744 # Find available test suites and read test cases from them. | 742 # Find available test suites and read test cases from them. |
745 variables = { | 743 variables = { |
746 "arch": arch, | 744 "arch": arch, |
747 "asan": options.asan, | 745 "asan": options.asan, |
748 "deopt_fuzzer": False, | 746 "deopt_fuzzer": False, |
749 "gc_stress": options.gc_stress, | 747 "gc_stress": options.gc_stress, |
750 "gcov_coverage": options.gcov_coverage, | 748 "gcov_coverage": options.gcov_coverage, |
751 "ignition": options.ignition, | |
752 "ignition_turbofan": options.ignition_turbofan, | 749 "ignition_turbofan": options.ignition_turbofan, |
753 "isolates": options.isolates, | 750 "isolates": options.isolates, |
754 "mode": MODES[mode]["status_mode"], | 751 "mode": MODES[mode]["status_mode"], |
755 "no_i18n": options.no_i18n, | 752 "no_i18n": options.no_i18n, |
756 "no_snap": options.no_snap, | 753 "no_snap": options.no_snap, |
757 "simulator_run": simulator_run, | 754 "simulator_run": simulator_run, |
758 "simulator": utils.UseSimulator(arch), | 755 "simulator": utils.UseSimulator(arch), |
759 "system": utils.GuessOS(), | 756 "system": utils.GuessOS(), |
760 "tsan": options.tsan, | 757 "tsan": options.tsan, |
761 "msan": options.msan, | 758 "msan": options.msan, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 "--coverage-dir=%s" % options.sancov_dir]) | 869 "--coverage-dir=%s" % options.sancov_dir]) |
873 except: | 870 except: |
874 print >> sys.stderr, "Error: Merging sancov files failed." | 871 print >> sys.stderr, "Error: Merging sancov files failed." |
875 exit_code = 1 | 872 exit_code = 1 |
876 | 873 |
877 return exit_code | 874 return exit_code |
878 | 875 |
879 | 876 |
880 if __name__ == "__main__": | 877 if __name__ == "__main__": |
881 sys.exit(Main()) | 878 sys.exit(Main()) |
OLD | NEW |