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 wildcards in d...
details: https://anonhg.NetBSD.org/src/rev/3c7279b47db1
branches: trunk
changeset: 938431:3c7279b47db1
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Sep 08 05:33:05 2020 +0000
description:
make(1): add test for wildcards in dependency declarations
diffstat:
usr.bin/make/unit-tests/dep-wildcards.exp | 6 ++++++
usr.bin/make/unit-tests/dep-wildcards.mk | 11 ++++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 6f6deaba773b -r 3c7279b47db1 usr.bin/make/unit-tests/dep-wildcards.exp
--- a/usr.bin/make/unit-tests/dep-wildcards.exp Tue Sep 08 05:26:21 2020 +0000
+++ b/usr.bin/make/unit-tests/dep-wildcards.exp Tue Sep 08 05:33:05 2020 +0000
@@ -1,1 +1,7 @@
+dep-colon.mk
+dep-double-colon.mk
+dep-exclam.mk
+dep-none.mk
+dep-var.mk
+dep-wildcards.mk
exit status 0
diff -r 6f6deaba773b -r 3c7279b47db1 usr.bin/make/unit-tests/dep-wildcards.mk
--- a/usr.bin/make/unit-tests/dep-wildcards.mk Tue Sep 08 05:26:21 2020 +0000
+++ b/usr.bin/make/unit-tests/dep-wildcards.mk Tue Sep 08 05:33:05 2020 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: dep-wildcards.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: dep-wildcards.mk,v 1.3 2020/09/08 05:33:05 rillig Exp $
#
# Tests for wildcards such as *.c in dependency declarations.
-# TODO: Implementation
-
-all:
- @:;
+all: ${.PARSEDIR}/dep-*.mk
+ # The :T is necessary to run this test from another directory.
+ # The :O is necessary since the result of the dependency resolution
+ # does not order the directory entries itself.
+ @printf '%s\n' ${.ALLSRC:T:O}
Home |
Main Index |
Thread Index |
Old Index