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 NUL ------------
107 @todo_wine@foo created
108 ------------ Testing if/else --------------
109 if/else should work with blocks
112 @todo_wine@if seems not to detect /c as parameter
113 Testing case sensitivity with and without /i option
114 if seems to default to case sensitivity
117 -----------Testing for -----------
133 -----------Testing del /a-----------
134 not-r.test not found after delete, good
135 r.test found before delete, good
136 r.test not found after delete, good
137 ------------ Testing del /q --------------
138 del /q * succeeded on file1
139 del /q * succeeded on file2.dat
140 ------------ Testing del /s --------------
141 ----------- Testing mkdir -----------
160 @todo_wine@ok, foo created
162 @todo_wine@ok, foo\bar created
163 ----------- Testing rmdir -----------
172 non-empty dir not removed
174 non-empty dir not removed
175 recursive rmdir succeeded
176 recursive rmdir succeeded
177 ------------ Testing CALL --------------
182 @todo_wine@foo created
183 @todo_wine@Should expand foobaz
189 -----------Testing Errorlevel-----------
192 errorlevel just right, good
193 abc0def@or_broken@abc1def
194 errorlevel zero, good@or_broken@errorlevel nonzero, bad
197 -----------Testing GOTO-----------
198 goto with no leading space worked
199 goto with a leading space worked
200 goto with a leading tab worked
201 goto with a following space worked
202 -----------Done, jumping to EOF-----------