aboutsummaryrefslogtreecommitdiff
path: root/testsuite/make.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/make.tests')
-rwxr-xr-xtestsuite/make.tests25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests
index 546dca7d5..fdbb4ccfc 100755
--- a/testsuite/make.tests
+++ b/testsuite/make.tests
@@ -377,6 +377,31 @@ target:
377b} 377b}
378' 378'
379 379
380# The CURDIR macro is supported in POSIX 202X.
381testing "make CURDIR macro" \
382 "make -f -" \
383 "OK\n" "" '
384target:
385 @test "$(CURDIR)" = "$$(pwd)" && echo OK
386'
387# The CURDIR environment variable doesn't affect the macro
388export CURDIR=/you/are/here
389testing "make CURDIR macro not affected by environment" \
390 "make -f -" \
391 "OK\n" "" '
392target:
393 @test "$(CURDIR)" != "/you/are/here" && echo OK
394'
395
396# The -e option makes the CURDIR macro match the environment
397testing "make with -e CURDIR macro is affected by the environment" \
398 "make -e -f -" \
399 "/you/are/here\n" "" '
400target:
401 @echo $(CURDIR)
402'
403unset CURDIR
404
380# POSIX 202X permits additional characters in macro and target names 405# POSIX 202X permits additional characters in macro and target names
381testing "make allow - and / in target names, - in macro names" \ 406testing "make allow - and / in target names, - in macro names" \
382 "make -f -" \ 407 "make -f -" \