| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 options.extra_flags, | 310 options.extra_flags, |
| 311 options.no_i18n) | 311 options.no_i18n) |
| 312 | 312 |
| 313 # Find available test suites and read test cases from them. | 313 # Find available test suites and read test cases from them. |
| 314 variables = { | 314 variables = { |
| 315 "mode": mode, | 315 "mode": mode, |
| 316 "arch": arch, | 316 "arch": arch, |
| 317 "system": utils.GuessOS(), | 317 "system": utils.GuessOS(), |
| 318 "isolates": options.isolates, | 318 "isolates": options.isolates, |
| 319 "deopt_fuzzer": False, | 319 "deopt_fuzzer": False, |
| 320 "no_i18n": options.no_i18n, |
| 320 } | 321 } |
| 321 all_tests = [] | 322 all_tests = [] |
| 322 num_tests = 0 | 323 num_tests = 0 |
| 323 test_id = 0 | 324 test_id = 0 |
| 324 for s in suites: | 325 for s in suites: |
| 325 s.ReadStatusFile(variables) | 326 s.ReadStatusFile(variables) |
| 326 s.ReadTestCases(ctx) | 327 s.ReadTestCases(ctx) |
| 327 if len(args) > 0: | 328 if len(args) > 0: |
| 328 s.FilterTestCasesByArgs(args) | 329 s.FilterTestCasesByArgs(args) |
| 329 all_tests += s.tests | 330 all_tests += s.tests |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 except KeyboardInterrupt: | 390 except KeyboardInterrupt: |
| 390 return 1 | 391 return 1 |
| 391 | 392 |
| 392 if options.time: | 393 if options.time: |
| 393 verbose.PrintTestDurations(suites, overall_duration) | 394 verbose.PrintTestDurations(suites, overall_duration) |
| 394 return exit_code | 395 return exit_code |
| 395 | 396 |
| 396 | 397 |
| 397 if __name__ == "__main__": | 398 if __name__ == "__main__": |
| 398 sys.exit(Main()) | 399 sys.exit(Main()) |
| OLD | NEW |