| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 "--concurrent-recompilation"] | 75 "--concurrent-recompilation"] |
| 76 | 76 |
| 77 SUPPORTED_ARCHS = ["android_arm", | 77 SUPPORTED_ARCHS = ["android_arm", |
| 78 "android_ia32", | 78 "android_ia32", |
| 79 "arm", | 79 "arm", |
| 80 "ia32", | 80 "ia32", |
| 81 "mipsel", | 81 "mipsel", |
| 82 "nacl_ia32", | 82 "nacl_ia32", |
| 83 "nacl_x64", | 83 "nacl_x64", |
| 84 "x64", | 84 "x64", |
| 85 "a64"] | 85 "a64", |
| 86 "arm64"] |
| 86 # Double the timeout for these: | 87 # Double the timeout for these: |
| 87 SLOW_ARCHS = ["android_arm", | 88 SLOW_ARCHS = ["android_arm", |
| 88 "android_ia32", | 89 "android_ia32", |
| 89 "arm", | 90 "arm", |
| 90 "mipsel", | 91 "mipsel", |
| 91 "nacl_ia32", | 92 "nacl_ia32", |
| 92 "nacl_x64", | 93 "nacl_x64", |
| 93 "a64"] | 94 "a64"] |
| 94 | 95 |
| 95 | 96 |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 os.path.join(workspace, "test", root)) | 346 os.path.join(workspace, "test", root)) |
| 346 if suite: | 347 if suite: |
| 347 suites.append(suite) | 348 suites.append(suite) |
| 348 | 349 |
| 349 if options.download_data: | 350 if options.download_data: |
| 350 for s in suites: | 351 for s in suites: |
| 351 s.DownloadData() | 352 s.DownloadData() |
| 352 | 353 |
| 353 for (arch, mode) in options.arch_and_mode: | 354 for (arch, mode) in options.arch_and_mode: |
| 354 try: | 355 try: |
| 356 if arch == "arm64": |
| 357 arch = "a64" |
| 355 code = Execute(arch, mode, args, options, suites, workspace) | 358 code = Execute(arch, mode, args, options, suites, workspace) |
| 356 except KeyboardInterrupt: | 359 except KeyboardInterrupt: |
| 357 return 2 | 360 return 2 |
| 358 exit_code = exit_code or code | 361 exit_code = exit_code or code |
| 359 return exit_code | 362 return exit_code |
| 360 | 363 |
| 361 | 364 |
| 362 def Execute(arch, mode, args, options, suites, workspace): | 365 def Execute(arch, mode, args, options, suites, workspace): |
| 363 print(">>> Running tests for %s.%s" % (arch, mode)) | 366 print(">>> Running tests for %s.%s" % (arch, mode)) |
| 364 | 367 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 except KeyboardInterrupt: | 486 except KeyboardInterrupt: |
| 484 raise | 487 raise |
| 485 | 488 |
| 486 if options.time: | 489 if options.time: |
| 487 verbose.PrintTestDurations(suites, overall_duration) | 490 verbose.PrintTestDurations(suites, overall_duration) |
| 488 return exit_code | 491 return exit_code |
| 489 | 492 |
| 490 | 493 |
| 491 if __name__ == "__main__": | 494 if __name__ == "__main__": |
| 492 sys.exit(Main()) | 495 sys.exit(Main()) |
| OLD | NEW |