From 8f74e6498f71d5f69cbb585972c3165716319a01 Mon Sep 17 00:00:00 2001 From: Daiva Naudziuniene Date: Mon, 16 Apr 2018 11:12:46 -0700 Subject: [PATCH] [makefile] New target for running clang plugin tests Reviewed By: jvillard Differential Revision: D7637364 fbshipit-source-id: 36b5ca9 --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 7a63dd2dd..beec4d0f0 100644 --- a/Makefile +++ b/Makefile @@ -279,6 +279,17 @@ ifeq ($(IS_RELEASE_TREE),no) CLANG_INCLUDES=$(CLANG_INCLUDES)) endif +.PHONY: clang_plugin_test +clang_plugin_test: clang_setup + $(QUIET)$(call silent_on_success,Running clang plugin tests,\ + $(MAKE) -C $(FCP_DIR)/libtooling test \ + CC=$(CC) CXX=$(CXX) \ + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \ + CPP="$(CPP)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" \ + LOCAL_CLANG=$(CLANG_PREFIX)/bin/clang \ + CLANG_PREFIX=$(CLANG_PREFIX) \ + CLANG_INCLUDES=$(CLANG_INCLUDES)) + .PHONY: ocaml_unit_test ocaml_unit_test: test_build $(QUIET)$(REMOVE_DIR) infer-out-unit-tests