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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 for s in suites: | 325 for s in suites: |
326 s.ReadStatusFile(variables) | 326 s.ReadStatusFile(variables) |
327 s.ReadTestCases(ctx) | 327 s.ReadTestCases(ctx) |
328 if len(args) > 0: | 328 if len(args) > 0: |
329 s.FilterTestCasesByArgs(args) | 329 s.FilterTestCasesByArgs(args) |
330 all_tests += s.tests | 330 all_tests += s.tests |
331 s.FilterTestCasesByStatus(options.warn_unused, options.flaky_tests) | 331 s.FilterTestCasesByStatus(options.warn_unused, options.flaky_tests) |
332 if options.cat: | 332 if options.cat: |
333 verbose.PrintTestSource(s.tests) | 333 verbose.PrintTestSource(s.tests) |
334 continue | 334 continue |
335 variant_flags = s.VariantFlags() or VARIANT_FLAGS | 335 s.tests = [ t.CopyAddingFlags(v) |
336 s.tests = [ t.CopyAddingFlags(v) for t in s.tests for v in variant_flags ] | 336 for t in s.tests |
| 337 for v in s.VariantFlags(t, VARIANT_FLAGS) ] |
337 s.tests = ShardTests(s.tests, options.shard_count, options.shard_run) | 338 s.tests = ShardTests(s.tests, options.shard_count, options.shard_run) |
338 num_tests += len(s.tests) | 339 num_tests += len(s.tests) |
339 for t in s.tests: | 340 for t in s.tests: |
340 t.id = test_id | 341 t.id = test_id |
341 test_id += 1 | 342 test_id += 1 |
342 | 343 |
343 if options.cat: | 344 if options.cat: |
344 return 0 # We're done here. | 345 return 0 # We're done here. |
345 | 346 |
346 if options.report: | 347 if options.report: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 except KeyboardInterrupt: | 391 except KeyboardInterrupt: |
391 return 1 | 392 return 1 |
392 | 393 |
393 if options.time: | 394 if options.time: |
394 verbose.PrintTestDurations(suites, overall_duration) | 395 verbose.PrintTestDurations(suites, overall_duration) |
395 return exit_code | 396 return exit_code |
396 | 397 |
397 | 398 |
398 if __name__ == "__main__": | 399 if __name__ == "__main__": |
399 sys.exit(Main()) | 400 sys.exit(Main()) |
OLD | NEW |