diff options
author | Kay Ramme <kr@openoffice.org> | 2001-06-15 12:58:08 +0000 |
---|---|---|
committer | Kay Ramme <kr@openoffice.org> | 2001-06-15 12:58:08 +0000 |
commit | a6f532e523c154bde258d54f3b977f75dd991681 (patch) | |
tree | 5b7c92c95a613fc64f81d9eb62fe47ffa0a197b8 /sal/test/bootstrap.bat | |
parent | 56da097501600ee6e02527741e71e148c9a897cc (diff) |
added macro expansion
Diffstat (limited to 'sal/test/bootstrap.bat')
-rwxr-xr-x | sal/test/bootstrap.bat | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sal/test/bootstrap.bat b/sal/test/bootstrap.bat index d0061e596919..af6554b5a7fa 100755 --- a/sal/test/bootstrap.bat +++ b/sal/test/bootstrap.bat @@ -15,4 +15,30 @@ rem simply ignore the file .... echo 5 .\testbootstrap default -env:MYBOOTSTRAPTESTVALUE2=1 -env:INIFILENAME= +echo +echo "macro tests" +echo + +rem simple macro expansion +.\testbootstrap _first_second_third_ -env:FIRST=first -env:SECOND=second -env:THIRD=third -env:MYBOOTSTRAPTESTVALUE=_${FIRST}_${SECOND}_${THIRD}_ + +rem simple quoting +.\testbootstrap _${FIRST}_${SECOND}_${THIRD}_ -env:FIRST=first -env:SECOND=second -env:THIRD=third -env:MYBOOTSTRAPTESTVALUE=_\$\{FIRST\}_\$\{SECOND\}_\$\{THIRD\}_ + +rem simple ini access +.\testbootstrap TheKeysValue -env:MYBOOTSTRAPTESTVALUE=${./bootstraptest.ini:TheSection:TheKey} + +rem ini access with simple macro expansion +.\testbootstrap TheKeysValue -env:ININAME=./bootstraptest.ini -env:SECTIONNAME=TheSection -env:KEYNAME=TheKey -env:MYBOOTSTRAPTESTVALUE=${$ININAME:$SECTIONNAME:$KEYNAME} + +rem ini access with complex macro expansion +.\testbootstrap TheKeysValue -env:ININAME=./bootstraptest.ini -env:MYBOOTSTRAPTESTVALUE=${$ININAME:${$ININAME:SecondSection:IndirectSection}:${$ININAME:SecondSection:IndirectKey}} + +rem test no infinit recursion +.\testbootstrap "***RECURSION DETECTED***" -env:MYBOOTSTRAPTESTVALUE=$MYBOOTSTRAPTESTVALUE + +rem test unicode +.\testbootstrap AAABBBCCC000 -env:MYBOOTSTRAPTESTVALUE=\u0041\u0041\u0041\u0042\u0042\u0042\u0043\u0043\u0043\u0030\u0030\u0030 + + @echo bootstrap test finished
\ No newline at end of file |