diff options
Diffstat (limited to 'testsuite/make.tests')
-rwxr-xr-x | testsuite/make.tests | 30 |
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 | ' |
542 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | 542 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null |
543 | 543 | ||
544 | # Suffixes with multiple periods are supported | ||
545 | mkdir make.tempdir && cd make.tempdir || exit 1 | ||
546 | touch x.c.c | ||
547 | testing "make support multi-period suffixes" \ | ||
548 | "make -f -" "cat x.c.c >x.o.o\nx\n" "" ' | ||
549 | .SUFFIXES: .c.c .o.o | ||
550 | x.o.o: | ||
551 | .c.c.o.o: | ||
552 | cat $< >$@ | ||
553 | @echo $* | ||
554 | ' | ||
555 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | ||
556 | |||
557 | # Suffixes with no periods are supported | ||
558 | mkdir make.tempdir && cd make.tempdir || exit 1 | ||
559 | touch filex | ||
560 | testing "make support suffixes without any periods" \ | ||
561 | "make -f -" "cp filex fileh\nfile\ncp filex filez\nfile\n" "" ' | ||
562 | .SUFFIXES: x h z | ||
563 | all: fileh filez | ||
564 | fileh: | ||
565 | filez: filex | ||
566 | cp filex filez | ||
567 | @echo $* | ||
568 | xh: | ||
569 | cp $< $@ | ||
570 | @echo $* | ||
571 | ' | ||
572 | cd .. || 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 |
545 | mkdir make.tempdir && cd make.tempdir || exit 1 | 575 | mkdir make.tempdir && cd make.tempdir || exit 1 |
546 | touch -t 202206171201 t1a t2aa t3b | 576 | touch -t 202206171201 t1a t2aa t3b |