diff options
author | Mark Whitley <markw@lineo.com> | 2001-03-13 23:30:18 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-03-13 23:30:18 +0000 |
commit | c75f83d8740c57cd498056d43170cbdca0729275 (patch) | |
tree | 4b8fbaf458aebf36bb336dffcb904a62e2524c56 /tests/testcases | |
parent | b3d6e2df95a21034e41d46a18c71dd1c4e07e987 (diff) | |
download | busybox-w32-c75f83d8740c57cd498056d43170cbdca0729275.tar.gz busybox-w32-c75f83d8740c57cd498056d43170cbdca0729275.tar.bz2 busybox-w32-c75f83d8740c57cd498056d43170cbdca0729275.zip |
Some new testcases, some improvements to the tester.sh script.
Diffstat (limited to 'tests/testcases')
-rw-r--r-- | tests/testcases | 114 |
1 files changed, 70 insertions, 44 deletions
diff --git a/tests/testcases b/tests/testcases index 1838fa0fc..822030621 100644 --- a/tests/testcases +++ b/tests/testcases | |||
@@ -52,7 +52,10 @@ date -u | |||
52 | date +%d/%m/%y | 52 | date +%d/%m/%y |
53 | 53 | ||
54 | # dc - needs an input file | 54 | # dc - needs an input file |
55 | |||
55 | # dd | 56 | # dd |
57 | dd if=/dev/urandom of=O bs=1k count=1 ; ls -l O ; rm O | ||
58 | |||
56 | # deallocvt | 59 | # deallocvt |
57 | 60 | ||
58 | # df | 61 | # df |
@@ -93,35 +96,36 @@ echo -n "no newline" | |||
93 | 96 | ||
94 | 97 | ||
95 | # expr | 98 | # expr |
96 | expr 1 \| 1 | 99 | # XXX: something's wrong with the way I'm doing these. Figure it out later. |
97 | expr 1 \| 0 | 100 | #expr 1 \| 1 |
98 | expr 0 \| 1 | 101 | #expr 1 \| 0 |
99 | expr 0 \| 0 | 102 | #expr 0 \| 1 |
100 | 103 | #expr 0 \| 0 | |
101 | expr 1 \& 1 | 104 | # |
102 | expr 1 \& 0 | 105 | #expr 1 \& 1 |
103 | expr 0 \& 1 | 106 | #expr 1 \& 0 |
104 | expr 0 \& 0 | 107 | #expr 0 \& 1 |
105 | 108 | #expr 0 \& 0 | |
106 | expr 0 \< 1 | 109 | # |
107 | expr 1 \< 0 | 110 | #expr 0 \< 1 |
108 | 111 | #expr 1 \< 0 | |
109 | expr 1 \> 0 | 112 | # |
110 | expr 0 \> 1 | 113 | #expr 1 \> 0 |
111 | 114 | #expr 0 \> 1 | |
112 | expr 0 \<= 1 | 115 | # |
113 | expr 1 \<= 0 | 116 | #expr 0 \<= 1 |
114 | expr 1 \<= 1 | 117 | #expr 1 \<= 0 |
115 | 118 | #expr 1 \<= 1 | |
116 | expr 1 \>= 0 | 119 | # |
117 | expr 0 \>= 1 | 120 | #expr 1 \>= 0 |
118 | expr 1 \>= 1 | 121 | #expr 0 \>= 1 |
119 | 122 | #expr 1 \>= 1 | |
120 | expr 1 + 2 | 123 | # |
121 | expr 2 - 1 | 124 | #expr 1 + 2 |
122 | expr 2 \* 3 | 125 | #expr 2 - 1 |
123 | expr 12 / 2 | 126 | #expr 2 \* 3 |
124 | expr 12 % 5 | 127 | #expr 12 / 2 |
128 | #expr 12 % 5 | ||
125 | 129 | ||
126 | # somebody else can do all the string stuff | 130 | # somebody else can do all the string stuff |
127 | 131 | ||
@@ -167,6 +171,7 @@ id -un | |||
167 | 171 | ||
168 | # ifconfig | 172 | # ifconfig |
169 | #ifconfig | 173 | #ifconfig |
174 | #ifconfig -a | ||
170 | #ifconfig eth0 | 175 | #ifconfig eth0 |
171 | #ifconfig lo | 176 | #ifconfig lo |
172 | 177 | ||
@@ -184,12 +189,13 @@ id -un | |||
184 | # loadkmap | 189 | # loadkmap |
185 | # logger | 190 | # logger |
186 | # logname | 191 | # logname |
192 | |||
187 | # ls | 193 | # ls |
188 | ls | 194 | ls ../e* |
189 | ls -l | 195 | ls -l ../e* |
190 | ls -s | 196 | ls -s ../e* |
191 | ls -h | 197 | ls -h ../e* |
192 | ls -1 | 198 | ls -1 ../e* |
193 | 199 | ||
194 | # lsmod | 200 | # lsmod |
195 | lsmod | 201 | lsmod |
@@ -200,7 +206,16 @@ lsmod | |||
200 | md5sum tester.sh | 206 | md5sum tester.sh |
201 | 207 | ||
202 | # mkdir | 208 | # mkdir |
209 | mkdir D ; ls -ld D ; rmdir D | ||
210 | |||
203 | # mkfifo | 211 | # mkfifo |
212 | # | ||
213 | # we will test making one. actually testing pushing data through it requires | ||
214 | # more interaction than we can manage here. | ||
215 | # (these lines turn up an existing ls bug) | ||
216 | mkfifo F ; ls -l F ; rm F | ||
217 | mkfifo -m 0600 F ; ls -l F ; rm F | ||
218 | |||
204 | # mkfs.minix - won't test | 219 | # mkfs.minix - won't test |
205 | # mknod | 220 | # mknod |
206 | # mkswap - won't test | 221 | # mkswap - won't test |
@@ -215,7 +230,8 @@ mount | |||
215 | # nc | 230 | # nc |
216 | # nfsmount | 231 | # nfsmount |
217 | # nslookup | 232 | # nslookup |
218 | # ping - can't test: interactive (needs ^C) | 233 | # ping |
234 | ping -c 3 yahoo.com | ||
219 | # pivot_root | 235 | # pivot_root |
220 | # poweroff - won't test | 236 | # poweroff - won't test |
221 | # printf | 237 | # printf |
@@ -227,14 +243,15 @@ pwd | |||
227 | # rdate - won't test | 243 | # rdate - won't test |
228 | 244 | ||
229 | # readlink | 245 | # readlink |
230 | ln -sf tester.sh LINKFILE | 246 | ln -sf tester.sh L ; readlink L ; rm -f L |
231 | readlink LINKFILE | ||
232 | rm -f LINKFILE | ||
233 | 247 | ||
234 | # reboot - won't test | 248 | # reboot - won't test |
235 | # renice - won't test | 249 | # renice - won't test |
236 | # reset - can't test: no output | 250 | # reset - can't test: no output |
251 | |||
237 | # rm | 252 | # rm |
253 | touch F ; rm F | ||
254 | |||
238 | # rmdir | 255 | # rmdir |
239 | # rmmod - won't test: dangerous | 256 | # rmmod - won't test: dangerous |
240 | # route | 257 | # route |
@@ -243,20 +260,30 @@ rm -f LINKFILE | |||
243 | # setkeycodes | 260 | # setkeycodes |
244 | # sh - this should probably have it's own testcase or input file | 261 | # sh - this should probably have it's own testcase or input file |
245 | # sleep - can't test: produces no output | 262 | # sleep - can't test: produces no output |
263 | |||
246 | # sort | 264 | # sort |
265 | sort tester.sh | ||
266 | sort -n tester.sh | ||
267 | sort -r tester.sh | ||
268 | |||
247 | # stty | 269 | # stty |
248 | # swapon - won't test: dangerous | 270 | # swapon - won't test: dangerous |
249 | # swapoff - won't test: dangerous | 271 | # swapoff - won't test: dangerous |
250 | # sync - can't test: no output | 272 | # sync - can't test: no output |
251 | # syslogd | 273 | # syslogd - won't test: too involved |
252 | 274 | ||
253 | # tail | 275 | # tail |
254 | tail tester.sh | 276 | tail tester.sh |
255 | tail -n 2 tester.sh | 277 | tail -n 2 tester.sh |
256 | 278 | ||
257 | # tar | 279 | # tar |
280 | |||
258 | # tee | 281 | # tee |
259 | # telnet | 282 | echo "please tee me!" | tee A B C ; cat A B C |
283 | echo "please tee me!" | tee A B C ; echo "tee me too!" | tee -a A B C ; cat A B C ; rm A B C | ||
284 | |||
285 | # telnet - can't test: interactive | ||
286 | |||
260 | # test | 287 | # test |
261 | # tftp | 288 | # tftp |
262 | # touch | 289 | # touch |
@@ -270,6 +297,7 @@ false ; echo $? | |||
270 | # unix2dos | 297 | # unix2dos |
271 | # update | 298 | # update |
272 | 299 | ||
300 | # uptime | ||
273 | uptime | 301 | uptime |
274 | 302 | ||
275 | # usleep | 303 | # usleep |
@@ -293,9 +321,7 @@ which ls | |||
293 | whoami | 321 | whoami |
294 | 322 | ||
295 | # xargs | 323 | # xargs |
296 | # (for some reason, the > redirection isn't working) | 324 | ls -1 ../e* | xargs |
297 | #ls -1 > TMPFILE | 325 | ls -1 ../e* | xargs md5sum |
298 | #xargs md5sum < TMPFILE | ||
299 | #rm -f TMPFILE | ||
300 | 326 | ||
301 | # yes - can't test: interactive (needs ^C) | 327 | # yes - can't test: interactive (needs ^C) |