[test] do not run the dead code analysis as part of the tests

Summary:
The dead code checker slows down the test suite notably, and can be annoying
when you're in the middle of a change.

Depends on D7443825

Reviewed By: mbouaziz, ngorogiannis

Differential Revision: D7443881

fbshipit-source-id: 746cf6e
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent e9a3913fdb
commit 6cf7417e56

@ -181,12 +181,28 @@ test_build: src_build_common
$(QUIET)$(call silent_on_success,Testing Infer builds without warnings,\ $(QUIET)$(call silent_on_success,Testing Infer builds without warnings,\
$(MAKE_SOURCE) test) $(MAKE_SOURCE) test)
# depend on test_build so that we do not run them in parallel # deadcode analysis: only do the deadcode detection on Facebook builds and if GNU sed is available
.PHONY: deadcode .PHONY: real_deadcode
deadcode: src_build_common test_build real_deadcode: src_build_common
$(QUIET)$(call silent_on_success,Testing there is no dead OCaml code,\ $(QUIET)$(call silent_on_success,Testing there is no dead OCaml code,\
$(MAKE) -C $(SRC_DIR)/deadcode) $(MAKE) -C $(SRC_DIR)/deadcode)
.PHONY: deadcode
deadcode:
ifeq ($(IS_FACEBOOK_TREE),no)
$(QUIET)echo "Deadcode detection only works in Facebook builds, skipping"
endif
ifeq ($(GNU_SED),no)
$(QUIET)echo "Deadcode detection only works with GNU sed installed, skipping"
endif
ifeq ($(IS_FACEBOOK_TREE),yes)
ifneq ($(GNU_SED),no)
deadcode: real_deadcode
endif
endif
.PHONY: toplevel .PHONY: toplevel
toplevel: src_build_common toplevel: src_build_common
$(QUIET)$(call silent_on_success,Building Infer REPL,\ $(QUIET)$(call silent_on_success,Building Infer REPL,\
@ -398,11 +414,6 @@ test: crash_if_not_all_analyzers_enabled config_tests
ifeq (,$(findstring s,$(MAKEFLAGS))) ifeq (,$(findstring s,$(MAKEFLAGS)))
$(QUIET)echo "$(TERM_INFO)ALL TESTS PASSED$(TERM_RESET)" $(QUIET)echo "$(TERM_INFO)ALL TESTS PASSED$(TERM_RESET)"
endif endif
ifeq ($(IS_FACEBOOK_TREE),yes)
ifneq ($(GNU_SED),no)
test: deadcode
endif
endif
.PHONY: quick-test .PHONY: quick-test
quick-test: test_build ocaml_unit_test quick-test: test_build ocaml_unit_test

Loading…
Cancel
Save