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