[infer][tests] Run the tests with the option --no-keep-going

Reviewed By: jvillard

Differential Revision: D5487560

fbshipit-source-id: bfdfeaf
master
Jeremy Dubreil 7 years ago committed by Facebook Github Bot
parent 9cf8d0fd3b
commit 51028b730d

@ -24,8 +24,8 @@ include $(TESTS_DIR)/clang.make
infer-out/report.json: $(CLANG_DEPS) $(SOURCES) infer-out/report.json: $(CLANG_DEPS) $(SOURCES)
$(QUIET)$(call silent_on_success,Testing that infer deletes the results directory: part 1/2,\ $(QUIET)$(call silent_on_success,Testing that infer deletes the results directory: part 1/2,\
$(INFER_BIN) --dump-duplicate-symbols $(INFER_OPTIONS) -a $(ANALYZER) -- clang $(CLANG_OPTIONS) $(CODETOANALYZE_DIR)/hello.c) $(INFER_BIN) --no-keep-going --dump-duplicate-symbols $(INFER_OPTIONS) -a $(ANALYZER) -- clang $(CLANG_OPTIONS) $(CODETOANALYZE_DIR)/hello.c)
$(QUIET)$(call check_no_duplicates,infer-out/duplicates.txt) $(QUIET)$(call check_no_duplicates,infer-out/duplicates.txt)
$(QUIET)$(call silent_on_success,Testing that infer deletes the results directory: part 2/2,\ $(QUIET)$(call silent_on_success,Testing that infer deletes the results directory: part 2/2,\
$(INFER_BIN) --dump-duplicate-symbols $(INFER_OPTIONS) -a $(ANALYZER) -- clang $(CLANG_OPTIONS) $(CODETOANALYZE_DIR)/hello2.c) $(INFER_BIN) --no-keep-going --dump-duplicate-symbols $(INFER_OPTIONS) -a $(ANALYZER) -- clang $(CLANG_OPTIONS) $(CODETOANALYZE_DIR)/hello2.c)
$(QUIET)$(call check_no_duplicates,infer-out/duplicates.txt) $(QUIET)$(call check_no_duplicates,infer-out/duplicates.txt)

@ -28,7 +28,7 @@ $(INFER_OUT)/differential/introduced.json: $(SOURCES) $(CLANG_DEPS)
$(QUIET)$(MKDIR_P) src $(QUIET)$(MKDIR_P) src
$(QUIET)$(COPY) $(SRC_DIR)/some_bugs.c src/hello.c $(QUIET)$(COPY) $(SRC_DIR)/some_bugs.c src/hello.c
$(QUIET)$(call silent_on_success,Running diff analysis in $(TEST_REL_DIR),\ $(QUIET)$(call silent_on_success,Running diff analysis in $(TEST_REL_DIR),\
$(INFER_BIN) -o $(INFER_OUT) --project-root $(CURDIR) diff \ $(INFER_BIN) --no-keep-going -o $(INFER_OUT) --project-root $(CURDIR) diff \
$(INFER_OPTIONS)) $(INFER_OPTIONS))
introduced.exp.test: $(INFER_OUT)/differential/introduced.json $(INFER_BIN) introduced.exp.test: $(INFER_OUT)/differential/introduced.json $(INFER_BIN)

@ -24,7 +24,7 @@ default: compile
issues.exp.test: $(CLANG_DEPS) $(SOURCES) issues.exp.test: $(CLANG_DEPS) $(SOURCES)
$(QUIET)$(call silent_on_success,Testing Infer fails on issue,\ $(QUIET)$(call silent_on_success,Testing Infer fails on issue,\
($(INFER_BIN) --fail-on-issue -- clang $(CLANG_OPTIONS) $(SOURCES); \ ($(INFER_BIN) --no-keep-going --fail-on-issue -- clang $(CLANG_OPTIONS) $(SOURCES); \
echo "infer exit code: $$?" > $@)) echo "infer exit code: $$?" > $@))
.PHONY: compile .PHONY: compile

@ -18,6 +18,6 @@ include $(TESTS_DIR)/clang.make
infer-out/report.json: $(CLANG_DEPS) $(SOURCES) $(HEADERS) infer-out/report.json: $(CLANG_DEPS) $(SOURCES) $(HEADERS)
$(QUIET)$(call silent_on_success,Testing make clang and javac integration,\ $(QUIET)$(call silent_on_success,Testing make clang and javac integration,\
$(INFER_BIN) --dump-duplicate-symbols --project-root $(TESTS_DIR) -a $(ANALYZER) -- \ $(INFER_BIN) --no-keep-going --dump-duplicate-symbols --project-root $(TESTS_DIR) -a $(ANALYZER) -- \
make -C ../codetoanalyze/make clean all) make -C ../codetoanalyze/make clean all)
$(QUIET)$(call check_no_duplicates,infer-out/duplicates.txt) $(QUIET)$(call check_no_duplicates,infer-out/duplicates.txt)

Loading…
Cancel
Save