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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 suite = arg.split(os.path.sep)[0] | 314 suite = arg.split(os.path.sep)[0] |
315 if not suite in args_suites: | 315 if not suite in args_suites: |
316 args_suites.add(suite) | 316 args_suites.add(suite) |
317 suite_paths = [ s for s in suite_paths if s in args_suites ] | 317 suite_paths = [ s for s in suite_paths if s in args_suites ] |
318 | 318 |
319 suites = [] | 319 suites = [] |
320 for root in suite_paths: | 320 for root in suite_paths: |
321 suite = testsuite.TestSuite.LoadTestSuite( | 321 suite = testsuite.TestSuite.LoadTestSuite( |
322 os.path.join(BASE_DIR, "test", root)) | 322 os.path.join(BASE_DIR, "test", root)) |
323 if suite: | 323 if suite: |
324 suite.SetupWorkingDirectory() | |
325 suites.append(suite) | 324 suites.append(suite) |
326 | 325 |
327 if options.download_data: | 326 if options.download_data: |
328 for s in suites: | 327 for s in suites: |
329 s.DownloadData() | 328 s.DownloadData() |
330 | 329 |
331 for mode in options.mode: | 330 for mode in options.mode: |
332 for arch in options.arch: | 331 for arch in options.arch: |
333 try: | 332 try: |
334 code = Execute(arch, mode, args, options, suites, BASE_DIR) | 333 code = Execute(arch, mode, args, options, suites, BASE_DIR) |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) | 487 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) |
489 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() | 488 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() |
490 runner = execution.Runner(suites, progress_indicator, ctx) | 489 runner = execution.Runner(suites, progress_indicator, ctx) |
491 | 490 |
492 code = runner.Run(options.j) | 491 code = runner.Run(options.j) |
493 return exit_code or code | 492 return exit_code or code |
494 | 493 |
495 | 494 |
496 if __name__ == "__main__": | 495 if __name__ == "__main__": |
497 sys.exit(Main()) | 496 sys.exit(Main()) |
OLD | NEW |