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 Add a test case for sysV modifier subst



details:   https://anonhg.NetBSD.org/src/rev/64bcf5be9820
branches:  trunk
changeset: 764106:64bcf5be9820
user:      sjg <sjg%NetBSD.org@localhost>
date:      Mon Apr 11 15:10:15 2011 +0000

description:
Add a test case for sysV modifier subst

diffstat:

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

diffs (32 lines):

diff -r f6f4179cca09 -r 64bcf5be9820 usr.bin/make/unit-tests/modmisc
--- a/usr.bin/make/unit-tests/modmisc   Mon Apr 11 15:00:49 2011 +0000
+++ b/usr.bin/make/unit-tests/modmisc   Mon Apr 11 15:10:15 2011 +0000
@@ -1,4 +1,4 @@
-# $Id: modmisc,v 1.6 2010/04/23 15:43:28 sjg Exp $
+# $Id: modmisc,v 1.7 2011/04/11 15:10:15 sjg Exp $
 #
 # miscellaneous modifier tests
 
@@ -15,7 +15,10 @@
 MOD_OPT=@d@$${exists($$d):?$$d:$${d:S,/usr,/opt,}}@
 MOD_SEP=S,:, ,g
 
-all:   modvar modvarloop
+all:   modvar modvarloop modsysv
+
+modsysv:
+       @echo "The answer is ${libfoo.a:L:libfoo.a=42}"
 
 modvar:
        @echo "path='${path}'"
diff -r f6f4179cca09 -r 64bcf5be9820 usr.bin/make/unit-tests/test.exp
--- a/usr.bin/make/unit-tests/test.exp  Mon Apr 11 15:00:49 2011 +0000
+++ b/usr.bin/make/unit-tests/test.exp  Mon Apr 11 15:10:15 2011 +0000
@@ -128,6 +128,7 @@
 path_/usr/xbin=/opt/xbin/
 paths=/bin /tmp / /no/such/dir /opt/xbin
 PATHS=/BIN /TMP / /NO/SUCH/DIR /OPT/XBIN
+The answer is 42
 LIST      = one two three four five six seven eight nine ten
 LIST:O    = eight five four nine one seven six ten three two
 LIST:Ox   = Ok



Home | Main Index | Thread Index | Old Index