xref: /freebsd/contrib/bmake/unit-tests/vardebug.exp (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1Global: ignoring delete 'FROM_CMDLINE' as it is not found
2Command: FROM_CMDLINE = # (empty)
3Global: .MAKEOVERRIDES =  FROM_CMDLINE
4Global: VAR = added
5Global: VAR = overwritten
6Global: delete VAR
7Global: ignoring delete 'VAR' as it is not found
8Global: ignoring ' = empty name' as the variable name '${:U}' expands to empty
9Global: ignoring ' += empty name' as the variable name '${:U}' expands to empty
10Global: ignoring 'FROM_CMDLINE = overwritten' due to a command line variable of the same name
11Global: VAR = 1
12Global: VAR = 1 2
13Global: VAR = 1 2 3
14Var_Parse: ${VAR:M[2]} (eval-defined)
15Evaluating modifier ${VAR:M...} on value "1 2 3"
16Pattern for ':M' is "[2]"
17ModifyWords: split "1 2 3" into 3 words
18Result of ${VAR:M[2]} is "2"
19Var_Parse: ${VAR:N[2]} (eval-defined)
20Evaluating modifier ${VAR:N...} on value "1 2 3"
21Pattern for ':N' is "[2]"
22ModifyWords: split "1 2 3" into 3 words
23Result of ${VAR:N[2]} is "1 3"
24Var_Parse: ${VAR:S,2,two,} (eval-defined)
25Evaluating modifier ${VAR:S...} on value "1 2 3"
26Modifier part: "2"
27Modifier part: "two"
28ModifyWords: split "1 2 3" into 3 words
29Result of ${VAR:S,2,two,} is "1 two 3"
30Var_Parse: ${VAR:Q} (eval-defined)
31Evaluating modifier ${VAR:Q} on value "1 2 3"
32Result of ${VAR:Q} is "1\ 2\ 3"
33Var_Parse: ${VAR:tu:tl:Q} (eval-defined)
34Evaluating modifier ${VAR:t...} on value "1 2 3"
35Result of ${VAR:tu} is "1 2 3"
36Evaluating modifier ${VAR:t...} on value "1 2 3"
37Result of ${VAR:tl} is "1 2 3"
38Evaluating modifier ${VAR:Q} on value "1 2 3"
39Result of ${VAR:Q} is "1\ 2\ 3"
40Var_Parse: ${:Uvalue:${:UM*e}:Mvalu[e]} (eval-defined)
41Evaluating modifier ${:U...} on value "" (eval-defined, undefined)
42Result of ${:Uvalue} is "value" (eval-defined, defined)
43Indirect modifier "M*e" from "${:UM*e}"
44Evaluating modifier ${:M...} on value "value" (eval-defined, defined)
45Pattern for ':M' is "*e"
46ModifyWords: split "value" into 1 word
47Result of ${:M*e} is "value" (eval-defined, defined)
48Evaluating modifier ${:M...} on value "value" (eval-defined, defined)
49Pattern for ':M' is "valu[e]"
50ModifyWords: split "value" into 1 word
51Result of ${:Mvalu[e]} is "value" (eval-defined, defined)
52Global: delete VAR
53Var_Parse: ${:Uvariable:unknown} (eval-defined)
54Evaluating modifier ${:U...} on value "" (eval-defined, undefined)
55Result of ${:Uvariable} is "variable" (eval-defined, defined)
56Evaluating modifier ${:u...} on value "variable" (eval-defined, defined)
57make: "vardebug.mk" line 63: Unknown modifier "unknown"
58Result of ${:unknown} is error (eval-defined, defined)
59make: "vardebug.mk" line 63: Malformed conditional (${:Uvariable:unknown})
60Var_Parse: ${UNDEFINED} (eval-defined)
61make: "vardebug.mk" line 73: Malformed conditional (${UNDEFINED})
62Global: ignoring delete '.SHELL' as it is not found
63Command: .SHELL = </path/to/shell>
64Command: ignoring '.SHELL = overwritten' as it is read-only
65Global: .MAKEFLAGS =  -r -k -d v -d
66Global: .MAKEFLAGS =  -r -k -d v -d 0
67make: Fatal errors encountered -- cannot continue
68make: stopped in unit-tests
69exit status 1
70