aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-03-13 14:39:24 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-03-13 14:39:24 +0800
commit07936c0fc538c7a87863e68ba387bc743c84c18b (patch)
treed0030e7ddfd0fb99f385573962088882df076583
parented0f18cae602463e9e1afd7fa192d2b938ba2e80 (diff)
downloaddexon-mcl-07936c0fc538c7a87863e68ba387bc743c84c18b.tar.gz
dexon-mcl-07936c0fc538c7a87863e68ba387bc743c84c18b.tar.zst
dexon-mcl-07936c0fc538c7a87863e68ba387bc743c84c18b.zip
make returns 1 if tests fail
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ad25ac3..cd5b2e8 100644
--- a/Makefile
+++ b/Makefile
@@ -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