@ -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 )
# de pend on test_build so that we do not run them in parallel
# de adcode 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 :
i f e q ( $( IS_FACEBOOK_TREE ) , n o )
$( QUIET) echo "Deadcode detection only works in Facebook builds, skipping"
e n d i f
i f e q ( $( GNU_SED ) , n o )
$( QUIET) echo "Deadcode detection only works with GNU sed installed, skipping"
e n d i f
i f e q ( $( IS_FACEBOOK_TREE ) , y e s )
i f n e q ( $( GNU_SED ) , n o )
deadcode : real_deadcode
e n d i f
e n d i f
.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
i f e q ( , $( findstring s ,$ ( MAKEFLAGS ) ) )
i f e q ( , $( findstring s ,$ ( MAKEFLAGS ) ) )
$( QUIET) echo " $( TERM_INFO) ALL TESTS PASSED $( TERM_RESET) "
$( QUIET) echo " $( TERM_INFO) ALL TESTS PASSED $( TERM_RESET) "
e n d i f
e n d i f
i f e q ( $( IS_FACEBOOK_TREE ) , y e s )
i f n e q ( $( GNU_SED ) , n o )
test : deadcode
e n d i f
e n d i f
.PHONY : quick -test
.PHONY : quick -test
quick-test : test_build ocaml_unit_test
quick-test : test_build ocaml_unit_test