[infer][tests] Print a message when all tests are passing

Summary: This message should be printed in the standard output once all the tests have passed which makes it easier to dinstinguish the cases when some tests fail from the cases where all tests are fine.

Reviewed By: sblackshear

Differential Revision: D4150022

fbshipit-source-id: 6be39c2
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent bfb0cfa4fd
commit 5e710277dd

@ -186,10 +186,18 @@ inferScriptMode_test: toplevel
$(call silent_on_success,\ $(call silent_on_success,\
INFER_REPL_BINARY=ocaml $(SCRIPT_DIR)/infer_repl $(INFER_DIR)/tests/repl/infer_batch_script.ml) INFER_REPL_BINARY=ocaml $(SCRIPT_DIR)/infer_repl $(INFER_DIR)/tests/repl/infer_batch_script.ml)
.PHONY: test .PHONY: run-test
test: test_build ocaml_unit_test buck_test inferTraceBugs_test inferScriptMode_test run-test: test_build ocaml_unit_test buck_test inferTraceBugs_test inferScriptMode_test
$(MAKE) -C $(SRC_DIR) mod_dep.dot $(MAKE) -C $(SRC_DIR) mod_dep.dot
.PHONY: test
test:
ifeq (,$(findstring s,$(MAKEFLAGS)))
@$(MAKE) run-test && echo "ALL TESTS PASSED"
else
@$(MAKE) run-test || echo "SOME TEST FAILED"
endif
.PHONY: quick-test .PHONY: quick-test
quick-test: test_this_build ocaml_unit_test quick-test: test_this_build ocaml_unit_test

Loading…
Cancel
Save