From b171092d6681235ff7eba0145f50486665a45cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ezgi=20=C3=87i=C3=A7ek?= Date: Fri, 28 Feb 2020 07:21:01 -0800 Subject: [PATCH] [cost] Introduce make for only cost analysis Summary: Sometimes, we want to run/clean/replace tests for **only cost analysis**. Let's introduce a set of commands for this purpose. Reviewed By: skcho Differential Revision: D20141657 fbshipit-source-id: d0ad267b2 --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile b/Makefile index 9ce5f4f71..4823b3dbc 100644 --- a/Makefile +++ b/Makefile @@ -486,6 +486,24 @@ $(DIRECT_TESTS:%=direct_%_replace): infer .PHONY: direct_tests direct_tests: $(DIRECT_TESTS:%=direct_%_test) +COST_TESTS += \ + c_performance \ + java_hoistingExpensive \ + java_performance \ + objc_performance \ + +.PHONY: cost_tests +cost_tests: $(COST_TESTS:%=direct_%_test) + +.PHONY: cost_tests_clean +cost_tests_clean: $(COST_TESTS:%=direct_%_clean) + +.PHONY: cost_tests_replace +cost_tests_replace: $(COST_TESTS:%=direct_%_replace) + +.PHONY: cost_tests_print +cost_tests_print: $(COST_TESTS:%=direct_%_print) + .PHONY: $(BUILD_SYSTEMS_TESTS:%=build_%_test) $(BUILD_SYSTEMS_TESTS:%=build_%_test): infer $(QUIET)$(call silent_on_success,Running test: $(subst _, ,$@),\