xref: /freebsd/contrib/bmake/unit-tests/vardebug.exp (revision c203bd70b5957f85616424b6fa374479372d06e3)
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_Parse: ${:U} with VARE_WANTRES
9Applying ${:U} to "" (VARE_WANTRES, none, VEF_UNDEF)
10Result of ${:U} is "" (VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
11Var_Set("${:U}", "empty name", ...) name expands to empty string - ignored
12Var_Parse: ${:U} with VARE_WANTRES
13Applying ${:U} to "" (VARE_WANTRES, none, VEF_UNDEF)
14Result of ${:U} is "" (VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
15Var_Append("${:U}", "empty name", ...) name expands to empty string - ignored
16Global:FROM_CMDLINE = overwritten ignored!
17Global:VAR = 1
18Global:VAR = 1 2
19Global:VAR = 1 2 3
20Var_Parse: ${VAR:M[2]} with VARE_UNDEFERR|VARE_WANTRES
21Applying ${VAR:M...} to "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
22Pattern[VAR] for [1 2 3] is [[2]]
23ModifyWords: split "1 2 3" into 3 words
24VarMatch [1] [[2]]
25VarMatch [2] [[2]]
26VarMatch [3] [[2]]
27Result of ${VAR:M[2]} is "2" (VARE_UNDEFERR|VARE_WANTRES, none, none)
28Var_Parse: ${VAR:N[2]} with VARE_UNDEFERR|VARE_WANTRES
29Applying ${VAR:N...} to "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
30Pattern[VAR] for [1 2 3] is [[2]]
31ModifyWords: split "1 2 3" into 3 words
32Result of ${VAR:N[2]} is "1 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
33Var_Parse: ${VAR:S,2,two,} with VARE_UNDEFERR|VARE_WANTRES
34Applying ${VAR:S...} to "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
35Modifier part: "2"
36Modifier part: "two"
37ModifyWords: split "1 2 3" into 3 words
38Result of ${VAR:S,2,two,} is "1 two 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
39Var_Parse: ${VAR:Q} with VARE_UNDEFERR|VARE_WANTRES
40Applying ${VAR:Q} to "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
41Result of ${VAR:Q} is "1\ 2\ 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
42Var_Parse: ${VAR:tu:tl:Q} with VARE_UNDEFERR|VARE_WANTRES
43Applying ${VAR:t...} to "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
44Result of ${VAR:tu} is "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
45Applying ${VAR:t...} to "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
46Result of ${VAR:tl} is "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
47Applying ${VAR:Q} to "1 2 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
48Result of ${VAR:Q} is "1\ 2\ 3" (VARE_UNDEFERR|VARE_WANTRES, none, none)
49Var_Parse: ${:Uvalue:${:UM*e}:Mvalu[e]} with VARE_UNDEFERR|VARE_WANTRES
50Applying ${:U...} to "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF)
51Result of ${:Uvalue} is "value" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
52Var_Parse: ${:UM*e}:Mvalu[e]} with VARE_UNDEFERR|VARE_WANTRES
53Applying ${:U...} to "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF)
54Result of ${:UM*e} is "M*e" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
55Indirect modifier "M*e" from "${:UM*e}"
56Applying ${:M...} to "value" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
57Pattern[] for [value] is [*e]
58ModifyWords: split "value" into 1 words
59VarMatch [value] [*e]
60Result of ${:M*e} is "value" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
61Applying ${:M...} to "value" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
62Pattern[] for [value] is [valu[e]]
63ModifyWords: split "value" into 1 words
64VarMatch [value] [valu[e]]
65Result of ${:Mvalu[e]} is "value" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
66Var_Parse: ${:UVAR} with VARE_WANTRES
67Applying ${:U...} to "" (VARE_WANTRES, none, VEF_UNDEF)
68Result of ${:UVAR} is "VAR" (VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
69Global:delete VAR
70Var_Parse: ${:Uvariable:unknown} with VARE_UNDEFERR|VARE_WANTRES
71Applying ${:U...} to "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF)
72Result of ${:Uvariable} is "variable" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
73Applying ${:u...} to "variable" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
74make: "vardebug.mk" line 44: Unknown modifier 'u'
75Result of ${:unknown} is error (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
76make: "vardebug.mk" line 44: Malformed conditional (${:Uvariable:unknown})
77Var_Parse: ${UNDEFINED} with VARE_UNDEFERR|VARE_WANTRES
78make: "vardebug.mk" line 53: Malformed conditional (${UNDEFINED})
79Global:delete .SHELL (not found)
80Command:.SHELL = </path/to/shell>
81Command:.SHELL = overwritten ignored (read-only)
82Global:.MAKEFLAGS =  -r -k -d v -d
83Global:.MAKEFLAGS =  -r -k -d v -d 0
84make: Fatal errors encountered -- cannot continue
85make: stopped in unit-tests
86exit status 1
87