[build] fix clang and java-only tests

Summary: The tests wouldn't pass in clang-only or Java-only mode.

Reviewed By: mbouaziz

Differential Revision: D5498555

fbshipit-source-id: 8e49b8d
master
Jules Villard 8 years ago committed by Facebook Github Bot
parent 4792e37a73
commit fa1c89a974

10
.gitignore vendored

@ -122,8 +122,14 @@ buck-out/
/infer/src/toplevel.mlpack
#atdgen stubs
/infer/src/backend/jsonbug_*
/infer/src/checkers/stacktree_*
/infer/src/backend/jsonbug_j.ml
/infer/src/backend/jsonbug_j.mli
/infer/src/backend/jsonbug_t.ml
/infer/src/backend/jsonbug_t.mli
/infer/src/checkers/stacktree_j.ml
/infer/src/checkers/stacktree_j.mli
/infer/src/checkers/stacktree_t.ml
/infer/src/checkers/stacktree_t.mli
# intelliJ files
/infer/src/backend/.projectSettings

@ -28,7 +28,6 @@ BUILD_SYSTEMS_TESTS += \
reactive \
run_hidden_linters \
utf8_in_procname \
waf \
DIRECT_TESTS += \
c_biabduction c_bufferoverrun c_errors c_frontend \
@ -77,6 +76,9 @@ BUILD_SYSTEMS_TESTS += ant
endif
ifneq ($(BUCK),no)
BUILD_SYSTEMS_TESTS += buck genrule
# do not run these two tests in parallel otherwise Buck has a bad time
build_genrule_test: build_buck_test
build_genrule_print: build_buck_print
endif
ifneq ($(MVN),no)
BUILD_SYSTEMS_TESTS += mvn
@ -84,7 +86,10 @@ endif
endif
ifeq ($(BUILD_C_ANALYZERS)+$(BUILD_JAVA_ANALYZERS),yes+yes)
BUILD_SYSTEMS_TESTS += make utf8_in_pwd
BUILD_SYSTEMS_TESTS += make utf8_in_pwd waf
# the waf test and the make test run the same `make` command
build_waf_test: build_make_test
build_waf_print: build_make_print
endif
.PHONY: all
@ -252,14 +257,6 @@ $(DIRECT_TESTS:%=direct_%_replace): infer
.PHONY: direct_tests
direct_tests: $(DIRECT_TESTS:%=direct_%_test)
# do not run these two tests in parallel otherwise Buck has a bad time
build_genrule_test: build_buck_test
build_genrule_print: build_buck_print
# the waf test and the make test run the same `make` command
build_waf_test: build_make_test
build_waf_print: build_make_print
.PHONY: $(BUILD_SYSTEMS_TESTS:%=build_%_test)
$(BUILD_SYSTEMS_TESTS:%=build_%_test): infer
$(QUIET)$(call silent_on_success,Running $(subst _, ,$@),\

Loading…
Cancel
Save