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

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