android_mt6572_jiabo/external/busybox/testsuite
2025-09-05 16:56:03 +08:00
..
basename first commit 2025-09-05 16:56:03 +08:00
bunzip2 first commit 2025-09-05 16:56:03 +08:00
cat first commit 2025-09-05 16:56:03 +08:00
cmp first commit 2025-09-05 16:56:03 +08:00
cp first commit 2025-09-05 16:56:03 +08:00
cut first commit 2025-09-05 16:56:03 +08:00
date first commit 2025-09-05 16:56:03 +08:00
dd first commit 2025-09-05 16:56:03 +08:00
dirname first commit 2025-09-05 16:56:03 +08:00
du first commit 2025-09-05 16:56:03 +08:00
echo first commit 2025-09-05 16:56:03 +08:00
expand first commit 2025-09-05 16:56:03 +08:00
expr first commit 2025-09-05 16:56:03 +08:00
false first commit 2025-09-05 16:56:03 +08:00
find first commit 2025-09-05 16:56:03 +08:00
gunzip first commit 2025-09-05 16:56:03 +08:00
gzip first commit 2025-09-05 16:56:03 +08:00
head first commit 2025-09-05 16:56:03 +08:00
hostid first commit 2025-09-05 16:56:03 +08:00
hostname first commit 2025-09-05 16:56:03 +08:00
id first commit 2025-09-05 16:56:03 +08:00
ln first commit 2025-09-05 16:56:03 +08:00
ls first commit 2025-09-05 16:56:03 +08:00
md5sum first commit 2025-09-05 16:56:03 +08:00
mkdir first commit 2025-09-05 16:56:03 +08:00
msh first commit 2025-09-05 16:56:03 +08:00
mv first commit 2025-09-05 16:56:03 +08:00
pwd first commit 2025-09-05 16:56:03 +08:00
rm first commit 2025-09-05 16:56:03 +08:00
rmdir first commit 2025-09-05 16:56:03 +08:00
strings first commit 2025-09-05 16:56:03 +08:00
tail first commit 2025-09-05 16:56:03 +08:00
tar first commit 2025-09-05 16:56:03 +08:00
tee first commit 2025-09-05 16:56:03 +08:00
touch first commit 2025-09-05 16:56:03 +08:00
tr first commit 2025-09-05 16:56:03 +08:00
true first commit 2025-09-05 16:56:03 +08:00
unexpand first commit 2025-09-05 16:56:03 +08:00
uptime first commit 2025-09-05 16:56:03 +08:00
wc first commit 2025-09-05 16:56:03 +08:00
wget first commit 2025-09-05 16:56:03 +08:00
which first commit 2025-09-05 16:56:03 +08:00
xargs first commit 2025-09-05 16:56:03 +08:00
all_sourcecode.tests first commit 2025-09-05 16:56:03 +08:00
ar.tests first commit 2025-09-05 16:56:03 +08:00
ash.tests first commit 2025-09-05 16:56:03 +08:00
awk.tests first commit 2025-09-05 16:56:03 +08:00
awk_t1.tar.bz2 first commit 2025-09-05 16:56:03 +08:00
bunzip2.tests first commit 2025-09-05 16:56:03 +08:00
busybox.tests first commit 2025-09-05 16:56:03 +08:00
bzcat.tests first commit 2025-09-05 16:56:03 +08:00
cal.tests first commit 2025-09-05 16:56:03 +08:00
comm.tests first commit 2025-09-05 16:56:03 +08:00
cp.tests first commit 2025-09-05 16:56:03 +08:00
cpio.tests first commit 2025-09-05 16:56:03 +08:00
cut.tests first commit 2025-09-05 16:56:03 +08:00
diff.tests first commit 2025-09-05 16:56:03 +08:00
expand.tests first commit 2025-09-05 16:56:03 +08:00
fold.tests first commit 2025-09-05 16:56:03 +08:00
grep.tests first commit 2025-09-05 16:56:03 +08:00
gunzip.tests first commit 2025-09-05 16:56:03 +08:00
ls.mk_uni_tests first commit 2025-09-05 16:56:03 +08:00
ls.tests first commit 2025-09-05 16:56:03 +08:00
makedevs.device_table.txt first commit 2025-09-05 16:56:03 +08:00
makedevs.tests first commit 2025-09-05 16:56:03 +08:00
md5sum.tests first commit 2025-09-05 16:56:03 +08:00
mdev.tests first commit 2025-09-05 16:56:03 +08:00
mkfs.minix.tests first commit 2025-09-05 16:56:03 +08:00
mount.testroot first commit 2025-09-05 16:56:03 +08:00
mount.tests first commit 2025-09-05 16:56:03 +08:00
od.tests first commit 2025-09-05 16:56:03 +08:00
parse.tests first commit 2025-09-05 16:56:03 +08:00
patch.tests first commit 2025-09-05 16:56:03 +08:00
pidof.tests first commit 2025-09-05 16:56:03 +08:00
printf.tests first commit 2025-09-05 16:56:03 +08:00
readlink.tests first commit 2025-09-05 16:56:03 +08:00
README first commit 2025-09-05 16:56:03 +08:00
runtest first commit 2025-09-05 16:56:03 +08:00
rx.tests first commit 2025-09-05 16:56:03 +08:00
sed.tests first commit 2025-09-05 16:56:03 +08:00
seq.tests first commit 2025-09-05 16:56:03 +08:00
sha1sum.tests first commit 2025-09-05 16:56:03 +08:00
sha3sum.tests first commit 2025-09-05 16:56:03 +08:00
sha256sum.tests first commit 2025-09-05 16:56:03 +08:00
sha512sum.tests first commit 2025-09-05 16:56:03 +08:00
sort.tests first commit 2025-09-05 16:56:03 +08:00
start-stop-daemon.tests first commit 2025-09-05 16:56:03 +08:00
sum.tests first commit 2025-09-05 16:56:03 +08:00
tail.tests first commit 2025-09-05 16:56:03 +08:00
tar.tests first commit 2025-09-05 16:56:03 +08:00
taskset.tests first commit 2025-09-05 16:56:03 +08:00
test.tests first commit 2025-09-05 16:56:03 +08:00
testing.sh first commit 2025-09-05 16:56:03 +08:00
TODO first commit 2025-09-05 16:56:03 +08:00
tr.tests first commit 2025-09-05 16:56:03 +08:00
umlwrapper.sh first commit 2025-09-05 16:56:03 +08:00
uncompress.tests first commit 2025-09-05 16:56:03 +08:00
unexpand.tests first commit 2025-09-05 16:56:03 +08:00
uniq.tests first commit 2025-09-05 16:56:03 +08:00
unzip.tests first commit 2025-09-05 16:56:03 +08:00
uuencode.tests first commit 2025-09-05 16:56:03 +08:00
xargs.tests first commit 2025-09-05 16:56:03 +08:00

To run the test suite, change to this directory and run "./runtest".  It will
run all of the test cases, and list those with unexpected outcomes.  Adding the
-v option will cause it to show expected outcomes as well.  To only run the test
cases for particular applets:

./runtest <applet1> <applet2>...

Set SKIP_KNOWN_BUGS environment variable to any non-empty value
to exclude tests which are known to fail.

Set SKIP_INTERNET_TESTS to exclude tests which require working
internet connection.


Common causes of false positives:

For busybox built against uclibc, /etc/TZ does not exist or does not match
host system timezone setting. For glibc based host systems, timezone settings
are in /etc/localtime.

LANG and LC_xxx environment variables set to non-C locale.


Developer's notes:

The test cases for an applet reside in the subdirectory of the applet name.
The name of the test case should be the assertion that is tested.
The test case should be a shell fragment that returns successfully
if the test case passes, and unsuccessfully otherwise.

If the test case relies on a certain feature, it should include the string
"FEATURE: " followed by the name of the feature in a comment.  If it is always
expected to fail, it should include the string "XFAIL" in a comment.


For the entire testsuite, the copyright is as follows:

Copyright (C) 2001, 2002  Matt Kraai

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.