Makefile: allow make test to take TESTARGS.

This commit is contained in:
John MacFarlane 2017-03-15 17:22:07 +01:00
parent 482e5b78a0
commit 257d96f199

View file

@ -10,8 +10,10 @@ full:
stack install --flag 'pandoc:embed_data_files' --test --test-arguments='-j4' --pedantic
stack haddock
# Note: to accept current results of golden tests,
# make test TESTARGS='--accept'
test:
stack test --flag 'pandoc:embed_data_files' --fast --test-arguments='-j4 --hide-successes'
stack test --flag 'pandoc:embed_data_files' --fast --test-arguments='-j4 --hide-successes $(TESTARGS)'
bench:
stack bench