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

Lines Matching refs:variable

3 # Tests for the special .MAKE.LEVEL variable, which informs about the
4 # recursion level. It is related to the environment variable MAKELEVEL,
9 # expect: level 1: variable 0, env 1
11 @printf 'level 1: variable %s, env %s\n' ${.MAKE.LEVEL} "$$${.MAKE.LEVEL.ENV}"
14 # expect: level 2: variable 1, env 2
16 @printf 'level 2: variable %s, env %s\n' ${.MAKE.LEVEL} "$$${.MAKE.LEVEL.ENV}"
20 # .MAKE.LEVEL.ENV make variable, which by default refers to the MAKELEVEL
21 # environment variable.
26 # expect: level 3: variable 2, env 3
28 @printf 'level 3: variable %s, env %s\n' ${.MAKE.LEVEL} "$$${.MAKE.LEVEL.ENV}"
31 # When a variable assignment from the command line tries to override a
32 # read-only global variable with the same value as before, ignore the
33 # assignment, as the variable value would not change.
37 # .MAKE.LEVEL.ENV variable in the scope for command line variables, and these
39 # environment variable. Newer versions of make (since NetBSD 11) store the
40 # internal .MAKE.LEVEL.ENV variable in the global scope but make it read-only
49 # expect: make: Cannot override read-only global variable ".MAKE.LEVEL.ENV" with a command line variable