From 7d1e34b80d18f3d6aa4d55e0bf1277404726beb5 Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Thu, 14 Jun 2018 13:50:17 +0200 Subject: [PATCH] Add new make target 'integration', have 'test' exclude them The rationale for this new target is that for #28, we'd probably have these tests depend on git being installed; and 'make test' should still "just work" for everyone. Also, this is differentiating test cases by their _names_, not labels. This is because I haven't found a way to _exclude_ based on a label, to have `make test` not run any of the integration tests. (Short of adding label=unit to all the unit tests, which would of course be another option.) Signed-off-by: Stephan Renatus --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a55d550..d488cf9 100644 --- a/Makefile +++ b/Makefile @@ -48,8 +48,11 @@ install: $(binary) $(tests_binary): $(GEN_FILES) $(SOURCE_FILES) | $(BUILD_DIR) ${PONYC} $(arch_arg) --debug -o ${BUILD_DIR} $(SRC_DIR)/test +integration: $(binary) $(tests_binary) + $(tests_binary) --only=integration + test: $(tests_binary) - $^ + $^ --exclude=integration clean: rm -rf $(BUILD_DIR) @@ -90,4 +93,4 @@ endef $(eval $(call EXPAND_DEPLOY)) -.PHONY: all clean deploy install test +.PHONY: all clean deploy install test integration