Rob Landley 690526a84f Make tar tests more portable, and add --owner :UID and --group :GID vor 2 Jahren
..
files 842b0d24e3 Cleanup pass on file.c, add more tests. vor 2 Jahren
README.txt 01844db4fb Merge runtest.sh into test.sh. vor 5 Jahren
base32.test b6b5becf35 new toy: base32 vor 3 Jahren
base64.test 216e4dab19 Add "testcmd" function as an alternative to "testing" for tests/*.test, and vor 7 Jahren
basename.test 457dda2930 basename: -s SUFFIX. vor 5 Jahren
bc.test 1201a665bf bc: add a trivial regression test for input from stdin. vor 5 Jahren
blkid.test 1a499d83d4 blkid.test: allow e2fsprogs' blkid too. vor 4 Jahren
bzcat.test f966da9e6e Make bzcat tests runnable on a toybox-only system. vor 7 Jahren
cat.test 8de3613e43 Checking for specific error messages makes TEST_HOST unreliable. vor 4 Jahren
chattr.test f554ce0a4b chattr.test: don't fail on f2fs with compression enabled. vor 3 Jahren
chgrp.test b891b49e08 tests: fix for empty /etc/passwd or /etc/group. vor 5 Jahren
chmod.test e63c996742 chmod: fix +X. vor 3 Jahren
chown.test b891b49e08 tests: fix for empty /etc/passwd or /etc/group. vor 5 Jahren
cksum.test 4c320bfbbb More TEST_HOST failures. vor 4 Jahren
cmp.test f4f5fd5d78 Add cmp -n and wire up skip1 and skip2, plus new test, FLAG() conversions... vor 2 Jahren
comm.test 2243f6f2ad comm: stop using get_line(). vor 2 Jahren
cp.test 127cff3880 Work around a posix violation in the croups filesystem that LTP requires. vor 3 Jahren
cpio.test c366525850 cpio: Don't lchown() if -t is specified vor 3 Jahren
cut.test f4c6375fad Add support for -d $'\n' (cut by line!) and posix -nb (wraps to start of -c) vor 3 Jahren
date.test 54788b5670 Teach xparsedate() to handle more whitespace. vor 3 Jahren
dd.test 0d754b823c dd: iflags, oflags, fix ^C, fix the fundamental loop. vor 5 Jahren
demo_number.test 0536f45747 Add human_readable_long() for more than 3 digits of output. vor 5 Jahren
diff.test 36b1b7d1f8 diff: implement --strip-trailing-cr. vor 5 Jahren
dirname.test d1d751e4be dirname: support multiple arguments. vor 5 Jahren
du.test bb391a9ce6 du.test: skip on Mac. vor 4 Jahren
echo.test 3ba988c453 echo: fix trailing \0. vor 3 Jahren
env.test 284a27675c Fix env properly: env -i uses old $PATH, but use new PATH= when redefined. vor 2 Jahren
expand.test 8d826bf449 Use $(( rather than $[ for arithmetic in expand.test. vor 7 Jahren
expr.test 6aba814b28 Posix requires "" to be false, and 00 should be false, and -0 should be false. vor 8 Jahren
factor.test 92cc04b086 More tests that don't pass TEST_HOST. (The file one is checking for vor 4 Jahren
file.test 842b0d24e3 Cleanup pass on file.c, add more tests. vor 2 Jahren
find.test eaf3949cb7 Fix @time.nanosecond parsing, and add test. vor 2 Jahren
fmt.test 6cc6d5b065 Fix distro version skew in TEST_HOST. vor 2 Jahren
fold.test 7a46d1db95 Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. vor 5 Jahren
fstype.test 1ffa7f45eb Fix bzcat.test (as noted by Andy Chu), wean tests off $TOPDIR and supply $FILES vor 8 Jahren
getfattr.test 4cc20c7554 getfattr: add --only-values. vor 5 Jahren
getopt.test c77b664557 Add getopt(1). vor 4 Jahren
grep.test 3062fc9e9a Fix grep --color to highlight all matches, based on Peter Collingbourne's vor 2 Jahren
groupadd.test bfbdd4a2db Use `return` rather than `continue` to make bash 4.4 happy. vor 5 Jahren
groupdel.test bfbdd4a2db Use `return` rather than `continue` to make bash 4.4 happy. vor 5 Jahren
gunzip.test 640b1bea8b Add test for FEXTRA flag on gunzip vor 3 Jahren
gzip.test 35ee6fcf9f gzip: reject non-gzip files in zlib path. vor 4 Jahren
head.test 77997b8e77 teach head -c vor 7 Jahren
hexdump.test 6e6b6eb6fa new toy: Simple hexdump implementation vor 2 Jahren
hostname.test 26f3ca413c hostname: fix tests for non-root on Android. vor 5 Jahren
iconv.test d2f6a12763 Fix iconv and tests on Mac. vor 4 Jahren
id.test 49c02dbe43 id.test: hacks to pass on Raspberry Pi OS. vor 3 Jahren
ifconfig.test 898a25b851 ifconfig.test: don't check for specific error message. vor 4 Jahren
install.test 3cde24138a Fix install -t vor 3 Jahren
kill.test f438b6731d Add kill -0 test. vor 2 Jahren
killall.test e794647d2a Avoid spurious test failures when fork() coincides with signal being sent, vor 4 Jahren
link.test 49164c7c0b Add some 2>/dev/null to tests that produce gratuitous stderr output. vor 4 Jahren
ln.test 49feb50f22 Add ln -r and relative_path() to lib, plus test. vor 4 Jahren
losetup.test cde31cc6bb losetup.test: bail out if loopback devices are already in use. vor 5 Jahren
ls.test 13e973c613 Don't test for specific error message output, they vary by libc version. vor 4 Jahren
lsattr.test da60fb13dc Now that both sed instances are using -E, we don't need to call it twice. vor 4 Jahren
man.test 4ed8782edd Walk -M /dir:/dir0:/dirN in man. vor 5 Jahren
md5sum.test 880e41fa96 md5sum/sha1sum: add --status and --check, fix --check with multiple files. vor 5 Jahren
mkdir.test b8418383a0 mkdir: return error for existing directories without -p flag vor 2 Jahren
mkfifo.test 336c44adca Factor out command name at the start of test name, have runtest.sh print it. vor 8 Jahren
mktemp.test 0dedd13253 Allow --tmpdir's argument to be optional. vor 4 Jahren
modinfo.test e6b3ac496f modinfo: various fixes. vor 4 Jahren
more.test bd6e9d030c more: better behavior with directories. vor 5 Jahren
mount.test 086356b88e Fix mount.test command string quoting vor 3 Jahren
mv.test dfd403c8d2 Peter McConalogue pointed out that cp/mv -i prompt should default N. vor 3 Jahren
netcat.test 9f7f62615f netcat.test: reduce flake. vor 3 Jahren
nl.test 37f94908b8 Cleanup nl (it had a stale TODO entry). vor 2 Jahren
paste.test 47d07dc155 Paste bugfix, more tests. vor 7 Jahren
patch.test de303e914b patch fuzz: Always output original file's ' ' context lines, not from hunk. vor 4 Jahren
pgrep.test 7a46d1db95 Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. vor 5 Jahren
pidof.test c8400d7f82 Fix same spurious test failures that were affecting killall, vor 4 Jahren
pkill.test 7a46d1db95 Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. vor 5 Jahren
printf.test b02260f725 printf.test: work around bash 3.2 on the Mac. vor 4 Jahren
ps.test 275c0a97f7 Simple ps smoketest. vor 4 Jahren
pwd.test 336c44adca Factor out command name at the start of test name, have runtest.sh print it. vor 8 Jahren
readelf.test c9e684a5a3 Replace more SKIP_HOST with toyonly. vor 4 Jahren
readlink.test 86c25f5335 readlink: add missing line, plus a test. vor 4 Jahren
realpath.test 8b64d4ac83 Comment out tests realpath doesn't implement yet. vor 2 Jahren
renice.test 7a46d1db95 Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. vor 5 Jahren
rev.test 68de708ac5 TEST_HOST with util-linux 2.29.2 was... unhappy. vor 3 Jahren
rm.test 40fbe7eb5e rm: Add testcase for "rm -f <readonly_filesystem>/missing_file" vor 3 Jahren
rmdir.test 855eca3eaf Nir Lichtman pointed out that rm -p shouldn't try to rmdir / at the end. vor 3 Jahren
sed.test b607b57909 Fix sed bug with multiple w to same file. vor 2 Jahren
seq.test c0f0b967a8 Add seq INT_MIN test. vor 3 Jahren
setfattr.test 7a46d1db95 Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. vor 5 Jahren
sh.test 1533ccf512 Add "cd -", teach cd to handle deleted directories, fix ${X: -1:1} vor 2 Jahren
sha1sum.test c7e261720f Add tests for other sha2 variants. vor 3 Jahren
sha224sum.test c7e261720f Add tests for other sha2 variants. vor 3 Jahren
sha256sum.test 5166c7f455 Merge sha1sum and sha256sum tests. vor 3 Jahren
sha384sum.test c7e261720f Add tests for other sha2 variants. vor 3 Jahren
sha512sum.test c7e261720f Add tests for other sha2 variants. vor 3 Jahren
sort.test b0a4a96e36 Remove non-posix "sort -h". vor 2 Jahren
split.test 3fbacb1f5c Add split -n test, handle more than one leftover byte, clarify help text. vor 3 Jahren
stat.test dba8041341 Some basic stat tests. vor 4 Jahren
strings.test 7a46d1db95 Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. vor 5 Jahren
tac.test 336c44adca Factor out command name at the start of test name, have runtest.sh print it. vor 8 Jahren
tail.test ba242e08ee Teach tail -F to work on file that doesn't initially exist (needed vor 3 Jahren
tar.test 690526a84f Make tar tests more portable, and add --owner :UID and --group :GID vor 2 Jahren
tee.test f3d4a2c72f Bugfix: tee with no arguments was writing to stdout twice. vor 4 Jahren
test.test 5109da9b3e Luke Frankart pointed out a typo (0x111 should be 0111). Fix and update vor 3 Jahren
timeout.test 38509d0e21 timeout: fix exit status for sneaky subprocesses. vor 4 Jahren
top.test eee28e7b58 Support fractional seconds (and other time units) in `top -d`. vor 6 Jahren
touch.test c9e684a5a3 Replace more SKIP_HOST with toyonly. vor 4 Jahren
tr.test 72ec2b3746 tr: fix pathological flushing. vor 3 Jahren
truncate.test b942b7f88a truncate.test: work around ext extended attributes space usage. vor 5 Jahren
unicode.test ed3d5eb0ea unicode: new toy. vor 3 Jahren
unzip.test 4ab5f9bd06 unzip tests. vor 5 Jahren
uptime.test 7a46d1db95 Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. vor 5 Jahren
useradd.test bfbdd4a2db Use `return` rather than `continue` to make bash 4.4 happy. vor 5 Jahren
uudecode.test 0956d16785 Add "uudecode -o -" support. vor 7 Jahren
uuencode.test 336c44adca Factor out command name at the start of test name, have runtest.sh print it. vor 8 Jahren
uuidgen.test ec66213424 Add uuidgen. vor 6 Jahren
vi.test df19a448f6 vi: fix dw_last test, add more tests vor 4 Jahren
wc.test d7c111f4c3 wc: fix the column width heuristics even further. vor 5 Jahren
xargs.test 9552ab89c6 Mark Salyzyn implemented support for xargs -P (run parallel jobs) because he vor 3 Jahren
xxd.test 92dd794d8e Replace a SKIP_HOST with toyonly. vor 4 Jahren
xzcat.test 336c44adca Factor out command name at the start of test name, have runtest.sh print it. vor 8 Jahren
zcat.test 7a46d1db95 Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. vor 5 Jahren

README.txt

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