Tue Sep 1 19:17:58 2020 UTC ()
make(1): add test for -m option with special argument .../


(rillig)
diff -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt-m-include-dir.mk

cvs diff -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt-m-include-dir.mk (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/opt-m-include-dir.mk 2020/08/16 14:25:16 1.2
+++ src/usr.bin/make/unit-tests/opt-m-include-dir.mk 2020/09/01 19:17:58 1.3
@@ -1,8 +1,25 @@ @@ -1,8 +1,25 @@
1# $NetBSD: opt-m-include-dir.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $ 1# $NetBSD: opt-m-include-dir.mk,v 1.3 2020/09/01 19:17:58 rillig Exp $
2# 2#
3# Tests for the -m command line option. 3# Tests for the -m command line option.
4 4
5# TODO: Implementation 5.MAKEFLAGS: -m .../buf.c
 6.MAKEFLAGS: -m .../does-not-exist
 7.MAKEFLAGS: -m .../${.PARSEFILE:T}
 8
 9# Whether or not buf.c exists depends on whether the source code of make
 10# is available. When running the tests in src/usr.bin/make, it succeeds,
 11# and when running the tests in src/tests/usr.bin/make, it fails.
 12
 13# This file should never exist.
 14.if exists(does-not-exist)
 15. error
 16.endif
 17
 18# This test assumes that this test is run in the same directory as the
 19# test file.
 20.if !exists(${.PARSEFILE})
 21. error
 22.endif
6 23
7all: 24all:
8 @:; 25 @:;