]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/vardebug.exp
Update to bmake-20200902
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / vardebug.exp
1 Global:RELEVANT = yes
2 Global:VAR = added
3 Global:VAR = overwritten
4 Global:delete VAR
5 Global:delete VAR (not found)
6 Var_Parse: ${:U} with VARE_WANTRES
7 Applying ${:U} to "" (eflags = VARE_WANTRES, vflags = VAR_JUNK)
8 Result of ${:U} is "" (eflags = VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
9 Var_Set("${:U}", "empty name", ...) name expands to empty string - ignored
10 Var_Parse: ${:U} with VARE_WANTRES
11 Applying ${:U} to "" (eflags = VARE_WANTRES, vflags = VAR_JUNK)
12 Result of ${:U} is "" (eflags = VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
13 Var_Append("${:U}", "empty name", ...) name expands to empty string - ignored
14 Global:FROM_CMDLINE = overwritten ignored!
15 Global:VAR = 1
16 Global:VAR = 1 2
17 Global:VAR = 1 2 3
18 Var_Parse: ${VAR:M[2]} with VARE_UNDEFERR|VARE_WANTRES
19 Applying ${VAR:M...} to "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
20 Pattern[VAR] for [1 2 3] is [[2]]
21 ModifyWords: split "1 2 3" into 3 words
22 VarMatch [1] [[2]]
23 VarMatch [2] [[2]]
24 VarMatch [3] [[2]]
25 Result of ${VAR:M[2]} is "2" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
26 Var_Parse: ${VAR:N[2]} with VARE_UNDEFERR|VARE_WANTRES
27 Applying ${VAR:N...} to "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
28 Pattern[VAR] for [1 2 3] is [[2]]
29 ModifyWords: split "1 2 3" into 3 words
30 Result of ${VAR:N[2]} is "1 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
31 Var_Parse: ${VAR:S,2,two,} with VARE_UNDEFERR|VARE_WANTRES
32 Applying ${VAR:S...} to "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
33 Modifier part: "2"
34 Modifier part: "two"
35 ModifyWords: split "1 2 3" into 3 words
36 Result of ${VAR:S,2,two,} is "1 two 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
37 Var_Parse: ${VAR:Q} with VARE_UNDEFERR|VARE_WANTRES
38 Applying ${VAR:Q} to "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
39 QuoteMeta: [1\ 2\ 3]
40 Result of ${VAR:Q} is "1\ 2\ 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
41 Var_Parse: ${VAR:tu:tl:Q} with VARE_UNDEFERR|VARE_WANTRES
42 Applying ${VAR:t...} to "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
43 Result of ${VAR:tu} is "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
44 Applying ${VAR:t...} to "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
45 Result of ${VAR:tl} is "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
46 Applying ${VAR:Q} to "1 2 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
47 QuoteMeta: [1\ 2\ 3]
48 Result of ${VAR:Q} is "1\ 2\ 3" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = none)
49 Var_Parse: ${:Uvalue:${:UM*e}:Mvalu[e]} with VARE_UNDEFERR|VARE_WANTRES
50 Applying ${:U...} to "" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK)
51 Result of ${:Uvalue} is "value" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
52 Var_Parse: ${:UM*e}:Mvalu[e]} with VARE_UNDEFERR|VARE_WANTRES
53 Applying ${:U...} to "" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK)
54 Result of ${:UM*e} is "M*e" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
55 Indirect modifier "M*e" from "${:UM*e}"
56 Applying ${:M...} to "value" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
57 Pattern[] for [value] is [*e]
58 ModifyWords: split "value" into 1 words
59 VarMatch [value] [*e]
60 Result of ${:M*e} is "value" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
61 Applying ${:M...} to "value" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
62 Pattern[] for [value] is [valu[e]]
63 ModifyWords: split "value" into 1 words
64 VarMatch [value] [valu[e]]
65 Result of ${:Mvalu[e]} is "value" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
66 Var_Parse: ${:UVAR} with VARE_WANTRES
67 Applying ${:U...} to "" (eflags = VARE_WANTRES, vflags = VAR_JUNK)
68 Result of ${:UVAR} is "VAR" (eflags = VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
69 Global:delete VAR
70 Var_Parse: ${:Uvariable:unknown} with VARE_UNDEFERR|VARE_WANTRES
71 Applying ${:U...} to "" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK)
72 Result of ${:Uvariable} is "variable" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
73 Applying ${:u...} to "variable" (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
74 make: Unknown modifier 'u'
75 Result of ${:unknown} is error (eflags = VARE_UNDEFERR|VARE_WANTRES, vflags = VAR_JUNK|VAR_KEEP)
76 make: "vardebug.mk" line 44: Malformed conditional (${:Uvariable:unknown})
77 Var_Parse: ${UNDEFINED} with VARE_UNDEFERR|VARE_WANTRES
78 make: "vardebug.mk" line 53: Malformed conditional (${UNDEFINED})
79 Global:RELEVANT = no
80 exit status 1