xref: /freebsd/contrib/bmake/unit-tests/vardebug.exp (revision d7d962ead0b6e5e8a39202d0590022082bf5bfb6)
1Global:delete FROM_CMDLINE (not found)
2Command: FROM_CMDLINE =
3Global: .MAKEOVERRIDES =  FROM_CMDLINE
4Global: VAR = added
5Global: VAR = overwritten
6Global:delete VAR
7Global:delete VAR (not found)
8Var_SetExpand: variable name "${:U}" expands to empty string, with value "empty name" - ignored
9Var_AppendExpand: variable name "${:U}" expands to empty string, with value "empty name" - ignored
10Global: FROM_CMDLINE = overwritten ignored!
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 words
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 words
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 44: Unknown modifier "unknown"
58Result of ${:unknown} is error (eval-defined, defined)
59make: "vardebug.mk" line 44: Malformed conditional (${:Uvariable:unknown})
60Var_Parse: ${UNDEFINED} (eval-defined)
61make: "vardebug.mk" line 53: Malformed conditional (${UNDEFINED})
62Global:delete .SHELL (not found)
63Command: .SHELL = </path/to/shell>
64Command: .SHELL = overwritten ignored (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