summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2023-06-21 07:30:50 +0000
committerrillig <rillig@NetBSD.org>2023-06-21 07:30:50 +0000
commit118326be3db88ac2265daf5fb4317e2c44c461d4 (patch)
treec83cfd1d0c6a69fe9dc366815e61a99b36828d10 /usr.bin/make
parenta207f8e1bf5248c640ea626a75062c9ab4b1ef3f (diff)
tests/make: document a few tests
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/unit-tests/var-op-append.mk19
-rw-r--r--usr.bin/make/unit-tests/varname-dot-parsedir.exp6
-rw-r--r--usr.bin/make/unit-tests/varname-dot-parsedir.mk10
-rw-r--r--usr.bin/make/unit-tests/varname-dot-parsefile.exp6
-rw-r--r--usr.bin/make/unit-tests/varname-dot-parsefile.mk10
5 files changed, 40 insertions, 11 deletions
diff --git a/usr.bin/make/unit-tests/var-op-append.mk b/usr.bin/make/unit-tests/var-op-append.mk
index 420ee376b75..5f06fd88733 100644
--- a/usr.bin/make/unit-tests/var-op-append.mk
+++ b/usr.bin/make/unit-tests/var-op-append.mk
@@ -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.
diff --git a/usr.bin/make/unit-tests/varname-dot-parsedir.exp b/usr.bin/make/unit-tests/varname-dot-parsedir.exp
index 0b7eaa46c77..4ac953c813c 100644
--- a/usr.bin/make/unit-tests/varname-dot-parsedir.exp
+++ b/usr.bin/make/unit-tests/varname-dot-parsedir.exp
@@ -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
diff --git a/usr.bin/make/unit-tests/varname-dot-parsedir.mk b/usr.bin/make/unit-tests/varname-dot-parsedir.mk
index 37ffabe28cc..525fdbd5636 100644
--- a/usr.bin/make/unit-tests/varname-dot-parsedir.mk
+++ b/usr.bin/make/unit-tests/varname-dot-parsedir.mk
@@ -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.
diff --git a/usr.bin/make/unit-tests/varname-dot-parsefile.exp b/usr.bin/make/unit-tests/varname-dot-parsefile.exp
index 2c541304cf7..651666ebcf2 100644
--- a/usr.bin/make/unit-tests/varname-dot-parsefile.exp
+++ b/usr.bin/make/unit-tests/varname-dot-parsefile.exp
@@ -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
diff --git a/usr.bin/make/unit-tests/varname-dot-parsefile.mk b/usr.bin/make/unit-tests/varname-dot-parsefile.mk
index d6dcd7e3848..0a6ed3c378e 100644
--- a/usr.bin/make/unit-tests/varname-dot-parsefile.mk
+++ b/usr.bin/make/unit-tests/varname-dot-parsefile.mk
@@ -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