aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/opt-version.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/opt-version.mk')
-rw-r--r--unit-tests/opt-version.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/unit-tests/opt-version.mk b/unit-tests/opt-version.mk
new file mode 100644
index 000000000000..51a4e8a1a0aa
--- /dev/null
+++ b/unit-tests/opt-version.mk
@@ -0,0 +1,12 @@
+# $NetBSD: opt-version.mk,v 1.1 2021/12/23 11:05:59 rillig Exp $
+#
+# Tests for the command line option '--version', which outputs the version
+# number of make. NetBSD's make does not have a version number, but the bmake
+# distribution created from it has.
+
+# As of 2021-12-23, the output is a single empty line since the '--' does not
+# end the command line options. Command line parsing then continues as if
+# nothing had happened, and the '-version' is split into '-v ersion', which is
+# interpreted as "print the expanded variable named 'ersion'".
+
+.MAKEFLAGS: --version