android_external_toybox/tests
Elliott Hughes bd7c5c0555 env: fix case where a variable is replaced.
Found when trying to update the toybox prebuilt used for the Android
build.

Also add the corresponding test.
2019-05-03 11:35:59 -05:00
..
files file: improve test coverage. 2019-04-26 15:15:49 -05:00
base64.test
basename.test
bc.test bc: add a trivial regression test for input from stdin. 2019-03-28 15:40:31 -05:00
blkid.test
bzcat.test
cat.test
chattr.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
chgrp.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
chmod.test
chown.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
cksum.test
cmp.test cmp/env/nice/nohup/sort: use TOYFLAG_ARGFAIL. 2019-03-18 23:37:05 -05:00
cp.test Fix cp permissions when copying symlink contents, and add test. 2019-01-12 15:32:14 -06:00
cpio.test
cut.test More TEST_HOST -> toyonly 2019-04-22 16:50:59 -05:00
date.test Switch some SKIP_HOST tests to toyonly. (The host could be toybox.) 2019-04-22 16:49:07 -05:00
dd.test More TEST_HOST -> toyonly 2019-04-22 16:50:59 -05:00
demo_number.test
diff.test diff: use TOYFLAG_ARGFAIL. 2019-03-18 23:29:59 -05:00
dirname.test
du.test
echo.test Make echo -E switch off -e. 2019-04-30 17:09:07 -05:00
env.test env: fix case where a variable is replaced. 2019-05-03 11:35:59 -05:00
expand.test
expr.test
factor.test
file.test file: improve test coverage. 2019-04-26 15:15:49 -05:00
find.test find: fix inverted -exec exit status 2019-03-25 20:59:44 -05:00
fmt.test
fold.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
fstype.test
getfattr.test getfattr: add --only-values. 2019-02-21 12:12:01 -06:00
grep.test I had some pending grep tests I hadn't checked in too. 2019-03-14 10:32:12 -05:00
groupadd.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
groupdel.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
gunzip.test
gzip.test
head.test
hostname.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
iconv.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
ifconfig.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
killall.test
link.test
ln.test
losetup.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
ls.test
lsattr.test
man.test Search name and first line with man -k regex. 2019-04-29 17:15:11 -05:00
md5sum.test md5sum/sha1sum: add --status and --check, fix --check with multiple files. 2018-12-19 13:50:38 -06:00
mkdir.test
mkfifo.test
mktemp.test mktemp: just the missing tests. 2018-12-06 13:24:22 -06:00
modinfo.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
more.test more: better behavior with directories. 2019-04-26 15:17:23 -05:00
mount.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
mv.test
nl.test
paste.test
pgrep.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
pkill.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
printf.test
pwd.test
readlink.test
README.txt Merge runtest.sh into test.sh. 2018-12-02 16:22:41 -06:00
renice.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
rev.test
rm.test More TEST_HOST -> toyonly 2019-04-22 16:50:59 -05:00
rmdir.test
sed.test sed: fix endless loop in "b loop" test. 2019-02-13 05:51:27 -06:00
seq.test
setfattr.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
sh.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
sha1sum.test
sort.test cmp/env/nice/nohup/sort: use TOYFLAG_ARGFAIL. 2019-03-18 23:37:05 -05:00
split.test
strings.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
tac.test
tail.test
tar.test More tar tests, and fix tar to pass them. 2019-04-03 23:05:33 -05:00
test.test Teach testcmd to say short name rather than full path. 2018-12-02 16:53:03 -06:00
timeout.test grep: use TOYFLAG_ARGFAIL for grep too. 2019-03-14 10:31:07 -05:00
top.test
touch.test Make touch use xparsedate() (result: -t and -d the same, autodetects format), 2019-03-26 15:40:00 -05:00
truncate.test
unzip.test unzip tests. 2019-02-04 06:02:45 -06:00
uptime.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
useradd.test Use return rather than continue to make bash 4.4 happy. 2019-01-07 19:26:24 -06:00
uudecode.test
uuencode.test
uuidgen.test
wc.test
xargs.test xargs: make --help match reality. 2019-01-18 22:17:58 -06:00
xxd.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00
xzcat.test
zcat.test Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. 2018-11-20 17:44:43 -06:00

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