From 6c377c20f3020cf725d40d8f23dafe9b72951a45 Mon Sep 17 00:00:00 2001 From: Ng Zhi An Date: Thu, 28 Jan 2021 14:57:59 -0800 Subject: [PATCH 1/2] Run simd test cases with make partest We list all simd test cases in simd/* in TESTFILES, then tweak the substitution in quiettest to strip quiettest/ from the front of the target, rather than match on just the file name (which loses the simd/) prefix. The temp output file name is unchanged, it uses the base file name (no simd/ prefix). --- interpreter/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interpreter/Makefile b/interpreter/Makefile index c745311b9..8b5e51560 100644 --- a/interpreter/Makefile +++ b/interpreter/Makefile @@ -113,7 +113,7 @@ $(WINMAKE): clean # Executing test suite TESTDIR = ../test/core -TESTFILES = $(shell cd $(TESTDIR); ls *.wast) +TESTFILES = $(shell cd $(TESTDIR); ls *.wast; ls simd/*.wast) TESTS = $(TESTFILES:%.wast=%) .PHONY: test debugtest partest @@ -138,7 +138,7 @@ partest: $(TESTS:%=quiettest/%) quiettest/%: $(OPT) @ ( \ - $(TESTDIR)/run.py 2>$(@F).out --wasm `pwd`/$(OPT) $(if $(JS),--js '$(JS)',) $(@F:%=$(TESTDIR)/%.wast) && \ + $(TESTDIR)/run.py 2>$(@F).out --wasm `pwd`/$(OPT) $(if $(JS),--js '$(JS)',) $(@:quiettest/%=$(TESTDIR)/%.wast) && \ rm $(@F).out \ ) || \ cat $(@F).out || rm $(@F).out || exit 1 From 30a3b72200673dfef08f92772a5a51e244077fde Mon Sep 17 00:00:00 2001 From: Ng Zhi An Date: Wed, 3 Feb 2021 09:14:33 -0800 Subject: [PATCH 2/2] List all subdirs not just simd/ Co-authored-by: Andreas Rossberg --- interpreter/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/Makefile b/interpreter/Makefile index 8b5e51560..34d4dea15 100644 --- a/interpreter/Makefile +++ b/interpreter/Makefile @@ -113,7 +113,7 @@ $(WINMAKE): clean # Executing test suite TESTDIR = ../test/core -TESTFILES = $(shell cd $(TESTDIR); ls *.wast; ls simd/*.wast) +TESTFILES = $(shell cd $(TESTDIR); ls *.wast; ls */*.wast) TESTS = $(TESTFILES:%.wast=%) .PHONY: test debugtest partest