From 6d908a38e05b9d4135c65d23114a5874215b5bb8 Mon Sep 17 00:00:00 2001 From: Lukc Date: Sat, 11 Dec 2010 19:15:23 +0100 Subject: Engagement initial. --- make/make-3.81/tests/scripts/functions/shell | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 make/make-3.81/tests/scripts/functions/shell (limited to 'make/make-3.81/tests/scripts/functions/shell') diff --git a/make/make-3.81/tests/scripts/functions/shell b/make/make-3.81/tests/scripts/functions/shell new file mode 100644 index 0000000..ecea4cf --- /dev/null +++ b/make/make-3.81/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-70-g09d2