cmd/tests: Add tests for recursive rmdir.
[wine.git] / programs / cmd / tests / test_builtins.cmd.exp
blob3ddd82469c7e2f1b7d7258e6170b8c95d128508d
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] --------------
8 @pwd@>echo word@space@
9 word
11 @pwd@>echo 'singlequotedword'@space@
12 'singlequotedword'
14 @pwd@>echo "doublequotedword"@space@
15 "doublequotedword"
16 at-echoed-word
18 @pwd@>echo "/?"@space@
19 "/?"
21 @pwd@>echo.
24 @pwd@>echo .@space@
27 @pwd@>echo.word
28 word
30 @pwd@>echo .word@space@
31 .word
33 @pwd@>echo word@space@@space@
34 word@space@
36 @pwd@>echo word@space@@space@@space@
37 word@space@@space@
38 ------------ Testing 'echo' [OFF] --------------
39 word
40 'singlequotedword'
41 "doublequotedword"
42 at-echoed-word
43 "/?"
46 word
47 .word
48 word@space@
49 word@space@@space@
50 ------------ Testing 'set' --------------
53 @todo_wine@0
54 FOOBAR not defined
55 @todo_wine@ baz
56 FOOBAR = baz
57 @todo_wine@0
58 @todo_wine@ baz2
59 @todo_wine@0
60 bar
61 @todo_wine@FOOBAR= bar
62 @todo_wine@FOOBAR = baz2
63 FOOBAR = baz
64 FOOBAR not defined
66 bar
67 foobar
68 FOO not defined
69 BAZ=bazbaz
70 bazbaz
71 set "FOO=bar" should not include the quotes in the variable value
72 bar
73 ------------ Testing variable expansion --------------
74 ~dp0 should be directory containing batch file
75 @pwd@\
76 @pwd@\
77 CD value @pwd@@or_broken@CD value
84 ERRORLEVEL
87 0ERRORLEVEL
92 P0S
93 ------------ Testing type ------------
95 @pwd@>type foobaz@space@
96 bar
98 @pwd@>echo ***@space@
99 ***
102 ------------ Testing if/else --------------
103 if/else should work with blocks
104 if seems to work
105 else seems to work
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
109 if /i seems to work
110 if /I seems to work
111 -----------Testing for -----------
118 @todo_wine@X Y
119 @todo_wine@A C
120 @todo_wine@A D
121 @todo_wine@B C
122 @todo_wine@B D
123 @todo_wine@A C
124 @todo_wine@A D
125 @todo_wine@B C
126 @todo_wine@B D
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 -----------
138 @todo_wine@1
139 @todo_wine@1
145 @todo_wine@1
149 dir created
151 @todo_wine@1
152 @todo_wine@1
153 @todo_wine@1
154 @todo_wine@ok, foo created
155 @todo_wine@1
156 @todo_wine@ok, foo\bar created
157 ----------- Testing rmdir -----------
159 dir removed
161 dir removed
164 file not removed
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
176 7 should be 7
177 7 should still be 7
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-----------