diff options
author | Paul Smith <psmith@gnu.org> | 2005-06-27 01:01:07 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2005-06-27 01:01:07 +0000 |
commit | da1b137e389365ddfb9d16b3d6761cf1a3986e0b (patch) | |
tree | 14a9a1f8b975eaae55a686ff2dc6d602c201b2aa /tests | |
parent | d6a7894d3a6bdb45def58b2fdfb0629233f4f38b (diff) | |
download | gunmake-da1b137e389365ddfb9d16b3d6761cf1a3986e0b.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 7 | ||||
-rw-r--r-- | tests/scripts/features/include | 10 | ||||
-rw-r--r-- | tests/scripts/functions/shell | 23 |
3 files changed, 40 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index c07d7c1..bc2108d 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,12 @@ +2005-06-26 Paul D. Smith <psmith@gnu.org> + + * scripts/functions/shell: New test suite for the shell function. + 2005-06-25 Paul D. Smith <psmith@gnu.org> + * scripts/features/include: Test include/-include/sinclude with no + arguments. Tests fix for Savannah bug #1761. + * scripts/misc/general3: Implement comprehensive testing of backslash-newline behavior in command scripts: various types of quoting, fast path / slow path, etc. diff --git a/tests/scripts/features/include b/tests/scripts/features/include index 26ee1bd..5030662 100644 --- a/tests/scripts/features/include +++ b/tests/scripts/features/include @@ -107,4 +107,14 @@ foo: bar; @: bar:; @false ', '', ''); +# Check include, sinclude, -include with no filenames. +# (Savannah bug #1761). + +run_make_test(' +.PHONY: all +all:; @: +include +-include +sinclude', '', ''); + 1; 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; |