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:
parent
547d9f0802
commit
f466171053
7
makefiles/utils/test-checks.mk
Normal file
7
makefiles/utils/test-checks.mk
Normal 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")
|
Loading…
Reference in New Issue
Block a user