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/eab4eaec3b9a
branches: trunk
changeset: 954669:eab4eaec3b9a
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 3d9c99793414 -r eab4eaec3b9a 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 3d9c99793414 -r eab4eaec3b9a 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