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 15 matching lines...) Expand all Loading... | |
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | 29 |
30 | 30 |
31 import itertools | 31 import itertools |
32 import multiprocessing | 32 import multiprocessing |
33 import optparse | 33 import optparse |
34 import os | 34 import os |
35 from os.path import join | 35 from os.path import join |
36 import platform | |
36 import shlex | 37 import shlex |
37 import subprocess | 38 import subprocess |
38 import sys | 39 import sys |
39 import time | 40 import time |
40 | 41 |
41 from testrunner.local import execution | 42 from testrunner.local import execution |
42 from testrunner.local import progress | 43 from testrunner.local import progress |
43 from testrunner.local import testsuite | 44 from testrunner.local import testsuite |
44 from testrunner.local import utils | 45 from testrunner.local import utils |
45 from testrunner.local import verbose | 46 from testrunner.local import verbose |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
389 # Find available test suites and read test cases from them. | 390 # Find available test suites and read test cases from them. |
390 variables = { | 391 variables = { |
391 "arch": arch, | 392 "arch": arch, |
392 "asan": options.asan, | 393 "asan": options.asan, |
393 "deopt_fuzzer": False, | 394 "deopt_fuzzer": False, |
394 "gc_stress": options.gc_stress, | 395 "gc_stress": options.gc_stress, |
395 "isolates": options.isolates, | 396 "isolates": options.isolates, |
396 "mode": mode, | 397 "mode": mode, |
397 "no_i18n": options.no_i18n, | 398 "no_i18n": options.no_i18n, |
398 "system": utils.GuessOS(), | 399 "system": utils.GuessOS(), |
400 "sim": False, | |
399 } | 401 } |
400 all_tests = [] | 402 all_tests = [] |
401 num_tests = 0 | 403 num_tests = 0 |
402 test_id = 0 | 404 test_id = 0 |
405 machine = platform.machine() | |
406 if (machine and | |
407 (arch == "mipsel" or arch == "arm") and | |
408 not arch.startswith(machine)): | |
409 variables["sim"] = True | |
Jakob Kummerow
2014/01/30 09:51:09
Overwriting this after the fact is confusing. Plea
kilvadyb
2014/01/30 10:34:50
Done.
| |
403 for s in suites: | 410 for s in suites: |
404 s.ReadStatusFile(variables) | 411 s.ReadStatusFile(variables) |
405 s.ReadTestCases(ctx) | 412 s.ReadTestCases(ctx) |
406 if len(args) > 0: | 413 if len(args) > 0: |
407 s.FilterTestCasesByArgs(args) | 414 s.FilterTestCasesByArgs(args) |
408 all_tests += s.tests | 415 all_tests += s.tests |
409 s.FilterTestCasesByStatus(options.warn_unused, options.flaky_tests, | 416 s.FilterTestCasesByStatus(options.warn_unused, options.flaky_tests, |
410 options.slow_tests, options.pass_fail_tests) | 417 options.slow_tests, options.pass_fail_tests) |
411 if options.cat: | 418 if options.cat: |
412 verbose.PrintTestSource(s.tests) | 419 verbose.PrintTestSource(s.tests) |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
471 except KeyboardInterrupt: | 478 except KeyboardInterrupt: |
472 raise | 479 raise |
473 | 480 |
474 if options.time: | 481 if options.time: |
475 verbose.PrintTestDurations(suites, overall_duration) | 482 verbose.PrintTestDurations(suites, overall_duration) |
476 return exit_code | 483 return exit_code |
477 | 484 |
478 | 485 |
479 if __name__ == "__main__": | 486 if __name__ == "__main__": |
480 sys.exit(Main()) | 487 sys.exit(Main()) |
OLD | NEW |