xref: /freebsd/contrib/bmake/unit-tests/varmisc.exp (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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: Unclosed variable ""
48
49make: Unclosed variable "UNCLOSED"
50
51make: Unclosed variable "UNCLOSED"
52
53make: Unclosed variable "PATTERN"
54make: Unclosed expression, expecting '}' for modifier "M${PATTERN" of variable "UNCLOSED" with value ""
55
56make: Unclosed variable "param"
57make: Unclosed variable "UNCLOSED."
58
59
60make: Unclosed variable "UNCLOSED.1"
61
62make: Unclosed variable "UNCLOSED.2"
63
64make: Unclosed variable "UNCLOSED.3"
65
66make: Unclosed variable "UNCLOSED_ORIG"
67
68varerror-unclosed:end
69target1-flags: we have: one two
70target2-flags: we have: one two three four
71exit status 0
72