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 test case for :Or



details:   https://anonhg.NetBSD.org/src/rev/2a9f25cd479d
branches:  trunk
changeset: 934259:2a9f25cd479d
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Jun 09 01:48:17 2020 +0000

description:
Add test case for :Or

diffstat:

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

diffs (27 lines):

diff -r 97b25c57bf7f -r 2a9f25cd479d usr.bin/make/unit-tests/modorder.exp
--- a/usr.bin/make/unit-tests/modorder.exp      Tue Jun 09 00:28:57 2020 +0000
+++ b/usr.bin/make/unit-tests/modorder.exp      Tue Jun 09 01:48:17 2020 +0000
@@ -1,5 +1,6 @@
 LIST      = one two three four five six seven eight nine ten
 LIST:O    = eight five four nine one seven six ten three two
+LIST:Or    = two three ten six seven one nine four five eight
 LIST:Ox   = Ok
 LIST:O:Ox = Ok
 LISTX     = Ok
diff -r 97b25c57bf7f -r 2a9f25cd479d usr.bin/make/unit-tests/modorder.mk
--- a/usr.bin/make/unit-tests/modorder.mk       Tue Jun 09 00:28:57 2020 +0000
+++ b/usr.bin/make/unit-tests/modorder.mk       Tue Jun 09 01:48:17 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: modorder.mk,v 1.2 2020/01/07 22:42:14 rillig Exp $
+# $NetBSD: modorder.mk,v 1.3 2020/06/09 01:48:17 sjg Exp $
 
 LIST=          one two three four five six seven eight nine ten
 LISTX=         ${LIST:Ox}
@@ -10,6 +10,7 @@
 all:
        @echo "LIST      = ${LIST}"
        @echo "LIST:O    = ${LIST:O}"
+       @echo "LIST:Or    = ${LIST:Or}"
        # Note that 1 in every 10! trials two independently generated
        # randomized orderings will be the same.  The test framework doesn't
        # support checking probabilistic output, so we accept that each of the



Home | Main Index | Thread Index | Old Index