]>
Commit | Line | Data |
---|---|---|
ccc6cda3 JA |
1 | t -a noexist |
2 | 1 | |
3 | t -a run-all | |
4 | 0 | |
5 | t -b run-all | |
6 | 1 | |
7 | t -b /dev/jb1a | |
8 | 1 | |
9 | t -c run-all | |
10 | 1 | |
11 | t -c /dev/tty | |
12 | 0 | |
13 | t -d run-all | |
14 | 1 | |
15 | t -d /etc | |
16 | 0 | |
d166f048 JA |
17 | t -d "" |
18 | 1 | |
19 | b -d "" | |
20 | 1 | |
ccc6cda3 JA |
21 | t -e noexist |
22 | 1 | |
23 | t -e run-all | |
24 | 0 | |
25 | t -f noexist | |
26 | 1 | |
27 | t -f /dev/tty | |
28 | 1 | |
29 | t -f run-all | |
30 | 0 | |
31 | t -g run-all | |
32 | 1 | |
33 | t -g /tmp/test.setgid | |
34 | 0 | |
35 | t -k run-all | |
36 | 1 | |
37 | t -n "" | |
38 | 1 | |
39 | t -n "hello" | |
40 | 0 | |
41 | t -p run-all | |
42 | 1 | |
43 | t -r noexist | |
44 | 1 | |
45 | t -r /tmp/test.noread | |
46 | 1 | |
47 | t -r run-all | |
48 | 0 | |
49 | t -s noexist | |
50 | 1 | |
51 | t -s /dev/null | |
52 | 1 | |
53 | t -s run-all | |
54 | 0 | |
55 | t -t 20 | |
56 | 1 | |
57 | t -t 0 | |
58 | 0 | |
59 | t -u noexist | |
60 | 1 | |
61 | t -u run-all | |
62 | 1 | |
63 | t -u /tmp/test.setuid | |
64 | 0 | |
65 | t -w noexist | |
66 | 1 | |
67 | t -w /tmp/test.nowrite | |
68 | 1 | |
69 | t -w /dev/null | |
70 | 0 | |
71 | t -x noexist | |
72 | 1 | |
73 | t -x /tmp/test.exec | |
74 | 0 | |
75 | t -x /tmp/test.noexec | |
76 | 1 | |
77 | t -z "" | |
78 | 0 | |
79 | t -z "foo" | |
80 | 1 | |
81 | t "foo" | |
82 | 0 | |
83 | t "" | |
84 | 1 | |
85 | t -O /tmp/test.owner | |
86 | 0 | |
cce855bc JA |
87 | t -S /tmp/test.socket |
88 | 1 | |
89 | t -N /tmp/test.newer | |
90 | 0 | |
ccc6cda3 JA |
91 | t "hello" = "hello" |
92 | 0 | |
93 | t "hello" = "goodbye" | |
94 | 1 | |
95 | t "hello" == "hello" | |
96 | 0 | |
97 | t "hello" == "goodbye" | |
98 | 1 | |
99 | t "hello" != "hello" | |
100 | 1 | |
101 | t "hello" != "goodbye" | |
102 | 0 | |
103 | t "hello" < "goodbye" | |
104 | 1 | |
105 | t "hello" > "goodbye" | |
106 | 0 | |
107 | t ! "hello" > "goodbye" | |
108 | 1 | |
109 | t 200 -eq 200 | |
110 | 0 | |
111 | t 34 -eq 222 | |
112 | 1 | |
d166f048 JA |
113 | t -32 -eq 32 |
114 | 1 | |
ccc6cda3 JA |
115 | t 200 -ne 200 |
116 | 1 | |
117 | t 34 -ne 222 | |
118 | 0 | |
119 | t 200 -gt 200 | |
120 | 1 | |
121 | t 340 -gt 222 | |
122 | 0 | |
123 | t 200 -ge 200 | |
124 | 0 | |
125 | t 34 -ge 222 | |
126 | 1 | |
127 | t 200 -lt 200 | |
128 | 1 | |
129 | t 34 -lt 222 | |
130 | 0 | |
131 | t 200 -le 200 | |
132 | 0 | |
133 | t 340 -le 222 | |
134 | 1 | |
135 | t 700 -le 1000 -a -n "1" -a "20" = "20" | |
136 | 0 | |
137 | t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \) | |
138 | 1 | |
139 | t /tmp/abc -nt /tmp/def | |
140 | 1 | |
141 | t /tmp/abc -ot /tmp/def | |
142 | 0 | |
143 | t /tmp/def -nt /tmp/abc | |
144 | 0 | |
145 | t /tmp/def -ot /tmp/abc | |
146 | 1 | |
147 | t /tmp/abc -ef /tmp/def | |
148 | 1 | |
149 | t /tmp/abc -ef /tmp/ghi | |
150 | 0 | |
151 | t -r /dev/fd/0 | |
152 | 0 | |
153 | t -w /dev/fd/1 | |
154 | 0 | |
155 | t -w /dev/fd/2 | |
156 | 0 | |
bb70624e JA |
157 | t -r /dev/stdin |
158 | 0 | |
159 | t -w /dev/stdout | |
160 | 0 | |
161 | t -w /dev/stderr | |
162 | 0 | |
ccc6cda3 JA |
163 | t |
164 | 1 | |
d166f048 JA |
165 | b |
166 | 1 | |
ccc6cda3 JA |
167 | t 12 -eq 34 |
168 | 1 | |
169 | t ! 12 -eq 34 | |
170 | 0 | |
171 | t -n abcd -o aaa | |
172 | 0 | |
173 | t -n abcd -o -z aaa | |
174 | 0 | |
175 | t -n abcd -a aaa | |
176 | 0 | |
177 | t -n abcd -a -z aaa | |
178 | 1 | |
179 | t -o allexport | |
180 | 1 | |
181 | t ! -o allexport | |
182 | 0 | |
495aee44 CR |
183 | t -v unset |
184 | 1 | |
185 | t -v set | |
186 | 0 | |
187 | t -v set | |
188 | 0 | |
ccc6cda3 JA |
189 | t xx -a yy |
190 | 0 | |
191 | t xx -o "" | |
192 | 0 | |
193 | t xx -a "" | |
194 | 1 | |
195 | t -X -a -X | |
196 | 0 | |
197 | t -X -o -X | |
198 | 0 | |
199 | t -X -o "" | |
200 | 0 | |
201 | t -X -a "" | |
202 | 1 | |
203 | t "" -a -X | |
204 | 1 | |
205 | t "" -o -X | |
206 | 0 | |
207 | t "" -a "" | |
208 | 1 | |
209 | t "" -o "" | |
210 | 1 | |
211 | t true -o -X | |
212 | 0 | |
213 | t true -a -X | |
214 | 0 | |
215 | t ( -E ) | |
216 | 0 | |
217 | t ( "" ) | |
218 | 1 | |
d166f048 JA |
219 | t ! -z "$z" |
220 | 0 | |
221 | t ! -n "$z" | |
222 | 1 | |
223 | t "$zero" | |
224 | 1 | |
225 | t ! "$zero" | |
226 | 0 | |
227 | b "$zero" | |
228 | 1 | |
229 | b ! "$zero" | |
230 | 0 | |
231 | t -G /tmp/test.group | |
232 | 0 | |
233 | t -h /tmp/test.symlink | |
234 | 0 | |
235 | t 4+3 -eq 7 | |
7117c2d2 | 236 | ./test.tests: line 13: test: 4+3: integer expression expected |
b72432fd | 237 | 2 |
d166f048 | 238 | b 4-5 -eq 7 |
7117c2d2 | 239 | ./test.tests: line 7: [: 4+3: integer expression expected |
b72432fd | 240 | 2 |
d166f048 | 241 | t 9 -eq 4+5 |
7117c2d2 | 242 | ./test.tests: line 13: test: 4+5: integer expression expected |
b72432fd | 243 | 2 |
d166f048 | 244 | b 9 -eq 4+5 |
7117c2d2 | 245 | ./test.tests: line 7: [: 4+5: integer expression expected |
b72432fd | 246 | 2 |
d166f048 | 247 | t A -eq 7 |
7117c2d2 | 248 | ./test.tests: line 13: test: A: integer expression expected |
b72432fd | 249 | 2 |
d166f048 | 250 | b A -eq 7 |
7117c2d2 | 251 | ./test.tests: line 7: [: A: integer expression expected |
b72432fd | 252 | 2 |
d166f048 | 253 | t 9 -eq B |
7117c2d2 | 254 | ./test.tests: line 13: test: B: integer expression expected |
b72432fd | 255 | 2 |
d166f048 | 256 | b 9 -eq B |
7117c2d2 | 257 | ./test.tests: line 7: [: B: integer expression expected |
b72432fd | 258 | 2 |
d166f048 | 259 | t ( 1 = 2 |
7117c2d2 | 260 | ./test.tests: line 13: test: `)' expected |
b72432fd | 261 | 2 |
d166f048 | 262 | b ( 1 = 2 |
7117c2d2 | 263 | ./test.tests: line 7: [: `)' expected, found ] |
b72432fd | 264 | 2 |
7117c2d2 | 265 | ./test.tests: line 13: test: a: unary operator expected |
b72432fd | 266 | 2 |
7117c2d2 | 267 | ./test.tests: line 13: test: b: binary operator expected |
b72432fd | 268 | 2 |
7117c2d2 | 269 | ./test.tests: line 13: test: -A: unary operator expected |
b72432fd | 270 | 2 |
7117c2d2 | 271 | ./test.tests: line 13: test: too many arguments |
b72432fd | 272 | 2 |
7117c2d2 | 273 | ./test.tests: line 13: test: too many arguments |
b72432fd | 274 | 2 |
495aee44 | 275 | ./test.tests: line 418: [: missing `]' |
b72432fd | 276 | 2 |
7117c2d2 | 277 | ./test.tests: line 13: test: (: unary operator expected |
b72432fd | 278 | 2 |
28ef6c31 JA |
279 | t -t a |
280 | 1 | |
281 | t -t addsds | |
282 | 1 | |
283 | t -t 42 | |
284 | 1 | |
285 | t -t /dev/tty | |
286 | 1 | |
287 | t -t /dev/tty4 | |
288 | 1 | |
289 | t -t /dev/tty4444444... | |
290 | 1 | |
3185942a | 291 | 1 |