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@
42 @pwd@>echo :word@space@
45 @pwd@>echo word@space@@space@
48 @pwd@>echo word@space@@space@@space@
51 @todo_wine@@pwd@>echo word@space@
54 @pwd@>echo@tab@word@space@
57 @pwd@>echo@tab@word@space@@tab@@space@
60 @pwd@>echo@tab@word@tab@@space@@space@
63 @todo_wine@@pwd@>echo word@space@
66 @pwd@>echo@space@@tab@word@space@
69 @pwd@>echo@space@@space@@tab@word@space@
72 @pwd@>echo@tab@@tab@word@space@
74 ------------ Testing 'echo' [OFF] --------------
98 ------------ Testing redirection operators --------------
114 @todo_wine@foob@space@
115 @todo_wine@fooc@space@
119 @todo_wine@------------ Testing ^ escape character --------------
120 @todo_wine@hello, world
121 @todo_wine@hello, world
122 @todo_wine@hell^o, world
123 @todo_wine@hell^o, world
126 @todo_wine@foo | echo bar
127 @todo_wine@foo & echo bar
129 @todo_wine@baz@space@
130 @todo_wine@0@or_broken@1
134 @todo_wine@FOO=bar | baz
136 @todo_wine@FOO=bar ^| baz
139 ------------ Testing 'set' --------------
149 @todo_wine@FOOBAR= bar
150 @todo_wine@FOOBAR = baz2
159 set "FOO=bar" should not include the quotes in the variable value
165 ------------ Testing variable expansion --------------
166 ~dp0 should be directory containing batch file
169 CD value @pwd@@or_broken@CD value@space@
185 ------------ Testing variable delayed expansion --------------
186 ...default mode (load-time expansion)
191 ...runtime (delayed) expansion mode
193 @todo_wine@foo@or_broken@!FOO!
195 @todo_wine@bar@or_broken@foo
202 @todo_wine@foo@or_broken@!FOO!
205 ------------ Testing conditional execution --------------
206 @todo_wine@...unconditional &
210 @todo_wine@foobar deleted
211 @todo_wine@...on success conditional &&
212 @todo_wine@foo3 not created
215 @todo_wine@...on failure conditional ||
217 @todo_wine@foo6@space@
218 ------------ Testing cd ------------
220 Current dir: @pwd@\foobar@or_broken@Current dir:@space@
233 ------------ Testing type ------------
235 @pwd@>type foobaz@space@
238 @pwd@>echo ***@space@
242 ------------ Testing NUL ------------
247 @todo_wine@foo created
248 ------------ Testing if/else --------------
249 if/else should work with blocks
252 @todo_wine@if seems not to detect /c as parameter
253 Testing case sensitivity with and without /i option
254 if seems to default to case sensitivity
257 -----------Testing for -----------
314 @todo_wine@ErrorLevel 0
315 @todo_wine@ErrorLevel 0
317 ......individual operations
333 0@or_broken@1073741824
334 0@or_broken@-1073741824
355 ......precedence and grouping
358 @todo_wine@18@or_broken@10
359 @todo_wine@2@or_broken@0
360 @todo_wine@2@or_broken@0
363 @todo_wine@3@or_broken@4
364 ......octal and hexadecimal
365 @todo_wine@3@or_broken@4
371 @todo_wine@3@or_broken@foo not defined
372 @todo_wine@3@or_broken@0
373 @todo_wine@3@or_broken@0
374 @todo_wine@3@or_broken@0
375 @todo_wine@9@or_broken@0
377 @todo_wine@4@or_broken@0
378 @todo_wine@-7@or_broken@0
379 @todo_wine@-1@or_broken@0
380 @todo_wine@5@or_broken@0
381 @todo_wine@4@or_broken@0
382 @todo_wine@1@or_broken@0
384 @todo_wine@5@or_broken@0
386 -----------Testing del /a-----------
387 not-r.test not found after delete, good
388 r.test found before delete, good
389 r.test not found after delete, good
390 ------------ Testing del /q --------------
391 del /q * succeeded on file1
392 del /q * succeeded on file2.dat
393 ------------ Testing del /s --------------
394 ----------- Testing mkdir -----------
410 mkdir ? gives errorlevel 1
411 mkdir ?\foo gives errorlevel 1
412 mkdir foo\? gives errorlevel 1
414 mkdir foo\bar\? gives errorlevel 1
420 mkdir foo\* errorlevel 1
422 ----------- Testing rmdir -----------
431 non-empty dir not removed
433 non-empty dir not removed
434 recursive rmdir succeeded
435 recursive rmdir succeeded
440 ------------ Testing CALL --------------
445 @todo_wine@foo ""@space@
446 @todo_wine@"" bar@space@
457 @todo_wine@foo created
458 @todo_wine@Should expand foobaz
464 ------------ Testing setlocal/endlocal ------------
465 ...enable/disable extensions
466 @todo_wine@ErrLev:@space@
469 @todo_wine@ErrLev:@space@@or_broken@ErrLev: 0
471 ...setlocal with corresponding endlocal
476 ...setlocal with no corresponding endlocal
480 -----------Testing Errorlevel-----------
483 errorlevel just right, good
484 abc0def@or_broken@abc1def
485 errorlevel zero, good@or_broken@errorlevel nonzero, bad
488 -----------Testing GOTO-----------
489 goto with no leading space worked
490 goto with a leading space worked
491 goto with a leading tab worked
492 goto with a following space worked
493 -----------Done, jumping to EOF-----------