Home | History | Annotate | Download | only in unit-tests

Lines Matching defs:undefined

1 # $NetBSD: cmdline-undefined.mk,v 1.6 2025/06/30 21:44:39 rillig Exp $
3 # Tests for undefined variables in expressions in the command line.
11 # expect+30: From the command line: Undefined is .
12 # expect+30: From .MAKEFLAGS '=': Undefined is .
13 # expect+30: From .MAKEFLAGS ':=': Undefined is .
14 # expect+33: From the command line: Undefined is now defined.
15 # expect+33: From .MAKEFLAGS '=': Undefined is now defined.
16 # expect+33: From .MAKEFLAGS ':=': Undefined is now defined.
18 @${.MAKE} -f ${MAKEFILE} print-undefined \
19 CMDLINE='Undefined is $${UNDEFINED}.'
25 # expect+16: From the command line: Undefined is .
26 # expect+16: From .MAKEFLAGS '=': Undefined is .
27 # expect+16: From .MAKEFLAGS ':=': Undefined is .
28 # expect+19: From the command line: Undefined is now defined.
29 # expect+19: From .MAKEFLAGS '=': Undefined is now defined.
30 # expect+19: From .MAKEFLAGS ':=': Undefined is now defined.
32 @${.MAKE} -f ${MAKEFILE} print-undefined \
33 CMDLINE:='Undefined is $${UNDEFINED}.'
36 .if make(print-undefined)
38 .MAKEFLAGS: MAKEFLAGS_ASSIGN='Undefined is $${UNDEFINED}.'
39 .MAKEFLAGS: MAKEFLAGS_SUBST:='Undefined is $${UNDEFINED}.'
45 UNDEFINED?= now defined
51 print-undefined: