Home | History | Annotate | Line # | Download | only in unit-tests
opt-file.mk revision 1.3
      1  1.3  rillig # $NetBSD: opt-file.mk,v 1.3 2020/12/06 19:00:48 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the -f command line option.
      4  1.1  rillig 
      5  1.1  rillig # TODO: Implementation
      6  1.1  rillig 
      7  1.3  rillig all: .PHONY file-ending-in-backslash
      8  1.3  rillig 
      9  1.3  rillig # Passing '-' as the filename reads from stdin.  This is unusual but possible.
     10  1.3  rillig #
     11  1.3  rillig # In the unlikely case where a file ends in a backslash instead of a newline,
     12  1.3  rillig # that backslash is trimmed.  See ParseGetLine.
     13  1.3  rillig file-ending-in-backslash: .PHONY
     14  1.3  rillig 	@printf '%s' 'VAR=value\' | ${MAKE} -r -f - -v VAR
     15  1.3  rillig 
     16  1.1  rillig all:
     17  1.1  rillig 	@:;
     18