From 5e710277ddfd9fc81662f68ca7ccf693758da0e3 Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Wed, 9 Nov 2016 10:47:18 -0800 Subject: [PATCH] [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 --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8038cc11d..bf837e42a 100644 --- a/Makefile +++ b/Makefile @@ -186,10 +186,18 @@ inferScriptMode_test: toplevel $(call silent_on_success,\ INFER_REPL_BINARY=ocaml $(SCRIPT_DIR)/infer_repl $(INFER_DIR)/tests/repl/infer_batch_script.ml) -.PHONY: test -test: test_build ocaml_unit_test buck_test inferTraceBugs_test inferScriptMode_test +.PHONY: run-test +run-test: test_build ocaml_unit_test buck_test inferTraceBugs_test inferScriptMode_test $(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 quick-test: test_this_build ocaml_unit_test