xref: /freebsd/contrib/bmake/unit-tests/varmisc.exp (revision 87b759f0fa1f7554d50ce640c40138512bbded44)
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:begin
47make: in target "varerror-unclosed": Unclosed variable ""
48
49make: in target "varerror-unclosed": Unclosed variable "UNCLOSED"
50
51make: in target "varerror-unclosed": Unclosed variable "UNCLOSED"
52
53make: in target "varerror-unclosed": while evaluating variable "UNCLOSED" with value "": Unclosed variable "PATTERN"
54make: in target "varerror-unclosed": while evaluating variable "UNCLOSED" with value "": Unclosed expression, expecting '}' for modifier "M${PATTERN"

make: in target "varerror-unclosed": Unclosed variable "param"
make: in target "varerror-unclosed": Unclosed variable "UNCLOSED."


make: in target "varerror-unclosed": Unclosed variable "UNCLOSED.1"

make: in target "varerror-unclosed": Unclosed variable "UNCLOSED.2"

make: in target "varerror-unclosed": Unclosed variable "UNCLOSED.3"

make: in target "varerror-unclosed": while evaluating variable "UNCLOSED_INDIR_2" with value "${UNCLOSED_INDIR_1
}"
: while evaluating variable "UNCLOSED_INDIR_1" with value "${UNCLOSED_ORIG": Unclosed variable "UNCLOSED_ORIG" 55 56varerror-unclosed:end 57target1-flags: we have: one two 58target2-flags: we have: one two three four 59exit status 2 60