crypt32: Add additional path for Solaris 11 Express.
[wine] / programs / cmd / tests / test_builtins.cmd.exp
1
2 @pwd@>echo Tests for cmd's builtin commands@space@
3 Tests for cmd's builtin commands
4
5 @pwd@>echo ------------ Testing 'echo' [ON] --------------@space@
6 ------------ Testing 'echo' [ON] --------------
7
8 @pwd@>echo word@space@
9 word
10
11 @pwd@>echo 'singlequotedword'@space@
12 'singlequotedword'
13
14 @pwd@>echo "doublequotedword"@space@
15 "doublequotedword"
16 at-echoed-word
17
18 @pwd@>echo "/?"@space@
19 "/?"
20
21 @pwd@>echo.
22
23
24 @pwd@>echo .@space@
25 .
26
27 @pwd@>echo.word
28 word
29
30 @pwd@>echo .word@space@
31 .word
32
33 @pwd@>echo word@space@@space@
34 word@space@
35
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 "/?"
44
45 .
46 word
47 .word
48 word@space@
49 word@space@@space@
50 ------------ Testing 'set' --------------
51 0
52 1
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
65 1
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
78 %
79 P
80 P
81 S
82 P
83 PS
84 ERRORLEVEL
85 0
86 00
87 0ERRORLEVEL
88 0
89 0%
90 P0
91 0S
92 P0S
93 ------------ Testing type ------------
94
95 @pwd@>type foobaz@space@
96 bar
97
98 @pwd@>echo ***@space@
99 ***
100 bar
101 ***
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 -----------
112 A
113 B
114 C
115 A
116 B
117 C
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 -----------
136 0
137 0
138 @todo_wine@1
139 @todo_wine@1
140 0
141 0
142 0
143 0
144 0
145 @todo_wine@1
146 0
147 0
148 0
149 dir created
150 0
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 -----------
158 0
159 dir removed
160 0
161 dir removed
162 0
163 0
164 file not removed
165 0
166 non-empty dir not removed
167 0
168 non-empty dir not removed
169 -----------Testing Errorlevel-----------
170 1
171 errorlevel just right, good
172 abc0def@or_broken@abc1def
173 errorlevel zero, good@or_broken@errorlevel nonzero, bad
174 7 should be 7
175 7 should still be 7
176 -----------Testing GOTO-----------
177 goto with no leading space worked
178 goto with a leading space worked
179 goto with a leading tab worked
180 goto with a following space worked
181 -----------Done, jumping to EOF-----------