aboutsummaryrefslogtreecommitdiff
path: root/tests/variable/private/testscript
blob: ddb78fd2d42c73fe935d2a2377226ebd70bced05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# file      : tests/variable/private/testscript
# license   : MIT; see accompanying LICENSE file

# Test public/private variable mode.

buildfile = true
test.arguments = 'noop(../)'

.include ../../common.testscript

+cat <<EOI >=build/bootstrap.build
project = test
amalgamation =
subprojects = subproj

using install
EOI
+cat <<EOI >=buildfile
[string] foo = abc
print $type($foo) $foo

subproj/: install = false
print $type($(subproj/: install)) $(subproj/: install)

include subproj/
EOI

: subproj
:
mkdir build;
cat <<EOI >=build/bootstrap.build;
project = subporj
EOI
cat <<EOI >=buildfile;
[uint64] foo = 0123
print $type($foo) $foo

[bool] install = true
print $type($install) $install
EOI
$* >>EOO
string abc
path false
uint64 123
bool true
EOO