diff options
author | ru <ru@FreeBSD.org> | 2004-10-23 21:38:58 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-10-23 21:38:58 +0000 |
commit | 8cebff99b35a5edd06d796192e0ce76c9d754f58 (patch) | |
tree | 033af486d9d21c84579c9cfd412bc2a3bf0bb8be | |
parent | 4a92f2ee91c974c6360617c05dfe473828cfb70f (diff) | |
download | FreeBSD-src-8cebff99b35a5edd06d796192e0ce76c9d754f58.zip FreeBSD-src-8cebff99b35a5edd06d796192e0ce76c9d754f58.tar.gz |
Add a regression test for the alternate shell specification.
-rw-r--r-- | tools/build/make_check/Makefile | 10 | ||||
-rw-r--r-- | tools/regression/usr.bin/make/Makefile | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tools/build/make_check/Makefile b/tools/build/make_check/Makefile index a58f9ab..d9c1847 100644 --- a/tools/build/make_check/Makefile +++ b/tools/build/make_check/Makefile @@ -59,6 +59,9 @@ all: @echo "Running test plus_flag" @${MAKE} plus_flag || ${MAKE} failure @echo "PASS: Test plus_flag detected no regression." + @echo "Running test shell" + @! ${MAKE} shell >/dev/null 2>&1 && true || ${MAKE} failure + @echo "PASS: Test shell detected no regression." .if make(double) # Doubly-defined targets. make(1) will warn, but use the "right" one. If it @@ -236,6 +239,13 @@ plus_flag_1: +@cd /tmp; pwd .endif +.if make(shell) +# Test if make fully supports the .SHELL specification. +.SHELL: path=/nonexistent +A!= echo ok +shell: +.endif + failure: @echo "FAIL: Test failed: regression detected. See above." @false diff --git a/tools/regression/usr.bin/make/Makefile b/tools/regression/usr.bin/make/Makefile index a58f9ab..d9c1847 100644 --- a/tools/regression/usr.bin/make/Makefile +++ b/tools/regression/usr.bin/make/Makefile @@ -59,6 +59,9 @@ all: @echo "Running test plus_flag" @${MAKE} plus_flag || ${MAKE} failure @echo "PASS: Test plus_flag detected no regression." + @echo "Running test shell" + @! ${MAKE} shell >/dev/null 2>&1 && true || ${MAKE} failure + @echo "PASS: Test shell detected no regression." .if make(double) # Doubly-defined targets. make(1) will warn, but use the "right" one. If it @@ -236,6 +239,13 @@ plus_flag_1: +@cd /tmp; pwd .endif +.if make(shell) +# Test if make fully supports the .SHELL specification. +.SHELL: path=/nonexistent +A!= echo ok +shell: +.endif + failure: @echo "FAIL: Test failed: regression detected. See above." @false |