xref: /freebsd/contrib/bmake/unit-tests/varmisc.exp (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
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
20year=2016 month=04 day=01
21date=20160401
22Version=123.456.789 == 123456789
23Literal=3.4.5 == 3004005
24We have target specific vars
25MAN= make.1
26save-dollars: 0        = $
27save-dollars: 1        = $$
28save-dollars: 2        = $$
29save-dollars: False    = $
30save-dollars: True     = $$
31save-dollars: false    = $
32save-dollars: true     = $$
33save-dollars: Yes      = $$
34save-dollars: No       = $
35save-dollars: yes      = $$
36save-dollars: no       = $
37save-dollars: On       = $$
38save-dollars: Off      = $
39save-dollars: ON       = $$
40save-dollars: OFF      = $
41save-dollars: on       = $$
42save-dollars: off      = $
43export-appended: env
44export-appended: env
45export-appended: env mk
46parse-dynamic: parse-dynamic parse-dynamic before
47parse-dynamic: parse-dynamic parse-dynamic after
48parse-dynamic: parse-dynamic parse-dynamic after
49varerror-unclosed:begin
50make: Unclosed variable ""
51
52make: Unclosed variable "UNCLOSED"
53
54make: Unclosed variable "UNCLOSED"
55
56make: Unclosed variable "PATTERN"
57make: Unclosed variable specification (expecting '}') for "UNCLOSED" (value "") modifier M
58
59make: Unclosed variable "param"
60make: Unclosed variable "UNCLOSED."
61
62
63make: Unclosed variable "UNCLOSED.1"
64
65make: Unclosed variable "UNCLOSED.2"
66
67make: Unclosed variable "UNCLOSED.3"
68
69make: Unclosed variable "UNCLOSED_ORIG"
70
71varerror-unclosed:end
72target1-flags: we have: one two
73target2-flags: we have: one two three four
74exit status 0
75