Module Name: src Committed By: rillig Date: Tue Sep 8 05:33:05 UTC 2020
Modified Files: src/usr.bin/make/unit-tests: dep-wildcards.exp dep-wildcards.mk Log Message: make(1): add test for wildcards in dependency declarations To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/dep-wildcards.exp cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/dep-wildcards.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/unit-tests/dep-wildcards.exp diff -u src/usr.bin/make/unit-tests/dep-wildcards.exp:1.1 src/usr.bin/make/unit-tests/dep-wildcards.exp:1.2 --- src/usr.bin/make/unit-tests/dep-wildcards.exp:1.1 Sun Aug 16 12:07:51 2020 +++ src/usr.bin/make/unit-tests/dep-wildcards.exp Tue Sep 8 05:33:05 2020 @@ -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 Index: src/usr.bin/make/unit-tests/dep-wildcards.mk diff -u src/usr.bin/make/unit-tests/dep-wildcards.mk:1.2 src/usr.bin/make/unit-tests/dep-wildcards.mk:1.3 --- src/usr.bin/make/unit-tests/dep-wildcards.mk:1.2 Sun Aug 16 14:25:16 2020 +++ src/usr.bin/make/unit-tests/dep-wildcards.mk Tue Sep 8 05:33:05 2020 @@ -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}