ieframe: Moved dialog resources to ieframe.
[wine/testsucceed.git] / programs / cmd / tests / test_builtins.cmd.exp
blobd10aa4ced07a2d3b5198b8ef25efeaa695290c97
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 redirection operators --------------
51 ...stdout redirection
52 foo
53 foo@space@
54 @todo_wine@foo1
55 @todo_wine@foo11
56 @todo_wine@foo12
57 ...stdout appending
58 foo
59 foo@space@
60 foob@space@
61 foob@space@
62 fooc@space@
63 foob@space@
64 fooc@space@
65 @todo_wine@food1
66 @todo_wine@foob@space@
67 @todo_wine@fooc@space@
68 @todo_wine@food1
69 @todo_wine@food2
70 @todo_wine@food21
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
76 baz
77 @todo_wine@baz
78 @todo_wine@foo | echo bar
79 @todo_wine@foo & echo bar
80 @todo_wine@bak &
81 @todo_wine@baz@space@
82 @todo_wine@0@or_broken@1
83 @todo_wine@foo > foo
84 @todo_wine@<
85 @todo_wine@ffoof
86 @todo_wine@FOO=bar | baz
87 @todo_wine@0
88 @todo_wine@FOO=bar ^| baz
89 @todo_wine@bar | baz
90 @todo_wine@0
91 ------------ Testing 'set' --------------
93 @todo_wine@0
94 FOOBAR not defined
95 @todo_wine@ baz
96 FOOBAR = baz
97 @todo_wine@0
98 @todo_wine@ baz2
99 @todo_wine@0
101 @todo_wine@FOOBAR= bar
102 @todo_wine@FOOBAR = baz2
103 FOOBAR = baz
104 FOOBAR not defined
107 foobar
108 FOO not defined
109 BAZ=bazbaz
110 bazbaz
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
115 @pwd@\
116 @pwd@\
117 CD value @pwd@@or_broken@CD value
124 ERRORLEVEL
127 0ERRORLEVEL
133 ------------ Testing conditional execution --------------
134 @todo_wine@...unconditional &
135 foo1
136 bar2@space@
137 foo2
138 @todo_wine@foobar deleted
139 @todo_wine@...on success conditional &&
140 @todo_wine@foo3 not created
141 bar4@space@
142 foo4
143 @todo_wine@...on failure conditional ||
144 @todo_wine@foo5
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
163 if seems to work
164 else seems to work
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
168 if /i seems to work
169 if /I seems to work
170 -----------Testing for -----------
177 @todo_wine@X Y
178 @todo_wine@A C
179 @todo_wine@A D
180 @todo_wine@B C
181 @todo_wine@B D
182 @todo_wine@A C
183 @todo_wine@A D
184 @todo_wine@B C
185 @todo_wine@B D
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 -----------
197 @todo_wine@1
198 @todo_wine@1
204 @todo_wine@1
208 dir created
210 @todo_wine@1
211 @todo_wine@1
212 @todo_wine@1
213 @todo_wine@ok, foo created
214 @todo_wine@1
215 @todo_wine@ok, foo\bar created
216 foo created
217 @todo_wine@bar created
218 @todo_wine@foobar created
219 @todo_wine@bar\baz created
220 ----------- Testing rmdir -----------
222 dir removed
224 dir removed
227 file not removed
229 non-empty dir not removed
231 non-empty dir not removed
232 recursive rmdir succeeded
233 recursive rmdir succeeded
234 foo removed
235 bar removed
236 foobar removed
237 bar\baz removed
238 ------------ Testing CALL --------------
240 foo 8
241 bar :testRoutine
242 @todo_wine@0
243 @todo_wine@foo created
244 @todo_wine@Should expand foobaz
245 @todo_wine@batfile
246 @todo_wine@robinfile
247 @todo_wine@1
248 @todo_wine@1
249 non-builtin dir
250 -----------Testing Errorlevel-----------
251 9009
253 errorlevel just right, good
254 abc0def@or_broken@abc1def
255 errorlevel zero, good@or_broken@errorlevel nonzero, bad
256 7 should be 7
257 7 should still be 7
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-----------