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 redirection operators
--------------
66 @todo_wine@foob@space@
67 @todo_wine@fooc@space@
71 @todo_wine@
------------ Testing ^ escape character
--------------
72 @todo_wine@hello
, world
73 @todo_wine@hello
, world
74 @todo_wine@hell^o
, world
75 @todo_wine@hell^o
, world
78 @todo_wine@foo | echo bar
79 @todo_wine@foo
& echo bar
82 @todo_wine@
0@or_broken@
1
86 @todo_wine@FOO
=bar | baz
88 @todo_wine@FOO
=bar ^| baz
91 ------------ Testing
'set' --------------
101 @todo_wine@FOOBAR
= bar
102 @todo_wine@FOOBAR
= baz2
111 set "FOO=bar" should not include the quotes in the variable value
113 ------------ Testing
variable expansion
--------------
114 ~dp0 should be directory containing batch file
117 CD value @pwd@@or_broken@CD value
133 ------------ Testing conditional execution
--------------
134 @todo_wine@...unconditional
&
138 @todo_wine@foobar deleted
139 @todo_wine@...
on success conditional
&&
140 @todo_wine@foo3 not created
143 @todo_wine@...
on failure conditional ||
145 @todo_wine@foo6@space@
146 ------------ Testing type
------------
148 @pwd@
>type foobaz@space@
151 @pwd@
>echo
***@space@
155 ------------ Testing NUL
------------
160 @todo_wine@foo created
161 ------------ Testing
if/else --------------
162 if/else should work with blocks
165 @todo_wine@
if seems not to detect
/c as parameter
166 Testing case sensitivity with and without
/i option
167 if seems to default to case sensitivity
170 -----------Testing
for -----------
186 -----------Testing del
/a
-----------
187 not
-r.test not found after
delete, good
188 r.test found before
delete, good
189 r.test not found after
delete, good
190 ------------ Testing del
/q
--------------
191 del
/q
* succeeded
on file1
192 del
/q
* succeeded
on file2.dat
193 ------------ Testing del
/s
--------------
194 ----------- Testing
mkdir -----------
213 @todo_wine@ok
, foo created
215 @todo_wine@ok
, foo
\bar created
217 @todo_wine@bar created
218 @todo_wine@foobar created
219 @todo_wine@bar
\baz created
220 ----------- Testing
rmdir -----------
229 non
-empty
dir not removed
231 non
-empty
dir not removed
232 recursive rmdir succeeded
233 recursive rmdir succeeded
238 ------------ Testing
CALL --------------
243 @todo_wine@foo created
244 @todo_wine@Should expand foobaz
250 -----------Testing Errorlevel
-----------
253 errorlevel just right
, good
254 abc0def@or_broken@abc1def
255 errorlevel zero
, good@or_broken@errorlevel nonzero
, bad
258 -----------Testing
GOTO-----------
259 goto with no leading space worked
260 goto with a leading space worked
261 goto with a leading tab worked
262 goto with a following space worked
263 -----------Done
, jumping to EOF
-----------