diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-13 14:39:24 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-13 14:39:24 +0800 |
commit | 07936c0fc538c7a87863e68ba387bc743c84c18b (patch) | |
tree | d0030e7ddfd0fb99f385573962088882df076583 | |
parent | ed0f18cae602463e9e1afd7fa192d2b938ba2e80 (diff) | |
download | dexon-mcl-07936c0fc538c7a87863e68ba387bc743c84c18b.tar.gz dexon-mcl-07936c0fc538c7a87863e68ba387bc743c84c18b.tar.zst dexon-mcl-07936c0fc538c7a87863e68ba387bc743c84c18b.zip |
make returns 1 if tests fail
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -154,7 +154,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 clean: $(RM) $(MCL_LIB) $(MCL_SLIB) $(BN256_LIB) $(BN256_SLIB) $(OBJ_DIR)/*.o $(OBJ_DIR)/*.d $(EXE_DIR)/*.exe $(GEN_EXE) $(ASM_OBJ) $(LIB_OBJ) $(BN256_OBJ) $(LLVM_SRC) $(FUNC_LIST) src/*.ll |