Home | History | Annotate | Line # | Download | only in unit-tests
directive-include.mk revision 1.3
      1 # $NetBSD: directive-include.mk,v 1.3 2020/10/31 23:01:23 rillig Exp $
      2 #
      3 # Tests for the .include directive, which includes another file.
      4 
      5 # TODO: Implementation
      6 
      7 .MAKEFLAGS: -dc
      8 
      9 # All included files are recorded in the variable .MAKE.MAKEFILES.
     10 # In this test, only the basenames of the files are compared since
     11 # the directories can differ.
     12 .include "/dev/null"
     13 .if ${.MAKE.MAKEFILES:T} != "${.PARSEFILE} null"
     14 .  error
     15 .endif
     16 
     17 # Each file is recorded only once in the variable .MAKE.MAKEFILES.
     18 # Between 2015-11-26 and 2020-10-31, the very last file could be repeated,
     19 # due to an off-by-one bug in ParseTrackInput.
     20 .include "/dev/null"
     21 .if ${.MAKE.MAKEFILES:T} != "${.PARSEFILE} null"
     22 .  error
     23 .endif
     24 
     25 all:
     26 	@:;
     27