xref: /freebsd/contrib/bmake/unit-tests/varmisc.exp (revision a8c56be47166295d37600ff81fc1857db87b3a9b)
1
2:D expanded when var set
3true
4TRUE
5:U expanded when var undef
6true
7TRUE
8:D skipped if var undef
9
10:U skipped when var set
11is set
12:? only lhs when value true
13true
14TRUE
15:? only rhs when value false
16false
17FALSE
18do not evaluate or expand :? if discarding
19is set
20Version=123.456.789 == 123456789
21Literal=3.4.5 == 3004005
22We have target specific vars
23save-dollars: 0        = $
24save-dollars: 1        = $$
25save-dollars: 2        = $$
26save-dollars: False    = $
27save-dollars: True     = $$
28save-dollars: false    = $
29save-dollars: true     = $$
30save-dollars: Yes      = $$
31save-dollars: No       = $
32save-dollars: yes      = $$
33save-dollars: no       = $
34save-dollars: On       = $$
35save-dollars: Off      = $
36save-dollars: ON       = $$
37save-dollars: OFF      = $
38save-dollars: on       = $$
39save-dollars: off      = $
40export-appended: env
41export-appended: env
42export-appended: env mk
43parse-dynamic: parse-dynamic parse-dynamic before
44parse-dynamic: parse-dynamic parse-dynamic after
45parse-dynamic: parse-dynamic parse-dynamic after
46varerror-unclosed-1:begin
47make: Unclosed variable ""
48	in command "@echo $("
49	in target "varerror-unclosed-2"
50make: Unclosed variable "UNCLOSED"
51	in command "@echo $(UNCLOSED"
52	in target "varerror-unclosed-3"
53make: Unclosed variable "UNCLOSED"
54	in command "@echo ${UNCLOSED"
in target "varerror-unclosed-4"
make: Unclosed variable "PATTERN"
while evaluating variable "UNCLOSED" with value ""
in command "@echo ${UNCLOSED:M${PATTERN"
in target "varerror-unclosed-5"
make: Unclosed expression, expecting "
}"
for modifier "M${PATTERN"
while evaluating variable "UNCLOSED" with value ""
in command "@echo ${UNCLOSED:M${PATTERN"
in target "varerror-unclosed-5"
make: Unclosed variable "param"
in command "@echo ${UNCLOSED.${param"
in target "varerror-unclosed-6"
make: Unclosed variable "UNCLOSED."
in command "@echo ${UNCLOSED.${param"
in target "varerror-unclosed-6"

make: Unclosed variable "UNCLOSED.1"
in command "@echo ${UNCLOSED.${:U1
}"
55 in target "varerror-unclosed-7" 56make: Unclosed variable "UNCLOSED_ORIG" 57 while evaluating variable "UNCLOSED_INDIR_1" with value "${UNCLOSED_ORIG"
while evaluating variable "UNCLOSED_INDIR_2" with value "${UNCLOSED_INDIR_1
}"
58 in command "@echo ${UNCLOSED_INDIR_2}" 59 in target "varerror-unclosed-8" 60target1-flags: we have: one two 61target2-flags: we have: one two three four 62exit status 2 63