| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 "arch": arch, | 291 "arch": arch, |
| 292 "system": utils.GuessOS(), | 292 "system": utils.GuessOS(), |
| 293 "isolates": options.isolates | 293 "isolates": options.isolates |
| 294 } | 294 } |
| 295 all_tests = [] | 295 all_tests = [] |
| 296 num_tests = 0 | 296 num_tests = 0 |
| 297 test_id = 0 | 297 test_id = 0 |
| 298 for s in suites: | 298 for s in suites: |
| 299 s.ReadStatusFile(variables) | 299 s.ReadStatusFile(variables) |
| 300 s.ReadTestCases(ctx) | 300 s.ReadTestCases(ctx) |
| 301 all_tests += s.tests | |
| 302 if len(args) > 0: | 301 if len(args) > 0: |
| 303 s.FilterTestCasesByArgs(args) | 302 s.FilterTestCasesByArgs(args) |
| 303 all_tests += s.tests |
| 304 s.FilterTestCasesByStatus(options.warn_unused) | 304 s.FilterTestCasesByStatus(options.warn_unused) |
| 305 if options.cat: | 305 if options.cat: |
| 306 verbose.PrintTestSource(s.tests) | 306 verbose.PrintTestSource(s.tests) |
| 307 continue | 307 continue |
| 308 variant_flags = s.VariantFlags() or VARIANT_FLAGS | 308 variant_flags = s.VariantFlags() or VARIANT_FLAGS |
| 309 s.tests = [ t.CopyAddingFlags(v) for t in s.tests for v in variant_flags ] | 309 s.tests = [ t.CopyAddingFlags(v) for t in s.tests for v in variant_flags ] |
| 310 s.tests = ShardTests(s.tests, options.shard_count, options.shard_run) | 310 s.tests = ShardTests(s.tests, options.shard_count, options.shard_run) |
| 311 num_tests += len(s.tests) | 311 num_tests += len(s.tests) |
| 312 for t in s.tests: | 312 for t in s.tests: |
| 313 t.id = test_id | 313 t.id = test_id |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 except KeyboardInterrupt: | 360 except KeyboardInterrupt: |
| 361 return 1 | 361 return 1 |
| 362 | 362 |
| 363 if options.time: | 363 if options.time: |
| 364 verbose.PrintTestDurations(suites, overall_duration) | 364 verbose.PrintTestDurations(suites, overall_duration) |
| 365 return exit_code | 365 return exit_code |
| 366 | 366 |
| 367 | 367 |
| 368 if __name__ == "__main__": | 368 if __name__ == "__main__": |
| 369 sys.exit(Main()) | 369 sys.exit(Main()) |
| OLD | NEW |