xref: /aoo42x/main/sal/test/bootstrap (revision cdf0e10c)
1#/bin/tcsh
2
3setenv MYBOOTSTRAPTESTVALUE 0
4echo 1
5./testbootstrap 1 -env:MYBOOTSTRAPTESTVALUE=1
6
7echo 2
8./testbootstrap.bin file
9
10echo 3
11./testbootstrap.Bin file
12
13echo 4
14./testbootstrap.exe file
15
16echo 5
17./testbootstrap.Exe file
18
19echo 6
20./testbootstrap 0 -env:INIFILENAME=
21
22unsetenv MYBOOTSTRAPTESTVALUE
23echo 7
24./testbootstrap default -env:INIFILENAME=
25
26echo 8
27./testbootstrap default -env:MYBOOTSTRAPTESTVALUE2=1 -env:INIFILENAME=
28
29echo
30echo "macro tests"
31echo
32
33# simple macro expansion
34echo 9
35./testbootstrap _first_second_third_ -env:FIRST=first -env:SECOND=second -env:THIRD=third -env:MYBOOTSTRAPTESTVALUE='_${FIRST}_${SECOND}_${THIRD}_'
36
37# simple quoting
38echo 10
39./testbootstrap '_${FIRST}_${SECOND}_${THIRD}_' -env:FIRST=first -env:SECOND=second -env:THIRD=third -env:MYBOOTSTRAPTESTVALUE='_\$\{FIRST\}_\$\{SECOND\}_\$\{THIRD\}_'
40
41# simple ini access
42echo 11
43./testbootstrap TheKeysValue -env:'MYBOOTSTRAPTESTVALUE=${./bootstraptest.ini:TheSection:TheKey}'
44
45# ini access with simple macro expansion
46echo 12
47./testbootstrap TheKeysValue -env:ININAME=./bootstraptest.ini -env:SECTIONNAME=TheSection -env:KEYNAME=TheKey \
48	 -env:'MYBOOTSTRAPTESTVALUE=${$ININAME:$SECTIONNAME:$KEYNAME}'
49
50# ini access with complex macro expansion
51echo 13
52./testbootstrap TheKeysValue -env:ININAME=./bootstraptest.ini \
53	-env:'MYBOOTSTRAPTESTVALUE=${$ININAME:${$ININAME:SecondSection:IndirectSection}:${$ININAME:SecondSection:IndirectKey}}'
54
55# test no infinit recursion
56echo 14
57./testbootstrap "***RECURSION DETECTED***" -env:'MYBOOTSTRAPTESTVALUE=$MYBOOTSTRAPTESTVALUE'
58
59# test unicode
60echo 15
61./testbootstrap AAABBBCCC000 -env:'MYBOOTSTRAPTESTVALUE=\u0041\u0041\u0041\u0042\u0042\u0042\u0043\u0043\u0043\u0030\u0030\u0030'
62
63echo
64echo "bootstrap test finished"
65echo
66