diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-05-13 16:25:07 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-05-13 16:25:07 +0100 |
commit | 0745d0828f55f348c86468dd2a4894682c85f200 (patch) | |
tree | 0b39a817efe8ba2b87c22217ca6e937fb98b96d4 | |
parent | 8f0c55799000c7e62540ae904fa18234f368211e (diff) | |
download | lace-0745d0828f55f348c86468dd2a4894682c85f200.tar.gz |
Ensure we run all the tests and generate the report even if a test fails
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -13,8 +13,11 @@ distclean: clean .PHONY: test test: @$(RM) luacov.stats.out - @for MOD in $(TEST_MODULES); do \ + @ERR=0; \ + for MOD in $(TEST_MODULES); do \ echo "$${MOD}:"; \ $(LUA) test/test-$${MOD}.lua; \ - done - @$(LUA) extras/luacov/src/bin/luacov -X test. $(TEST_MODULES) + test "x$$?" = "x0" || ERR=1; \ + done; \ + $(LUA) extras/luacov/src/bin/luacov -X test. $(TEST_MODULES); \ + exit $$ERR |