make -f test-checks.mk test-ensure_value should succeed, while make -f test-checks.mk test-ensure_value-negative should fail.
8 lines
180 B
Makefile
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")
|