diff options
author | harti <harti@FreeBSD.org> | 2004-08-05 07:24:06 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-08-05 07:24:06 +0000 |
commit | c6e3261d2f42db21a4cd143508b0989154efa5ec (patch) | |
tree | 2e0b4a2073a97479c29239ead2a8368bb2afc18b /tools/build/make_check | |
parent | 44bc5cf10be74f2909ac3591a1446ee698a1927f (diff) | |
download | FreeBSD-src-c6e3261d2f42db21a4cd143508b0989154efa5ec.zip FreeBSD-src-c6e3261d2f42db21a4cd143508b0989154efa5ec.tar.gz |
Add another test that checks for a working '+' command flag.
Diffstat (limited to 'tools/build/make_check')
-rw-r--r-- | tools/build/make_check/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/build/make_check/Makefile b/tools/build/make_check/Makefile index 348e9dd..b4ce8d0 100644 --- a/tools/build/make_check/Makefile +++ b/tools/build/make_check/Makefile @@ -56,6 +56,9 @@ all: @echo "Running test pass_cmd_vars " @${MAKE} pass_cmd_vars || ${MAKE} failure @echo "PASS: Test pass_cmd_vars detected no regression." + @echo "Running test plus_flag " + @${MAKE} plus_flag || ${MAKE} failure + @echo "PASS: Test plus_flag detected no regression." .if make(double) # Doubly-defined targets. make(1) will warn, but use the "right" one. If it @@ -219,6 +222,22 @@ pass_cmd_vars_4_1: @: .endif +# +# Test whether make supports the '+' flag (meaning: execute even with -n) +# +.if make(plus_flag) +OUT != ${MAKE} -n plus_flag_1 +.if ${OUT} != "/tmp" +.error "make doesn't handle + flag" +.endif +plus_flag: + @: +.endif +.if make(plus_flag_1) +plus_flag_1: + +@cd /tmp; pwd +.endif + failure: @echo "FAIL: Test failed: regression detected. See above." @false |