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 :: in the main...



details:   https://anonhg.NetBSD.org/src/rev/144d16e134f6
branches:  trunk
changeset: 975138:144d16e134f6
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Aug 22 12:42:32 2020 +0000

description:
make(1): add test for :: in the main target

diffstat:

 usr.bin/make/unit-tests/dep-double-colon.exp |   4 ++++
 usr.bin/make/unit-tests/dep-double-colon.mk  |  11 +++++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 8f674252d3ea -r 144d16e134f6 usr.bin/make/unit-tests/dep-double-colon.exp
--- a/usr.bin/make/unit-tests/dep-double-colon.exp      Sat Aug 22 12:30:57 2020 +0000
+++ b/usr.bin/make/unit-tests/dep-double-colon.exp      Sat Aug 22 12:42:32 2020 +0000
@@ -1,1 +1,5 @@
+command 1a
+command 1b
+command 2a
+command 2b
 exit status 0
diff -r 8f674252d3ea -r 144d16e134f6 usr.bin/make/unit-tests/dep-double-colon.mk
--- a/usr.bin/make/unit-tests/dep-double-colon.mk       Sat Aug 22 12:30:57 2020 +0000
+++ b/usr.bin/make/unit-tests/dep-double-colon.mk       Sat Aug 22 12:42:32 2020 +0000
@@ -1,8 +1,11 @@
-# $NetBSD: dep-double-colon.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: dep-double-colon.mk,v 1.3 2020/08/22 12:42:32 rillig Exp $
 #
 # Tests for the :: operator in dependency declarations.
 
-# TODO: Implementation
+all::
+       @echo 'command 1a'
+       @echo 'command 1b'
 
-all:
-       @:;
+all::
+       @echo 'command 2a'
+       @echo 'command 2b'



Home | Main Index | Thread Index | Old Index