diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-13 14:41:57 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-13 14:41:57 +0800 |
commit | 8a21ce2567a9a7ba39159df6855f9348aa1b9c89 (patch) | |
tree | f0bf3bbbecc485f5e9cdb48248b501fb8333231b /Makefile | |
parent | a00f72b0fcb7dc57b8d434e73123811cf0f6989d (diff) | |
download | dexon-bls-8a21ce2567a9a7ba39159df6855f9348aa1b9c89.tar dexon-bls-8a21ce2567a9a7ba39159df6855f9348aa1b9c89.tar.gz dexon-bls-8a21ce2567a9a7ba39159df6855f9348aa1b9c89.tar.bz2 dexon-bls-8a21ce2567a9a7ba39159df6855f9348aa1b9c89.tar.lz dexon-bls-8a21ce2567a9a7ba39159df6855f9348aa1b9c89.tar.xz dexon-bls-8a21ce2567a9a7ba39159df6855f9348aa1b9c89.tar.zst dexon-bls-8a21ce2567a9a7ba39159df6855f9348aa1b9c89.zip |
make returns 1 if tests fail
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ TEST_EXE=$(addprefix $(EXE_DIR)/,$(TEST_SRC:.cpp=.exe)) test: $(TEST_EXE) @echo test $(TEST_EXE) @sh -ec 'for i in $(TEST_EXE); do $$i|grep "ctest:name"; done' > result.txt - @grep -v "ng=0, exception=0" result.txt || echo "all unit tests are ok" + @grep -v "ng=0, exception=0" result.txt; if [ $$? -eq 1 ]; then echo "all unit tests succeed"; else exit 1; fi run_go: go/main.go $(BLS_LIB) $(BLS_IF_LIB) # cd go && env GODEBUG=cgocheck=0 go run main.go |