aboutsummaryrefslogtreecommitdiff
path: root/tests/testcases
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-03-13 23:30:18 +0000
committerMark Whitley <markw@lineo.com>2001-03-13 23:30:18 +0000
commitc75f83d8740c57cd498056d43170cbdca0729275 (patch)
tree4b8fbaf458aebf36bb336dffcb904a62e2524c56 /tests/testcases
parentb3d6e2df95a21034e41d46a18c71dd1c4e07e987 (diff)
downloadbusybox-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/testcases114
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
52date +%d/%m/%y 52date +%d/%m/%y
53 53
54# dc - needs an input file 54# dc - needs an input file
55
55# dd 56# dd
57dd 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
96expr 1 \| 1 99# XXX: something's wrong with the way I'm doing these. Figure it out later.
97expr 1 \| 0 100#expr 1 \| 1
98expr 0 \| 1 101#expr 1 \| 0
99expr 0 \| 0 102#expr 0 \| 1
100 103#expr 0 \| 0
101expr 1 \& 1 104#
102expr 1 \& 0 105#expr 1 \& 1
103expr 0 \& 1 106#expr 1 \& 0
104expr 0 \& 0 107#expr 0 \& 1
105 108#expr 0 \& 0
106expr 0 \< 1 109#
107expr 1 \< 0 110#expr 0 \< 1
108 111#expr 1 \< 0
109expr 1 \> 0 112#
110expr 0 \> 1 113#expr 1 \> 0
111 114#expr 0 \> 1
112expr 0 \<= 1 115#
113expr 1 \<= 0 116#expr 0 \<= 1
114expr 1 \<= 1 117#expr 1 \<= 0
115 118#expr 1 \<= 1
116expr 1 \>= 0 119#
117expr 0 \>= 1 120#expr 1 \>= 0
118expr 1 \>= 1 121#expr 0 \>= 1
119 122#expr 1 \>= 1
120expr 1 + 2 123#
121expr 2 - 1 124#expr 1 + 2
122expr 2 \* 3 125#expr 2 - 1
123expr 12 / 2 126#expr 2 \* 3
124expr 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
188ls 194ls ../e*
189ls -l 195ls -l ../e*
190ls -s 196ls -s ../e*
191ls -h 197ls -h ../e*
192ls -1 198ls -1 ../e*
193 199
194# lsmod 200# lsmod
195lsmod 201lsmod
@@ -200,7 +206,16 @@ lsmod
200md5sum tester.sh 206md5sum tester.sh
201 207
202# mkdir 208# mkdir
209mkdir 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)
216mkfifo F ; ls -l F ; rm F
217mkfifo -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
234ping -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
230ln -sf tester.sh LINKFILE 246ln -sf tester.sh L ; readlink L ; rm -f L
231readlink LINKFILE
232rm -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
253touch 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
265sort tester.sh
266sort -n tester.sh
267sort -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
254tail tester.sh 276tail tester.sh
255tail -n 2 tester.sh 277tail -n 2 tester.sh
256 278
257# tar 279# tar
280
258# tee 281# tee
259# telnet 282echo "please tee me!" | tee A B C ; cat A B C
283echo "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
273uptime 301uptime
274 302
275# usleep 303# usleep
@@ -293,9 +321,7 @@ which ls
293whoami 321whoami
294 322
295# xargs 323# xargs
296# (for some reason, the > redirection isn't working) 324ls -1 ../e* | xargs
297#ls -1 > TMPFILE 325ls -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)