From f466171053aaaf6aaa4263b999baf83ea11e517f Mon Sep 17 00:00:00 2001 From: Juan Carrano Date: Tue, 20 Nov 2018 12:35:54 +0100 Subject: [PATCH] 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. --- makefiles/utils/test-checks.mk | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 makefiles/utils/test-checks.mk diff --git a/makefiles/utils/test-checks.mk b/makefiles/utils/test-checks.mk new file mode 100644 index 0000000000..394887064b --- /dev/null +++ b/makefiles/utils/test-checks.mk @@ -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")