diff options
| author | rillig <rillig@NetBSD.org> | 2023-04-07 05:54:16 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2023-04-07 05:54:16 +0000 |
| commit | 3229355f3fa06fa10b05fd7c055b70b697336bb7 (patch) | |
| tree | 9c76d0bed683e1ca0a5c14a865e9590deb1cfb81 /usr.bin/make | |
| parent | 0d67097d3ab2a1f456a82ecd90c7b9c85f3689b4 (diff) | |
tests/make: add cross references to command line tests
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/unit-tests/var-scope-cmdline.exp | 4 | ||||
| -rw-r--r-- | usr.bin/make/unit-tests/var-scope-cmdline.mk | 6 | ||||
| -rw-r--r-- | usr.bin/make/unit-tests/varcmd.mk | 6 |
3 files changed, 12 insertions, 4 deletions
diff --git a/usr.bin/make/unit-tests/var-scope-cmdline.exp b/usr.bin/make/unit-tests/var-scope-cmdline.exp index a1227a1dd1f..281b5af291c 100644 --- a/usr.bin/make/unit-tests/var-scope-cmdline.exp +++ b/usr.bin/make/unit-tests/var-scope-cmdline.exp @@ -1,4 +1,4 @@ -make: "var-scope-cmdline.mk" line 67: global -make: "var-scope-cmdline.mk" line 76: makeflags +make: "var-scope-cmdline.mk" line 71: global +make: "var-scope-cmdline.mk" line 80: makeflags makeflags exit status 0 diff --git a/usr.bin/make/unit-tests/var-scope-cmdline.mk b/usr.bin/make/unit-tests/var-scope-cmdline.mk index 1f4a3e70025..fbfb2d0290a 100644 --- a/usr.bin/make/unit-tests/var-scope-cmdline.mk +++ b/usr.bin/make/unit-tests/var-scope-cmdline.mk @@ -1,4 +1,4 @@ -# $NetBSD: var-scope-cmdline.mk,v 1.1 2022/01/23 16:25:54 rillig Exp $ +# $NetBSD: var-scope-cmdline.mk,v 1.2 2023/04/07 05:54:16 rillig Exp $ # # Tests for variables specified on the command line. # @@ -61,6 +61,10 @@ # Most cmdline variables are set at the very beginning, when parsing the # command line arguments. Using the special target '.MAKEFLAGS', it is # possible to set cmdline variables at any later time. +# +# See also: +# varcmd.mk +# varname-makeflags.mk # A normal global variable, without any cmdline variable nearby. VAR= global diff --git a/usr.bin/make/unit-tests/varcmd.mk b/usr.bin/make/unit-tests/varcmd.mk index 12739df3092..ec0cf96ed75 100644 --- a/usr.bin/make/unit-tests/varcmd.mk +++ b/usr.bin/make/unit-tests/varcmd.mk @@ -1,4 +1,4 @@ -# $NetBSD: varcmd.mk,v 1.6 2021/02/16 19:43:09 rillig Exp $ +# $NetBSD: varcmd.mk,v 1.7 2023/04/07 05:54:16 rillig Exp $ # # Test behaviour of recursive make and vars set on command line. # @@ -12,6 +12,10 @@ # be rewritten to make it clear why there is a difference and why this is # actually intended. Removing that large block of code makes only this test # and vardebug.mk fail, which is not enough. +# +# See also: +# var-scope-cmdline.mk +# varname-makeflags.mk FU= fu FOO?= foo |
