3 setenv MYBOOTSTRAPTESTVALUE 0
5 ./testbootstrap 1 -env:MYBOOTSTRAPTESTVALUE=1
8 ./testbootstrap.bin file
11 ./testbootstrap.Bin file
14 ./testbootstrap.exe file
17 ./testbootstrap.Exe file
20 ./testbootstrap 0 -env:INIFILENAME=
22 unsetenv MYBOOTSTRAPTESTVALUE
24 ./testbootstrap default -env:INIFILENAME=
27 ./testbootstrap default -env:MYBOOTSTRAPTESTVALUE2=1 -env:INIFILENAME=
33 # simple macro expansion
35 ./testbootstrap _first_second_third_ -env:FIRST=first -env:SECOND=second -env:THIRD=third -env:MYBOOTSTRAPTESTVALUE='_${FIRST}_${SECOND}_${THIRD}_'
39 ./testbootstrap '_${FIRST}_${SECOND}_${THIRD}_' -env:FIRST=first -env:SECOND=second -env:THIRD=third -env:MYBOOTSTRAPTESTVALUE='_\$\{FIRST\}_\$\{SECOND\}_\$\{THIRD\}_'
43 ./testbootstrap TheKeysValue -env:'MYBOOTSTRAPTESTVALUE=${./bootstraptest.ini:TheSection:TheKey}'
45 # ini access with simple macro expansion
47 ./testbootstrap TheKeysValue -env:ININAME=./bootstraptest.ini -env:SECTIONNAME=TheSection -env:KEYNAME=TheKey \
48 -env:'MYBOOTSTRAPTESTVALUE=${$ININAME:$SECTIONNAME:$KEYNAME}'
50 # ini access with complex macro expansion
52 ./testbootstrap TheKeysValue -env:ININAME=./bootstraptest.ini \
53 -env:'MYBOOTSTRAPTESTVALUE=${$ININAME:${$ININAME:SecondSection:IndirectSection}:${$ININAME:SecondSection:IndirectKey}}'
55 # test no infinit recursion
57 ./testbootstrap "***RECURSION DETECTED***" -env:'MYBOOTSTRAPTESTVALUE=$MYBOOTSTRAPTESTVALUE'
61 ./testbootstrap AAABBBCCC000 -env:'MYBOOTSTRAPTESTVALUE=\u0041\u0041\u0041\u0042\u0042\u0042\u0043\u0043\u0043\u0030\u0030\u0030'
64 echo "bootstrap test finished"