diff --git a/.travis.yml b/.travis.yml index 2e1239e..211c10c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ addons: packages: - libgmp-dev script: - - make test DEBUG=1 -j3 + - make test_ci DEBUG=1 -j3 - make clean - make test_go diff --git a/Makefile b/Makefile index 7d845ed..e8fbd7e 100644 --- a/Makefile +++ b/Makefile @@ -269,6 +269,8 @@ SAMPLE_EXE=$(addprefix $(EXE_DIR)/,$(addsuffix .exe,$(basename $(SAMPLE_SRC)))) sample: $(SAMPLE_EXE) $(MCL_LIB) TEST_EXE=$(addprefix $(EXE_DIR)/,$(TEST_SRC:.cpp=.exe)) +test_ci: + @sh -ec 'for i in $(TEST_EXE); do echo $$i; $$i; done' test: $(TEST_EXE) @echo test $(TEST_EXE) @sh -ec 'for i in $(TEST_EXE); do $$i|grep "ctest:name"; done' > result.txt