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