Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 7076939

Browse files
authored
Run SIMD tests (#326)
This enables running all the SIMD tests (in test/core/simd) whenever we do `make test`.
1 parent bd0f5af commit 7076939

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/core/run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@
2222
arguments = parser.parse_args()
2323
sys.argv = sys.argv[:1]
2424

25+
main_test_files = glob.glob(os.path.join(inputDir, "*.wast"))
26+
# SIMD test files are in a subdirectory.
27+
simd_test_files = glob.glob(os.path.join(inputDir, "simd", "*.wast"))
28+
2529
wasmCommand = arguments.wasm
2630
jsCommand = arguments.js
2731
outputDir = arguments.out
28-
inputFiles = arguments.file if arguments.file else glob.glob(os.path.join(inputDir, "*.wast"))
32+
inputFiles = arguments.file if arguments.file else main_test_files + simd_test_files
2933

3034
if not os.path.exists(wasmCommand):
3135
sys.stderr.write("""\

0 commit comments

Comments
 (0)