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

Commit

Permalink
Run simd test cases with make partest (#434)
Browse files Browse the repository at this point in the history
* 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).

* List all subdirs not just simd/

Co-authored-by: Andreas Rossberg <[email protected]>
  • Loading branch information
ngzhian and rossberg authored Feb 3, 2021
1 parent 92ee194 commit 40b255f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interpreter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 */*.wast)
TESTS = $(TESTFILES:%.wast=%)
.PHONY: test debugtest partest
Expand All @@ -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
Expand Down

0 comments on commit 40b255f

Please sign in to comment.