|
21 | 21 |
|
22 | 22 | from scripts.test.support import run_command, split_wast, node_test_glue, node_has_webassembly |
23 | 23 | from scripts.test.shared import ( |
24 | | - BIN_DIR, EMCC, MOZJS, NATIVECC, NATIVEXX, NODEJS, S2WASM_EXE, |
25 | | - WASM_AS, WASM_CTOR_EVAL, WASM_OPT, WASM_SHELL, WASM_MERGE, WASM_SHELL_EXE, WASM_METADCE, |
| 24 | + BIN_DIR, EMCC, MOZJS, NATIVECC, NATIVEXX, NODEJS, |
| 25 | + WASM_AS, WASM_CTOR_EVAL, WASM_OPT, WASM_SHELL, WASM_MERGE, WASM_METADCE, |
26 | 26 | WASM_DIS, WASM_REDUCE, binary_format_check, delete_from_orbit, fail, fail_with_error, |
27 | 27 | fail_if_not_identical, fail_if_not_contained, has_vanilla_emcc, |
28 | 28 | has_vanilla_llvm, minify_check, num_failures, options, tests, |
@@ -461,50 +461,6 @@ def run_validator_tests(): |
461 | 461 | run_command(cmd) |
462 | 462 |
|
463 | 463 |
|
464 | | -def run_torture_tests(): |
465 | | - print '\n[ checking torture testcases... ]\n' |
466 | | - |
467 | | - # torture tests are parallel anyhow, don't create multiple threads in each child |
468 | | - old_cores = os.environ.get('BINARYEN_CORES') |
469 | | - try: |
470 | | - os.environ['BINARYEN_CORES'] = '1' |
471 | | - |
472 | | - unexpected_result_count = 0 |
473 | | - |
474 | | - import test.waterfall.src.link_assembly_files as link_assembly_files |
475 | | - s2wasm_torture_out = os.path.abspath(os.path.join(options.binaryen_test, 's2wasm-torture-out')) |
476 | | - if os.path.isdir(s2wasm_torture_out): |
477 | | - shutil.rmtree(s2wasm_torture_out) |
478 | | - os.mkdir(s2wasm_torture_out) |
479 | | - unexpected_result_count += link_assembly_files.run( |
480 | | - linker=os.path.abspath(S2WASM_EXE), |
481 | | - files=os.path.abspath(os.path.join(options.binaryen_test, 'torture-s', '*.s')), |
482 | | - fails=[os.path.abspath(os.path.join(options.binaryen_test, 's2wasm_known_gcc_test_failures.txt'))], |
483 | | - attributes=['O2'], |
484 | | - out=s2wasm_torture_out, |
485 | | - args=None) |
486 | | - assert os.path.isdir(s2wasm_torture_out), 'Expected output directory %s' % s2wasm_torture_out |
487 | | - |
488 | | - import test.waterfall.src.execute_files as execute_files |
489 | | - unexpected_result_count += execute_files.run( |
490 | | - runner=os.path.abspath(WASM_SHELL_EXE), |
491 | | - files=os.path.abspath(os.path.join(s2wasm_torture_out, '*.wast')), |
492 | | - fails=[os.path.abspath(os.path.join(options.binaryen_test, 's2wasm_known_binaryen_shell_test_failures.txt'))], |
493 | | - attributes=['O2'], |
494 | | - out='', |
495 | | - wasmjs='') |
496 | | - |
497 | | - shutil.rmtree(s2wasm_torture_out) |
498 | | - if unexpected_result_count: |
499 | | - fail('%s failures' % unexpected_result_count, '0 failures') |
500 | | - |
501 | | - finally: |
502 | | - if old_cores: |
503 | | - os.environ['BINARYEN_CORES'] = old_cores |
504 | | - else: |
505 | | - del os.environ['BINARYEN_CORES'] |
506 | | - |
507 | | - |
508 | 464 | def run_vanilla_tests(): |
509 | 465 | print '\n[ checking emcc WASM_BACKEND testcases...]\n' |
510 | 466 |
|
@@ -681,8 +637,6 @@ def main(): |
681 | 637 | lld.test_wasm_emscripten_finalize() |
682 | 638 | wasm2asm.test_wasm2asm() |
683 | 639 | run_validator_tests() |
684 | | - if options.torture and options.test_waterfall: |
685 | | - run_torture_tests() |
686 | 640 | if has_vanilla_emcc and has_vanilla_llvm and 0: |
687 | 641 | run_vanilla_tests() |
688 | 642 | print '\n[ checking example testcases... ]\n' |
|
0 commit comments