2010-02-09 19:11:15 +01:00
|
|
|
|
2010-11-05 22:15:45 +01:00
|
|
|
@pwd@>echo Tests for cmd's builtin commands@space@
|
2010-02-16 20:42:18 +01:00
|
|
|
Tests for cmd's builtin commands
|
2010-11-05 22:15:45 +01:00
|
|
|
|
|
|
|
@pwd@>echo ------------ Testing 'echo' [ON] --------------@space@
|
|
|
|
------------ Testing 'echo' [ON] --------------
|
|
|
|
|
|
|
|
@pwd@>echo word@space@
|
|
|
|
word
|
|
|
|
|
|
|
|
@pwd@>echo 'singlequotedword'@space@
|
|
|
|
'singlequotedword'
|
|
|
|
|
|
|
|
@pwd@>echo "doublequotedword"@space@
|
|
|
|
"doublequotedword"
|
|
|
|
at-echoed-word
|
|
|
|
|
|
|
|
@pwd@>echo "/?"@space@
|
|
|
|
"/?"
|
|
|
|
|
|
|
|
@pwd@>echo.
|
|
|
|
|
|
|
|
|
|
|
|
@pwd@>echo .@space@
|
|
|
|
.
|
|
|
|
|
|
|
|
@pwd@>echo.word
|
|
|
|
word
|
|
|
|
|
|
|
|
@pwd@>echo .word@space@
|
|
|
|
.word
|
|
|
|
|
|
|
|
@pwd@>echo word@space@@space@
|
|
|
|
word@space@
|
|
|
|
|
|
|
|
@pwd@>echo word@space@@space@@space@
|
|
|
|
word@space@@space@
|
|
|
|
------------ Testing 'echo' [OFF] --------------
|
2010-02-09 19:11:15 +01:00
|
|
|
word
|
|
|
|
'singlequotedword'
|
|
|
|
"doublequotedword"
|
|
|
|
at-echoed-word
|
|
|
|
"/?"
|
|
|
|
|
|
|
|
.
|
2010-09-08 00:59:43 +02:00
|
|
|
word
|
|
|
|
.word
|
2010-11-05 22:15:45 +01:00
|
|
|
word@space@
|
|
|
|
word@space@@space@
|
2010-02-16 21:25:41 +01:00
|
|
|
------------ Testing 'set' --------------
|
|
|
|
set "FOO=bar" should not include the quotes in the variable value
|
|
|
|
bar
|
2010-02-16 21:44:16 +01:00
|
|
|
------------ Testing variable expansion --------------
|
|
|
|
~dp0 should be directory containing batch file
|
|
|
|
@pwd@\
|
|
|
|
@pwd@\
|
2010-03-18 01:28:19 +01:00
|
|
|
CD value @pwd@@or_broken@CD value
|
2010-03-09 13:15:35 +01:00
|
|
|
%
|
|
|
|
P
|
|
|
|
P
|
|
|
|
S
|
|
|
|
P
|
|
|
|
PS
|
|
|
|
ERRORLEVEL
|
|
|
|
0
|
|
|
|
00
|
2010-03-16 10:54:26 +01:00
|
|
|
0ERRORLEVEL
|
2010-03-09 13:15:35 +01:00
|
|
|
0
|
|
|
|
0%
|
|
|
|
P0
|
|
|
|
0S
|
|
|
|
P0S
|
2010-02-18 08:11:04 +01:00
|
|
|
------------ Testing if/else --------------
|
|
|
|
if/else should work with blocks
|
|
|
|
if seems to work
|
|
|
|
else seems to work
|
2010-02-19 06:39:32 +01:00
|
|
|
Testing case sensitivity with and without /i option
|
|
|
|
if seems to default to case sensitivity
|
|
|
|
if /i seems to work
|
|
|
|
if /I seems to work
|
2010-03-24 04:45:49 +01:00
|
|
|
-----------Testing GOTO-----------
|
|
|
|
goto with no leading space worked
|
|
|
|
goto with a leading space worked
|
|
|
|
goto with a leading tab worked
|
2010-12-13 00:04:19 +01:00
|
|
|
goto with a following space worked
|