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 suite = arg.split(os.path.sep)[0] | 309 suite = arg.split(os.path.sep)[0] |
310 if not suite in args_suites: | 310 if not suite in args_suites: |
311 args_suites.add(suite) | 311 args_suites.add(suite) |
312 suite_paths = [ s for s in suite_paths if s in args_suites ] | 312 suite_paths = [ s for s in suite_paths if s in args_suites ] |
313 | 313 |
314 suites = [] | 314 suites = [] |
315 for root in suite_paths: | 315 for root in suite_paths: |
316 suite = testsuite.TestSuite.LoadTestSuite( | 316 suite = testsuite.TestSuite.LoadTestSuite( |
317 os.path.join(workspace, "test", root)) | 317 os.path.join(workspace, "test", root)) |
318 if suite: | 318 if suite: |
| 319 suite.SetupWorkingDirectory() |
319 suites.append(suite) | 320 suites.append(suite) |
320 | 321 |
321 if options.download_data: | 322 if options.download_data: |
322 for s in suites: | 323 for s in suites: |
323 s.DownloadData() | 324 s.DownloadData() |
324 | 325 |
325 for mode in options.mode: | 326 for mode in options.mode: |
326 for arch in options.arch: | 327 for arch in options.arch: |
327 try: | 328 try: |
328 code = Execute(arch, mode, args, options, suites, workspace) | 329 code = Execute(arch, mode, args, options, suites, workspace) |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) | 481 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) |
481 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() | 482 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() |
482 runner = execution.Runner(suites, progress_indicator, ctx) | 483 runner = execution.Runner(suites, progress_indicator, ctx) |
483 | 484 |
484 code = runner.Run(options.j) | 485 code = runner.Run(options.j) |
485 return exit_code or code | 486 return exit_code or code |
486 | 487 |
487 | 488 |
488 if __name__ == "__main__": | 489 if __name__ == "__main__": |
489 sys.exit(Main()) | 490 sys.exit(Main()) |
OLD | NEW |