bd7c5c0555
Found when trying to update the toybox prebuilt used for the Android build. Also add the corresponding test. |
||
---|---|---|
.. | ||
files | ||
base64.test | ||
basename.test | ||
bc.test | ||
blkid.test | ||
bzcat.test | ||
cat.test | ||
chattr.test | ||
chgrp.test | ||
chmod.test | ||
chown.test | ||
cksum.test | ||
cmp.test | ||
cp.test | ||
cpio.test | ||
cut.test | ||
date.test | ||
dd.test | ||
demo_number.test | ||
diff.test | ||
dirname.test | ||
du.test | ||
echo.test | ||
env.test | ||
expand.test | ||
expr.test | ||
factor.test | ||
file.test | ||
find.test | ||
fmt.test | ||
fold.test | ||
fstype.test | ||
getfattr.test | ||
grep.test | ||
groupadd.test | ||
groupdel.test | ||
gunzip.test | ||
gzip.test | ||
head.test | ||
hostname.test | ||
iconv.test | ||
ifconfig.test | ||
killall.test | ||
link.test | ||
ln.test | ||
losetup.test | ||
ls.test | ||
lsattr.test | ||
man.test | ||
md5sum.test | ||
mkdir.test | ||
mkfifo.test | ||
mktemp.test | ||
modinfo.test | ||
more.test | ||
mount.test | ||
mv.test | ||
nl.test | ||
paste.test | ||
pgrep.test | ||
pkill.test | ||
printf.test | ||
pwd.test | ||
readlink.test | ||
README.txt | ||
renice.test | ||
rev.test | ||
rm.test | ||
rmdir.test | ||
sed.test | ||
seq.test | ||
setfattr.test | ||
sh.test | ||
sha1sum.test | ||
sort.test | ||
split.test | ||
strings.test | ||
tac.test | ||
tail.test | ||
tar.test | ||
test.test | ||
timeout.test | ||
top.test | ||
touch.test | ||
truncate.test | ||
unzip.test | ||
uptime.test | ||
useradd.test | ||
uudecode.test | ||
uuencode.test | ||
uuidgen.test | ||
wc.test | ||
xargs.test | ||
xxd.test | ||
xzcat.test | ||
zcat.test |
The build infrastructure adds a "make test_NAME" target for each NAME.test file in this directory, and "make tests" iterates through all of them. Individual tests boil down to a call to "scripts/test.sh NAME", and testing all is "scripts/test.sh" with no arguments. The test infrastructure, including the shell functions each test calls (mostly "testcmd" and "optional") is described in scripts/test.sh