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 make(1): add test for -m option with...
details: https://anonhg.NetBSD.org/src/rev/35f2f30b2217
branches: trunk
changeset: 943378:35f2f30b2217
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Sep 01 19:17:58 2020 +0000
description:
make(1): add test for -m option with special argument .../
diffstat:
usr.bin/make/unit-tests/opt-m-include-dir.mk | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 71e3af24aa4e -r 35f2f30b2217 usr.bin/make/unit-tests/opt-m-include-dir.mk
--- a/usr.bin/make/unit-tests/opt-m-include-dir.mk Tue Sep 01 18:40:09 2020 +0000
+++ b/usr.bin/make/unit-tests/opt-m-include-dir.mk Tue Sep 01 19:17:58 2020 +0000
@@ -1,8 +1,25 @@
-# $NetBSD: opt-m-include-dir.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: opt-m-include-dir.mk,v 1.3 2020/09/01 19:17:58 rillig Exp $
#
# Tests for the -m command line option.
-# TODO: Implementation
+.MAKEFLAGS: -m .../buf.c
+.MAKEFLAGS: -m .../does-not-exist
+.MAKEFLAGS: -m .../${.PARSEFILE:T}
+
+# Whether or not buf.c exists depends on whether the source code of make
+# is available. When running the tests in src/usr.bin/make, it succeeds,
+# and when running the tests in src/tests/usr.bin/make, it fails.
+
+# This file should never exist.
+.if exists(does-not-exist)
+. error
+.endif
+
+# This test assumes that this test is run in the same directory as the
+# test file.
+.if !exists(${.PARSEFILE})
+. error
+.endif
all:
@:;
Home |
Main Index |
Thread Index |
Old Index