2 @pwd@
>echo Tests
for cmd
's builtin commands@space@
3 Tests for cmd's builtin commands
5 @pwd@
>echo
------------ Testing
'echo' [ON] --------------@space@
6 ------------ Testing
'echo' [ON] --------------
11 @pwd@
>echo
'singlequotedword'@space@
14 @pwd@
>echo
"doublequotedword"@space@
18 @pwd@
>echo
"/?"@space@
30 @pwd@
>echo .word@space@
33 @pwd@
>echo word@space@@space@
36 @pwd@
>echo word@space@@space@@space@
38 ------------ Testing
'echo' [OFF] --------------
50 ------------ Testing
'set' --------------
61 @todo_wine@FOOBAR
= bar
62 @todo_wine@FOOBAR
= baz2
71 set "FOO=bar" should not include the quotes in the variable value
73 ------------ Testing
variable expansion
--------------
74 ~dp0 should be directory containing batch file
77 CD value @pwd@@or_broken@CD value
93 ------------ Testing type
------------
95 @pwd@
>type foobaz@space@
102 ------------ Testing
if/else --------------
103 if/else should work with blocks
106 @todo_wine@
if seems not to detect
/c as parameter
107 Testing case sensitivity with and without
/i option
108 if seems to default to case sensitivity
111 -----------Testing
for -----------
127 -----------Testing del
/a
-----------
128 not
-r.test not found after
delete, good
129 r.test found before
delete, good
130 r.test not found after
delete, good
131 ------------ Testing del
/q
--------------
132 del
/q
* succeeded
on file1
133 del
/q
* succeeded
on file2.dat
134 ------------ Testing del
/s
--------------
135 ----------- Testing
mkdir -----------
154 @todo_wine@ok
, foo created
156 @todo_wine@ok
, foo
\bar created
157 ----------- Testing
rmdir -----------
166 non
-empty
dir not removed
168 non
-empty
dir not removed
169 recursive rmdir succeeded
170 recursive rmdir succeeded
171 -----------Testing Errorlevel
-----------
173 errorlevel just right
, good
174 abc0def@or_broken@abc1def
175 errorlevel zero
, good@or_broken@errorlevel nonzero
, bad
178 -----------Testing
GOTO-----------
179 goto with no leading space worked
180 goto with a leading space worked
181 goto with a leading tab worked
182 goto with a following space worked
183 -----------Done
, jumping to EOF
-----------