From da1b137e389365ddfb9d16b3d6761cf1a3986e0b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 27 Jun 2005 01:01:07 +0000 Subject: Fix strerror() handling for systems which set ANSI_STRING. Don't print errors if "include" is specified with no arguments. New test suite for the $(shell ...) function. --- tests/scripts/functions/shell | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/scripts/functions/shell (limited to 'tests/scripts/functions') diff --git a/tests/scripts/functions/shell b/tests/scripts/functions/shell new file mode 100644 index 0000000..ecea4cf --- /dev/null +++ b/tests/scripts/functions/shell @@ -0,0 +1,23 @@ +# -*-perl-*- + +$description = 'Test the $(shell ...) function.'; + +$details = ''; + + +# Test shells inside rules. +run_make_test('.PHONY: all +all: ; @echo $(shell echo hi) +','','hi'); + + +# Test shells inside exported environment variables. +# This is the test that fails if we try to put make exported variables into +# the environment for a $(shell ...) call. +run_make_test(' +export HI = $(shell echo hi) +.PHONY: all +all: ; @echo $$HI +','','hi'); + +1; -- cgit v1.2.3