3 # This file should be filled with test cases to test applets that:
5 # - can somehow produce output (we can't test sync or sleep)
6 # - have a GNU (or other) counterpart
7 # - are not interactive (don't require a ^C or anything)
8 # - don't require extensive setup or cleanup (a litte setup is fine)
9 # - don't have huge and possibly damaging effects (fsck, swapoff)
11 # If possible, a test case should be made that tests each option the applet
12 # supports. When a new option is added, a new test case should be written for
13 # it. When somebody reports a bug with a testcase, that testcase should be
16 # Some other guidelines to follow:
18 # - please try to keep applets alphabetized, it will make life easier
19 # - use the file tester.sh or testcases when you need to do a non-destructive
20 # test on a file (i.e. cat, md5sum)
21 # - try to make the applet you're testing the first thing on the line (this
22 # not always possible)
23 # - (???) if you have to create a temporary file, call it TMPFILE
38 # chvt - can't be tested here
39 # clear - can't be tested here
46 echo "f1 f2" | cut -f2
54 # dc - needs an input file
68 # dmesg (XXX: change the silly cmd business in the source)
72 # I really don't want to do this next one
75 # dos2unix - needs an input file
87 # dumpkmap - no counterprt?
88 # dutmp - no counterprt?
126 # somebody else can do all the string stuff
129 # fbset - can't be tested here
138 # fsck.minix - won't test
157 # not going to do this next one
174 # insmod - won't test
178 # not going to do any more
204 # mkfs.minix - won't test
206 # mkswap - won't test
208 # more - can't test: interactive
212 # not going to test any more
218 # ping - can't test: interactive (needs ^C)
220 # poweroff - won't test
222 # ps - there's lotsa differences between busybox ps and any other ps
230 ln -sf tester.sh LINKFILE
234 # reboot - won't test
235 # renice - won't test
236 # reset - can't test: no output
239 # rmmod - won't test: dangerous
242 # sed - we can do some one-liners here; probably needs it's own input file
244 # sh - this should probably have it's own testcase or input file
245 # sleep - can't test: produces no output
248 # swapon - won't test: dangerous
249 # swapoff - won't test: dangerous
250 # sync - can't test: no output
296 # (for some reason, the > redirection isn't working)
298 #xargs md5sum < TMPFILE
301 # yes - can't test: interactive (needs ^C)