Module Name:    src
Committed By:   rillig
Date:           Wed Jun 21 07:30:51 UTC 2023

Modified Files:
        src/usr.bin/make/unit-tests: var-op-append.mk varname-dot-parsedir.exp
            varname-dot-parsedir.mk varname-dot-parsefile.exp
            varname-dot-parsefile.mk

Log Message:
tests/make: document a few tests


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/make/unit-tests/var-op-append.mk
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/unit-tests/varname-dot-parsedir.exp
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/make/unit-tests/varname-dot-parsedir.mk
cvs rdiff -u -r1.4 -r1.5 \
    src/usr.bin/make/unit-tests/varname-dot-parsefile.exp
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/unit-tests/varname-dot-parsefile.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/var-op-append.mk
diff -u src/usr.bin/make/unit-tests/var-op-append.mk:1.9 src/usr.bin/make/unit-tests/var-op-append.mk:1.10
--- src/usr.bin/make/unit-tests/var-op-append.mk:1.9	Sun Apr  4 10:13:09 2021
+++ src/usr.bin/make/unit-tests/var-op-append.mk	Wed Jun 21 07:30:50 2023
@@ -1,7 +1,20 @@
-# $NetBSD: var-op-append.mk,v 1.9 2021/04/04 10:13:09 rillig Exp $
+# $NetBSD: var-op-append.mk,v 1.10 2023/06/21 07:30:50 rillig Exp $
 #
-# Tests for the += variable assignment operator, which appends to a variable,
-# creating it if necessary.
+# Tests for the '+=' variable assignment operator, which appends to a
+# variable, creating it if necessary.
+#
+# See also
+#	var-op.mk
+#
+# Standards
+#	The '+=' variable assignment operator is planned to be added in
+#	POSIX.1-202x.
+#
+#	This implementation does not support the immediate-expansion macros
+#	specified in POSIX.1-202x.  All variables are delayed-expansion.
+#
+# History
+#	The '+=' variable assignment operator was added before 1993-03-21.
 
 # Appending to an undefined variable is possible.
 # The variable is created, and no extra space is added before the value.

Index: src/usr.bin/make/unit-tests/varname-dot-parsedir.exp
diff -u src/usr.bin/make/unit-tests/varname-dot-parsedir.exp:1.5 src/usr.bin/make/unit-tests/varname-dot-parsedir.exp:1.6
--- src/usr.bin/make/unit-tests/varname-dot-parsedir.exp:1.5	Thu Jun  1 20:56:35 2023
+++ src/usr.bin/make/unit-tests/varname-dot-parsedir.exp	Wed Jun 21 07:30:50 2023
@@ -1,5 +1,5 @@
-make: "varname-dot-parsedir.mk" line 29: At this point, .PARSEDIR is undefined.
-make: "<normalized>" line 35: The location can be faked in some cases.
-make: "varname-dot-parsedir.mk" line 40: The location is no longer fake.
+make: "varname-dot-parsedir.mk" line 37: At this point, .PARSEDIR is undefined.
+make: "<normalized>" line 43: The location can be faked in some cases.
+make: "varname-dot-parsedir.mk" line 48: The location is no longer fake.
 At run time, .PARSEDIR is undefined.
 exit status 0

Index: src/usr.bin/make/unit-tests/varname-dot-parsedir.mk
diff -u src/usr.bin/make/unit-tests/varname-dot-parsedir.mk:1.7 src/usr.bin/make/unit-tests/varname-dot-parsedir.mk:1.8
--- src/usr.bin/make/unit-tests/varname-dot-parsedir.mk:1.7	Thu Jun  1 20:56:35 2023
+++ src/usr.bin/make/unit-tests/varname-dot-parsedir.mk	Wed Jun 21 07:30:50 2023
@@ -1,7 +1,15 @@
-# $NetBSD: varname-dot-parsedir.mk,v 1.7 2023/06/01 20:56:35 rillig Exp $
+# $NetBSD: varname-dot-parsedir.mk,v 1.8 2023/06/21 07:30:50 rillig Exp $
 #
 # Tests for the special .PARSEDIR variable, which contains the directory part
 # of the file that is currently parsed.
+#
+# See also
+#	varname-dot-includedfromdir.mk
+#	varname-dot-includedfromfile.mk
+#	varname-dot-parsefile.mk
+#
+# History
+#	.PARSEDIR and .PARSEFILE were added on 1999-08-09.
 
 # The .PARSEDIR may be absolute or relative, therefore there is not much that
 # can be tested here.

Index: src/usr.bin/make/unit-tests/varname-dot-parsefile.exp
diff -u src/usr.bin/make/unit-tests/varname-dot-parsefile.exp:1.4 src/usr.bin/make/unit-tests/varname-dot-parsefile.exp:1.5
--- src/usr.bin/make/unit-tests/varname-dot-parsefile.exp:1.4	Thu Jun  1 20:56:35 2023
+++ src/usr.bin/make/unit-tests/varname-dot-parsefile.exp	Wed Jun 21 07:30:50 2023
@@ -1,5 +1,5 @@
-make: "varname-dot-parsefile.mk" line 24: At this point, .PARSEFILE is undefined.
-make: "<normalized>" line 30: The location can be faked in some cases.
-make: "varname-dot-parsefile.mk" line 35: The location is no longer fake.
+make: "varname-dot-parsefile.mk" line 32: At this point, .PARSEFILE is undefined.
+make: "<normalized>" line 38: The location can be faked in some cases.
+make: "varname-dot-parsefile.mk" line 43: The location is no longer fake.
 At run time, .PARSEFILE is undefined.
 exit status 0

Index: src/usr.bin/make/unit-tests/varname-dot-parsefile.mk
diff -u src/usr.bin/make/unit-tests/varname-dot-parsefile.mk:1.6 src/usr.bin/make/unit-tests/varname-dot-parsefile.mk:1.7
--- src/usr.bin/make/unit-tests/varname-dot-parsefile.mk:1.6	Thu Jun  1 20:56:35 2023
+++ src/usr.bin/make/unit-tests/varname-dot-parsefile.mk	Wed Jun 21 07:30:50 2023
@@ -1,7 +1,15 @@
-# $NetBSD: varname-dot-parsefile.mk,v 1.6 2023/06/01 20:56:35 rillig Exp $
+# $NetBSD: varname-dot-parsefile.mk,v 1.7 2023/06/21 07:30:50 rillig Exp $
 #
 # Tests for the special .PARSEFILE variable, which contains the basename part
 # of the file that is currently parsed.
+#
+# See also
+#	varname-dot-includedfromdir.mk
+#	varname-dot-includedfromfile.mk
+#	varname-dot-parsedir.mk
+#
+# History
+#	.PARSEDIR and .PARSEFILE were added on 1999-08-09.
 
 .if ${.PARSEFILE} != "varname-dot-parsefile.mk"
 .  error

Reply via email to