| @@ -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 | |
7 | all: | | 24 | all: |
8 | @:; | | 25 | @:; |