diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-10-02 21:30:30 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-10-02 21:30:30 +0000 |
| commit | 21159d1687baa5f8c04b44ded49de89647190090 (patch) | |
| tree | ce7b4dd061a28517eb5677f21263ba45f59ffd29 /tools/regression/usr.bin/make | |
| parent | 833d1871ba8b2b09133540bcb2f10a6cc1c35cfd (diff) | |
Notes
Diffstat (limited to 'tools/regression/usr.bin/make')
| -rw-r--r-- | tools/regression/usr.bin/make/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/make/Makefile b/tools/regression/usr.bin/make/Makefile index bf26b446a83e2..e7bede71cc005 100644 --- a/tools/regression/usr.bin/make/Makefile +++ b/tools/regression/usr.bin/make/Makefile @@ -44,6 +44,9 @@ all: @echo "Running test arith_expr" @${MAKE} arith_expr || ${MAKE} failure @echo "PASS: Test arith_expr detected no regression." + @echo "Running test PATH_exists" + @${MAKE} PATH_exists || ${MAKE} failure + @echo "PASS: Test PATH_exists detected no regression." .if make(double) # Doubly-defined targets. make(1) will warn, but use the "right" one. If it @@ -102,6 +105,14 @@ VALUE= 0 .endif .endif +.if make(PATH_exists) +PATH_exists: +.PATH: ${.CURDIR} +.if !exists(${.CURDIR}/) || !exists(${.CURDIR}/.) || !exists(${.CURDIR}/..) +.error exists() failed +.endif +.endif + failure: @echo "FAIL: Test failed: regression detected. See above." @false |
