Skip to content

Commit

Permalink
Improved make test to receive args
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Nov 21, 2018
1 parent 0ad10a4 commit 3f1a6e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
ifeq (test, $(firstword $(MAKECMDGOALS)))
runargs := $(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS))
$(eval $(runargs):;@true)
endif

.PHONY: spectests clean build install

# This will re-generate the Rust test files based on spectests/*.wast
Expand All @@ -14,7 +19,7 @@ install:
cargo install --path .

test:
cargo test -- --test-threads=1
cargo test -- --test-threads=1 $(runargs)

release:
# If you are in OS-X, you will need mingw-w64 for cross compiling to windows
Expand Down

0 comments on commit 3f1a6e5

Please sign in to comment.