Denys Vlasenko 1cac258521 time: implement %% and \escapes in -f FMT 3 months ago
..
basename ba2dcccd79 *: trailing empty lines removed 13 years ago
bunzip2 52ae098011 randomconfig fixes 7 years ago
bzcat 52ae098011 randomconfig fixes 7 years ago
cat 3889078dbe Merge test suite. 22 years ago
cmp 650fe63467 Kill off the old 'tests' stuff. Write a ton of new tests for the 20 years ago
cp 208d35d21f testsuite fixes 14 years ago
cut e82cf339e4 randomtest fixes 14 years ago
date 9fe1548bbf date,touch: allow timezone offsets in dates 2 years ago
dd b259415b51 dd: fix testsuite 2 years ago
dirname ba2dcccd79 *: trailing empty lines removed 13 years ago
du 94046d0495 randomconfig fixes 3 7 years ago
echo 572dfb8e78 testsuite: check CONFIG_DESKTOP before using 'od -t' 5 years ago
expr ba2dcccd79 *: trailing empty lines removed 13 years ago
false f3fbe20c35 * cmp/cmp-detects-difference: Simplify return code negation. 22 years ago
find bfa1b2e8e8 randomtest fixes 14 years ago
gunzip 50aec98e1c * testsuite/bunzip2/bunzip2-reads-from-standard-input: Remove -c flags. 22 years ago
gzip 560cf8c7eb gzip: add test that checks that -9 compresses better than -1 7 years ago
hostid afa63b2dcd fix bashisms in testsuite/ 10 years ago
hostname 775965de85 Improved portability of tests 13 years ago
id 650fe63467 Kill off the old 'tests' stuff. Write a ton of new tests for the 20 years ago
ln ba2dcccd79 *: trailing empty lines removed 13 years ago
ls bfa1b2e8e8 randomtest fixes 14 years ago
md5sum bfa1b2e8e8 randomtest fixes 14 years ago
mkdir 3889078dbe Merge test suite. 22 years ago
mv a84bbc5425 cp,mv: fix -t DIR option 2 years ago
paste d2383f57cd paste: new applet 7 years ago
pwd 1f27fa9838 testsuite: allow tests to work in paths containing spaces 6 years ago
rm b89637a037 New. 22 years ago
rmdir 3889078dbe Merge test suite. 22 years ago
strings 650fe63467 Kill off the old 'tests' stuff. Write a ton of new tests for the 20 years ago
tail bfa1b2e8e8 randomtest fixes 14 years ago
tar 2969e24e2a testsuite: fixes after randomconfig run 12 years ago
tee 3889078dbe Merge test suite. 22 years ago
touch 07a37aebf5 New. 22 years ago
tr e82cf339e4 randomtest fixes 14 years ago
true 3889078dbe Merge test suite. 22 years ago
uptime ba2dcccd79 *: trailing empty lines removed 13 years ago
wc dccb1a5343 wc can emit unpredictable amount of whitespace 17 years ago
wget b71ce023e9 add SKIP_KNOWN_BUGS and SKIP_INTERNET_TESTS to testsuite 14 years ago
which bf2f2229bb testsuite: fix last "which" change 10 years ago
xargs 1f27fa9838 testsuite: allow tests to work in paths containing spaces 6 years ago
README 5370bfb123 documentation and typo fixes. By Dan Fandrich (dan AT coneharvesters.com) 14 years ago
TODO c98a359a16 It was a bit out of date. 18 years ago
all_sourcecode.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
ar.tests bb0bf287d8 randomconfig fixes 2 7 years ago
ash.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
awk.tests 789ccac7d9 awk: fix handling of empty fields 3 months ago
awk_t1.tar.bz2 3bb2bbd684 awk: fix a case with multiple -f options. simplify -f file reading. 16 years ago
bc.tests ace81cd46c bc/dc: fix length(0) and length(0.000nnn) result 3 years ago
bc_add.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_add_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_arctangent.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_arctangent_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_array.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_array_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_arrays.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_arrays_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_bessel.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_bessel_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_boolean.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_boolean_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_cosine.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_cosine_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_decimal.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_decimal_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_divide.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_divide_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_exponent.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_exponent_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_log.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_log_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_misc.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_misc1.bc 96b5ec10fb bc: fix "...; return}" to work, disallow "return ()" 5 years ago
bc_misc1_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_misc2.bc d1d29b4245 bc: partially rewrite parser, tests pass, ^C might be broken now 5 years ago
bc_misc2_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_misc_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_modulus.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_modulus_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_multiply.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_multiply_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_numbers1.bc e16a5223d2 bc: fix handling of "digits" above 9 5 years ago
bc_numbers1_results.txt e16a5223d2 bc: fix handling of "digits" above 9 5 years ago
bc_numbers2.bc d5b0fa6abf bc: more fixes for unusual input bases 5 years ago
bc_numbers2_results.txt d5b0fa6abf bc: more fixes for unusual input bases 5 years ago
bc_pi.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_pi_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_power.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_power_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_references.bc 53799506ac bc: implement pass-by-reference code from upstream 5 years ago
bc_references_results.txt 53799506ac bc: implement pass-by-reference code from upstream 5 years ago
bc_sine.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_sine_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_sqrt.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_sqrt_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_strings.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_strings_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_subtract.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_subtract_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_vars.bc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bc_vars_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
bunzip2.tests b2c123d484 testsuite: fix bunzip2.tests expectations 4 years ago
busybox.tests ecaec1dbec testsuite: update busybox and bzcat tests 6 years ago
bz2_issue_11.bz2 38ccd6af8a bzip2: fix two crashes on corrupted archives 6 years ago
bz2_issue_12.bz2 38ccd6af8a bzip2: fix two crashes on corrupted archives 6 years ago
bzcat.tests 94593799f7 testsuite/bzcat.tests: fix false positive take 2 5 years ago
cal.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
cat.tests c849e72c0b nl: ensure '-b n' option displays file content 3 years ago
comm.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
cp.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
cpio.tests 5fa5c4bde8 randomconfig fixes 3 years ago
cryptpw.tests 00b5051cd2 libbb: code shrink in des encryption, in setup_salt() 2 years ago
cut.tests eaa8ee40aa cut: fix testsuite 2 years ago
dc.tests ace81cd46c bc/dc: fix length(0) and length(0.000nnn) result 3 years ago
dc_add.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_add_results.txt 29a9043b36 bc,dc: make BC_LINE_LENGTH/DC_LINE_LENGTH more compatible with GNU 3 years ago
dc_boolean.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_boolean_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_decimal.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_decimal_results.txt 29a9043b36 bc,dc: make BC_LINE_LENGTH/DC_LINE_LENGTH more compatible with GNU 3 years ago
dc_divide.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_divide_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_divmod.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_divmod_results.txt 29a9043b36 bc,dc: make BC_LINE_LENGTH/DC_LINE_LENGTH more compatible with GNU 3 years ago
dc_misc.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_misc_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_modexp.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_modexp_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_modulus.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_modulus_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_multiply.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_multiply_results.txt 29a9043b36 bc,dc: make BC_LINE_LENGTH/DC_LINE_LENGTH more compatible with GNU 3 years ago
dc_power.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_power_results.txt 29a9043b36 bc,dc: make BC_LINE_LENGTH/DC_LINE_LENGTH more compatible with GNU 3 years ago
dc_sqrt.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_sqrt_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_strings.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_strings_results.txt 7d32e25bf3 bc: prepare for char-by-char input handling 5 years ago
dc_subtract.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dc_subtract_results.txt 29a9043b36 bc,dc: make BC_LINE_LENGTH/DC_LINE_LENGTH more compatible with GNU 3 years ago
dcx_vars.dc 9a23b07c4c testsuite: add bc and dc tests 5 years ago
dcx_vars_results.txt 9a23b07c4c testsuite: add bc and dc tests 5 years ago
diff.tests ad27a6d326 diff.tests: add testcases for -B and single line changes 8 years ago
expand.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
factor.tests 6452c30036 factor: detect squares 3 years ago
find.tests d8a3360380 find: implement -ok 1 year ago
fold.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
grep.tests a77f3ecf68 grep: for -L, exitcode 0 means files *without* matches were found, closes 13151 3 years ago
gunzip.tests e8ee86250d testsuite: add tests for {ms5,shaN}sum 13 years ago
head.tests 1476760600 bc: rename config options 5 years ago
hexdump.tests 34751d8bf9 libbb/dump: correct handling of 1-byte signed int format 11 months ago
ls.mk_uni_tests c0e37b4340 testsuite: fix the mishap in the previous commit 12 years ago
ls.tests b47b3ce1bd randomconfig fixes 12 years ago
makedevs.device_table.txt 16635cc2e0 test, tcpsvd, tcpsvd: shrink 15 years ago
makedevs.tests 2dbbf823ef randconfig fixes 8 years ago
md5sum.tests b0056ea86d {md5,shaN}sum: make -c EMPTY fail 7 years ago
mdev.tests 7c443d110d randomconfig fixes 3 years ago
mkfs.minix.tests 0cfba07fcd fix testsuite false positive 11 years ago
mount.testroot 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
mount.tests 9df54deead testsuite/mount.tests: accomodate umount failure seen on 5.18.0 1 year ago
nl.tests c849e72c0b nl: ensure '-b n' option displays file content 3 years ago
od.tests 6d9427420b od: -l,I,L indeed depend on sizeof(long), fix this 11 months ago
parse.tests 9cf89cdf84 sysctl: fix file parsing, do not require -w for VAR=VAL 6 years ago
patch.tests 5fa5c4bde8 randomconfig fixes 3 years ago
pidof.tests 4c58f246d4 testsuite/pidof.tests: fix false positive take 2 5 years ago
printf.tests 7105e4afdd printf: allow 0 as a flag and allow multiple flags 2 years ago
readlink.tests 10ad622dc2 Spelling fixes in comments, documentation, tests and examples 7 years ago
realpath.tests 94eb1c4dc6 libbb: better coreutils compatibility for realpath 2 years ago
rev.tests 4357569fdc rev: correct output for long input lines 2 years ago
runtest bca4ea8b68 remove "local" bashism from a few scripts 7 years ago
rx.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
sed.tests f12fb1e409 sed: fix handling of escaped delimiters in s/// replacement 2 years ago
seq.tests 478b5ac2bc seq: fix yet another case of negative parameters not working 1 year ago
sha1sum.tests fb0c000567 testsuite/sha1sum.tests: fix false positive failure 1 year ago
sha256sum.tests e8ee86250d testsuite: add tests for {ms5,shaN}sum 13 years ago
sha3sum.tests 71a090f187 sha3: fix to conform to final SHA3 padding standard, add -a BITS option 7 years ago
sha512sum.tests e8ee86250d testsuite: add tests for {ms5,shaN}sum 13 years ago
sort.tests 5479c435fd sort: fix sort -s -u, closes 14871 1 year ago
start-stop-daemon.tests 73f28134fc start-stop-daemon: add -d DIR chdir option 5 months ago
sum.tests 1f27fa9838 testsuite: allow tests to work in paths containing spaces 6 years ago
tail.tests 0851d125c3 tail: fix -c +N. Closes 4111 12 years ago
tar.tests 8d718686f7 tar: fix testsuite 2 years ago
tar.utf8.tar.bz2 9655f95d0f tar: handle pax-encoded utf8 filenames and link names. Closes 9406 7 years ago
taskset.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
test.tests 98654b995b test: fix mishandling of "test '(' = '('" and similar 9 years ago
testing.sh 64bdd7566c od: add tests 11 months ago
time.tests 1cac258521 time: implement %% and \escapes in -f FMT 3 months ago
tr.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
tree.tests dc068abad5 testsuite/tree.tests: fix false positive failure 1 year ago
tsort.tests 4642cf5b38 tsort: new applet 2 years ago
umlwrapper.sh dcb2122e85 My mount testsuite. Not automatically run at the moment, need to figure out 18 years ago
uncompress.tests 251fc70e97 uncompress: fix buffer underrun by corrupted input 12 years ago
unexpand.tests 002be6e821 sysctl: do report EACCES errors on write 3 years ago
uniq.tests 0ef64bdb40 *: make GNU licensing statement forms more regular 13 years ago
unlzma.tests 04f052c56d unlzma: fix a case where we could read before beginning of buffer 2 years ago
unlzma_issue_1.lzma a1870f4807 unlzma: fix segfault on bad archive 6 years ago
unlzma_issue_2.lzma a1870f4807 unlzma: fix segfault on bad archive 6 years ago
unlzma_issue_3.lzma 04f052c56d unlzma: fix a case where we could read before beginning of buffer 2 years ago
unzip.tests 1476760600 bc: rename config options 5 years ago
unzip_bad_lzma_1.zip e09c426456 unlzma: fix another SEGV case 6 years ago
unzip_bad_lzma_2.zip a36986bb80 unlzma: close another SEGV possibility 6 years ago
uuencode.tests 328f27fe44 libbb: split decode_base64 off read_base64 12 years ago
xargs.tests 77a51a2709 randomconfig fixes 3 years ago
xxd.tests 0011a6bc20 xxd: add two more testcases 1 year ago

README

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 ...

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.