Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests make(1): add test for :R modifier



details:   https://anonhg.NetBSD.org/src/rev/541af77edf03
branches:  trunk
changeset: 935472:541af77edf03
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Jul 03 15:41:37 2020 +0000

description:
make(1): add test for :R modifier

diffstat:

 usr.bin/make/unit-tests/modmisc.exp |  1 +
 usr.bin/make/unit-tests/modmisc.mk  |  3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 71cdf48d6e89 -r 541af77edf03 usr.bin/make/unit-tests/modmisc.exp
--- a/usr.bin/make/unit-tests/modmisc.exp       Fri Jul 03 15:33:01 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.exp       Fri Jul 03 15:41:37 2020 +0000
@@ -10,4 +10,5 @@
 head of 'a/b/c def archive.tar.gz conf.d/file' is 'a/b . . conf.d
 tail of 'a/b/c def archive.tar.gz conf.d/file' is 'c def archive.tar.gz file
 suffix of 'a/b/c def archive.tar.gz conf.d/file' is 'gz d/file
+root of 'a/b/c def archive.tar.gz conf.d/file' is 'a/b/c def archive.tar conf
 exit status 0
diff -r 71cdf48d6e89 -r 541af77edf03 usr.bin/make/unit-tests/modmisc.mk
--- a/usr.bin/make/unit-tests/modmisc.mk        Fri Jul 03 15:33:01 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.mk        Fri Jul 03 15:41:37 2020 +0000
@@ -1,4 +1,4 @@
-# $Id: modmisc.mk,v 1.4 2020/07/03 15:33:01 rillig Exp $
+# $Id: modmisc.mk,v 1.5 2020/07/03 15:41:37 rillig Exp $
 #
 # miscellaneous modifier tests
 
@@ -42,3 +42,4 @@
        @echo "head of '"${PATHNAMES:Q}"' is '"${PATHNAMES:H:Q}
        @echo "tail of '"${PATHNAMES:Q}"' is '"${PATHNAMES:T:Q}
        @echo "suffix of '"${PATHNAMES:Q}"' is '"${PATHNAMES:E:Q}
+       @echo "root of '"${PATHNAMES:Q}"' is '"${PATHNAMES:R:Q}



Home | Main Index | Thread Index | Old Index