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@
21 @todo_wine@@pwd@>echo.
27 @todo_wine@@pwd@>echo.word
30 @pwd@>echo .word@space@
33 @todo_wine@@pwd@>echo:
39 @todo_wine@@pwd@>echo:word
42 @pwd@>echo :word@space@
45 @pwd@>echo word@space@@space@
48 @pwd@>echo word@space@@space@@space@
50 ------------ Testing 'echo' [OFF] --------------
66 ------------ Testing redirection operators --------------
82 @todo_wine@foob@space@
83 @todo_wine@fooc@space@
87 @todo_wine@------------ Testing ^ escape character --------------
88 @todo_wine@hello, world
89 @todo_wine@hello, world
90 @todo_wine@hell^o, world
91 @todo_wine@hell^o, world
94 @todo_wine@foo | echo bar
95 @todo_wine@foo & echo bar
98 @todo_wine@0@or_broken@1
102 @todo_wine@FOO=bar | baz
104 @todo_wine@FOO=bar ^| baz
107 ------------ Testing 'set' --------------
117 @todo_wine@FOOBAR= bar
118 @todo_wine@FOOBAR = baz2
127 set "FOO=bar" should not include the quotes in the variable value
129 ------------ Testing variable expansion --------------
130 ~dp0 should be directory containing batch file
133 CD value @pwd@@or_broken@CD value@space@
149 ------------ Testing conditional execution --------------
150 @todo_wine@...unconditional &
154 @todo_wine@foobar deleted
155 @todo_wine@...on success conditional &&
156 @todo_wine@foo3 not created
159 @todo_wine@...on failure conditional ||
161 @todo_wine@foo6@space@
162 ------------ Testing type ------------
164 @pwd@>type foobaz@space@
167 @pwd@>echo ***@space@
171 ------------ Testing NUL ------------
176 @todo_wine@foo created
177 ------------ Testing if/else --------------
178 if/else should work with blocks
181 @todo_wine@if seems not to detect /c as parameter
182 Testing case sensitivity with and without /i option
183 if seems to default to case sensitivity
186 -----------Testing for -----------
202 -----------Testing del /a-----------
203 not-r.test not found after delete, good
204 r.test found before delete, good
205 r.test not found after delete, good
206 ------------ Testing del /q --------------
207 del /q * succeeded on file1
208 del /q * succeeded on file2.dat
209 ------------ Testing del /s --------------
210 ----------- Testing mkdir -----------
229 @todo_wine@ok, foo created
231 @todo_wine@ok, foo\bar created
233 @todo_wine@bar created
234 @todo_wine@foobar created
235 @todo_wine@bar\baz created
236 ----------- Testing rmdir -----------
245 non-empty dir not removed
247 non-empty dir not removed
248 recursive rmdir succeeded
249 recursive rmdir succeeded
254 ------------ Testing CALL --------------
259 @todo_wine@foo created
260 @todo_wine@Should expand foobaz
266 -----------Testing Errorlevel-----------
269 errorlevel just right, good
270 abc0def@or_broken@abc1def
271 errorlevel zero, good@or_broken@errorlevel nonzero, bad
274 -----------Testing GOTO-----------
275 goto with no leading space worked
276 goto with a leading space worked
277 goto with a leading tab worked
278 goto with a following space worked
279 -----------Done, jumping to EOF-----------