Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests tests/make: explain the current beha...
details: https://anonhg.NetBSD.org/src/rev/e1f59c77c9f6
branches: trunk
changeset: 1029145:e1f59c77c9f6
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Dec 23 11:05:58 2021 +0000
description:
tests/make: explain the current behavior of the option '--version'
diffstat:
distrib/sets/lists/tests/mi | 4 +++-
usr.bin/make/unit-tests/Makefile | 3 ++-
usr.bin/make/unit-tests/opt-version.exp | 2 ++
usr.bin/make/unit-tests/opt-version.mk | 12 ++++++++++++
4 files changed, 19 insertions(+), 2 deletions(-)
diffs (57 lines):
diff -r 656fb2e96cfb -r e1f59c77c9f6 distrib/sets/lists/tests/mi
--- a/distrib/sets/lists/tests/mi Thu Dec 23 11:03:48 2021 +0000
+++ b/distrib/sets/lists/tests/mi Thu Dec 23 11:05:58 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1179 2021/12/20 19:48:05 rillig Exp $
+# $NetBSD: mi,v 1.1180 2021/12/23 11:05:58 rillig Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -5829,6 +5829,8 @@
./usr/tests/usr.bin/make/unit-tests/opt-var-expanded.mk tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/opt-var-literal.exp tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/opt-var-literal.mk tests-usr.bin-tests compattestfile,atf
+./usr/tests/usr.bin/make/unit-tests/opt-version.exp tests-usr.bin-tests compattestfile,atf
+./usr/tests/usr.bin/make/unit-tests/opt-version.mk tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/opt-warnings-as-errors.exp tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/opt-warnings-as-errors.mk tests-usr.bin-tests compattestfile,atf
./usr/tests/usr.bin/make/unit-tests/opt-where-am-i.exp tests-usr.bin-tests compattestfile,atf
diff -r 656fb2e96cfb -r e1f59c77c9f6 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile Thu Dec 23 11:03:48 2021 +0000
+++ b/usr.bin/make/unit-tests/Makefile Thu Dec 23 11:05:58 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.290 2021/12/14 00:02:57 rillig Exp $
+# $NetBSD: Makefile,v 1.291 2021/12/23 11:05:59 rillig Exp $
#
# Unit tests for make(1)
#
@@ -275,6 +275,7 @@
TESTS+= opt-tracefile
TESTS+= opt-var-expanded
TESTS+= opt-var-literal
+TESTS+= opt-version
TESTS+= opt-warnings-as-errors
TESTS+= opt-where-am-i
TESTS+= opt-x-reduce-exported
diff -r 656fb2e96cfb -r e1f59c77c9f6 usr.bin/make/unit-tests/opt-version.exp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/opt-version.exp Thu Dec 23 11:05:58 2021 +0000
@@ -0,0 +1,2 @@
+
+exit status 0
diff -r 656fb2e96cfb -r e1f59c77c9f6 usr.bin/make/unit-tests/opt-version.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/opt-version.mk Thu Dec 23 11:05:58 2021 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index