1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/utils: add tests for checks.mk.

make -f test-checks.mk test-ensure_value should succeed, while
make -f test-checks.mk test-ensure_value-negative should fail.
This commit is contained in:
Juan Carrano 2018-11-20 12:35:54 +01:00
parent 547d9f0802
commit f466171053

View File

@ -0,0 +1,7 @@
include checks.mk
test-ensure_value:
@test "$@" = "$(call ensure_value,$@,"This should not fail")"
test-ensure_value-negative:
@echo $(call ensure_value,$^,"This should fail")