aboutsummaryrefslogtreecommitdiff
path: root/testsuite/make.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/make.tests')
-rwxr-xr-xtestsuite/make.tests30
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests
index 376bdcc15..e3103c514 100755
--- a/testsuite/make.tests
+++ b/testsuite/make.tests
@@ -541,6 +541,36 @@ testing "make chained inference rules" \
541' 541'
542cd .. || exit 1; rm -rf make.tempdir 2>/dev/null 542cd .. || exit 1; rm -rf make.tempdir 2>/dev/null
543 543
544# Suffixes with multiple periods are supported
545mkdir make.tempdir && cd make.tempdir || exit 1
546touch x.c.c
547testing "make support multi-period suffixes" \
548 "make -f -" "cat x.c.c >x.o.o\nx\n" "" '
549.SUFFIXES: .c.c .o.o
550x.o.o:
551.c.c.o.o:
552 cat $< >$@
553 @echo $*
554'
555cd .. || exit 1; rm -rf make.tempdir 2>/dev/null
556
557# Suffixes with no periods are supported
558mkdir make.tempdir && cd make.tempdir || exit 1
559touch filex
560testing "make support suffixes without any periods" \
561 "make -f -" "cp filex fileh\nfile\ncp filex filez\nfile\n" "" '
562.SUFFIXES: x h z
563all: fileh filez
564fileh:
565filez: filex
566 cp filex filez
567 @echo $*
568xh:
569 cp $< $@
570 @echo $*
571'
572cd .. || exit 1; rm -rf make.tempdir 2>/dev/null
573
544# make supports *, ? and [] wildcards in targets and prerequisites 574# make supports *, ? and [] wildcards in targets and prerequisites
545mkdir make.tempdir && cd make.tempdir || exit 1 575mkdir make.tempdir && cd make.tempdir || exit 1
546touch -t 202206171201 t1a t2aa t3b 576touch -t 202206171201 t1a t2aa t3b