aboutsummaryrefslogtreecommitdiffstats
path: root/core/test.mk
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2020-06-22 11:53:50 +0200
committerJean-Sébastien Pédron <[email protected]>2020-06-22 11:53:50 +0200
commit213974ff32fee625f9234efb345806ea218dfe1e (patch)
tree4386f8adf4c2c16dec1a0504f697c9d08a5c6555 /core/test.mk
parent4ad50cdf9dd258ef40c8cbb245bf5db11cbd1f25 (diff)
downloaderlang.mk-213974ff32fee625f9234efb345806ea218dfe1e.tar.gz
erlang.mk-213974ff32fee625f9234efb345806ea218dfe1e.tar.bz2
erlang.mk-213974ff32fee625f9234efb345806ea218dfe1e.zip
core/test.mk: Abort build if a test file fails to compile
In commit c55d0dcd6182983521d4ab34478cfe4b093edb12, the recipe was improved to only rebuild out-of-date test files (not everything as it was the case before). However in the process, the exit status of the Erlang compiler was not checked anymore, leading to build failures in the test directory to be ignored. This patch fixes this bug.
Diffstat (limited to 'core/test.mk')
-rw-r--r--core/test.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/test.mk b/core/test.mk
index 5bc9272..8054abc 100644
--- a/core/test.mk
+++ b/core/test.mk
@@ -47,7 +47,7 @@ endef
ERL_TEST_FILES = $(call core_find,$(TEST_DIR)/,*.erl)
$(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build: $(ERL_TEST_FILES) $(MAKEFILE_LIST)
$(eval FILES_TO_COMPILE := $(if $(filter $(MAKEFILE_LIST),$?),$(filter $(ERL_TEST_FILES),$^),$?))
- $(if $(strip $(FILES_TO_COMPILE)),$(call compile_test_erl,$(FILES_TO_COMPILE)); touch $@)
+ $(if $(strip $(FILES_TO_COMPILE)),$(call compile_test_erl,$(FILES_TO_COMPILE)) && touch $@)
endif
test-build:: IS_TEST=1