1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/makefiles/utils/test-checks.mk
Juan Carrano f466171053 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.
2018-12-07 18:19:38 +01:00

8 lines
180 B
Makefile

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")