aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runtest
AgeCommit message (Collapse)Author
2008-04-25testsuite/runtest: remove (last) bashismDenis Vlasenko
mkswap: fix selinux build
2008-04-23testsuite: runtest enhancements by Cristian Ionescu-IdbohrnDenis Vlasenko
2008-02-13sort: -z outputs NUL terminated lines. Closes bug 1591.Denis Vlasenko
2007-12-02dd: fix a bug where we don't report write errorsDenis Vlasenko
testsuite: small cleanup full_write_or_warn 38 40 +2 write_and_stats 66 67 +1 dd_main 1358 1335 -23 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 3/-23) Total: -20 bytes
2007-11-26testsuite: add tests for cut and grep;Denis Vlasenko
slight improvements to infrastructure
2007-11-25which: fix testsuite failureDenis Vlasenko
pidof: do not output empty line if nothing found testsuite: disable false positive
2007-11-13tr: more of code shrink (getopt32-ification)Denis Vlasenko
runtest: cleanup. Method of getting $applets was truly bizarre function old new delta tr_main 655 527 -128
2007-02-25stop using bash'isms ('function')Denis Vlasenko
runtest: do not depend on busybox.links
2006-05-25make the testsuite a little less brittle:Bernhard Reutner-Fischer
- 'function fn_name\n{' breaks on older FreeBSD default shells, so use the more widely supported 'fn_name () {'. This needs more fixing.. - test for integers ought to use the proper operators - test for strings ought to use quoting of the strings to be fair to strange implementations of test(1) - make sure not to ignore return-codes != 0 from commands; Some shells exit immediately on this (much like explicitely requesting set -e in e.g. bash) TODO: *) Some older shells do not allow a space after the test-condition in an "if" statement. This doesn't work: if [ $status -ne 0 ] ; then as opposed to this: if [ $status -ne 0 ]; then or this if [ $status -ne 0 ] then *) strict spacing between commands. In some shells you have to say: foo ; bar ; baz The affected shells barf on stuff like ommitting the space, so this doesn't work: foo; bar ;baz *) $() vs. `` The former isn't really portable as opposed to the latter. *) fix frong assumption that the testsuite is run from the source-dir. This is a complete misconception and renders the testsuite completely useless. That said, i note that IMO a test-harness ought to do it's best to work in a wide variety of environments, everything else defeats it's purpose.
2006-04-01silence error if busybox.links doesnt exist and run tests that begin with "all_"Mike Frysinger
2006-03-16More test updates.Rob Landley
2006-02-16Putting together OPTIONFLAGS, sed needs the global flag to handle multipleRob Landley
options.
2005-11-07Fix the test suite so that individual *.tests files can be run alaRob Landley
COMMAND=sort ./sort.tests So we can compare against non-busybox versions, and possibly our testsuite will be useful to somebody like the Linux Test Project someday. Redid testing.sh to add new command, "optional", to skip tests that require certain features. (use: `optional FEATURE_SORT_BIG`, or `optional ""` to stop skipping.) Note that optional is a NOP if the environment variable "OPTIONFLAGS" is blank, so although we're marking up the tests with busybox specific knowledge, it doesn't interfere with running the tests without busybox. Moved setting the "OPTIONFLAGS" environment variable to runtest. Philosophy: busybox-specific stuff belongs in runtest; both testing.sh and the tests themselves should be as busybox-agnostic as possible. Moved detecting that a command isn't in busybox at all (hence skipping the entire command.tests file) to runtests. Rationale: optional can't currently test for more than one feature at a time, so if we clear anything with optional "" we might perform tests we don't want to. Marked up busybox.tests to know which tests need CAT enabled. Fixed up other tests to be happy with new notation. I suspect egrep should be appended to grep. It's a sub-feature, really...
2005-10-06- support make check V=1 to run the checks in verbose modeBernhard Reutner-Fischer
- pass verbose from runtest to testing.sh
2005-09-23- remove dangling symlinks after the runsBernhard Reutner-Fischer
- check if the temporary directory containing the links exists rather than unconditionally creating it for every single applet.
2005-09-23- introduce variable _BB_CONFIG_DEP to the new test harness.Bernhard Reutner-Fischer
This is used to see if given tests should be run (are available) or not. Print "UNTESTED: descr" if the applet or feature is not available. - add _BB_CONFIG_DEP to existing new.tests - move old grep test to new test infrastructure and add a few more test for grep.
2005-09-20Get "make check" ($srcdir) to work with the new testsuite.Rob Landley
2005-09-20The testsuite/links directory wasn't being created.Rob Landley
2005-09-04General cleanup of command line parsing to allow "busybox" to work as a prefix.Rob Landley
(I.E. any argv[0] that starts with "busybox" winds up in busybox_main().) Added testing/busybox.tests which tests the following permutations: ./busybox ./busybox-suffix ./busybox cat ./busybox-suffix cat ./busybox --help ./busybox-suffix --help ./busybox --help cat ./busybox-suffix --help cat ./busybox --help unknown ./busybox-suffix --help unknown ./unknown Also repair the test suite so ./runtest calls the ".tests" scripts properly. Note: you can now go "busybox busybox busbox ls -l" and it'll take it. The new code is pretty generic. I can block that if anybody can come up with a good reason to...
2005-09-02Working on a new test harness. Moved the sort tests into it.Rob Landley
2004-10-08egor duda writes:Eric Andersen
Hi! I've created a patch to busybox' build system to allow building it in separate tree in a manner similar to kbuild from kernel version 2.6. That is, one runs command like 'make O=/build/some/where/for/specific/target/and/options' and everything is built in this exact directory, provided that it exists. I understand that applyingc such invasive changes during 'release candidates' stage of development is at best unwise. So, i'm currently asking for comments about this patch, starting from whether such thing is needed at all to whether it coded properly. 'make check' should work now, and one make creates Makefile in build directory, so one can run 'make' in build directory after that. One possible caveat is that if we build in some directory other than source one, the source directory should be 'distclean'ed first. egor
2004-04-06Kill off the old 'tests' stuff. Write a ton of new tests for theEric Andersen
'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite 'runtest' script so it actually reports all failures and provides meaningful feedback. -Erik
2004-04-06Fix the test suite script so it actually works and actually flagsEric Andersen
all errors as such. Make verbose mode exit on FAIL and provide a printout of the failed test run.
2002-03-27* testsuite/runtest (run_applet_testcase): Return test case status, notMatt Kraai
process ID.
2002-02-19* testsuite/runtest (show_result): Change UPASS to XPASS.Matt Kraai
(run_applet_testcase): Likewise.
2002-02-19* testsuite/README: Change "UNSUPPORTED" tag to "FEATURE".Matt Kraai
* testsuite/runtest (run_applet_testcase): Likewise. * testsuite/cp/cp-preserves-hard-links: Likewise. * testsuite/grep/egrep-supports-extended-regexps: Likewise. * testsuite/grep/grep-is-also-egrep: Likewise. * testsuite/tar/tar-archives-multiple-files: Likewise. * testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list: Likewise. * testsuite/tar/tar-handles-exclude-and-extract-lists: Likewise. * testsuite/tar/tar-handles-nested-exclude: Likewise.
2002-02-19* testsuite/runtest (run_applet_testcase): Return UNTESTED instead ofMatt Kraai
UNSUPPORTED for missing applets and features.
2002-01-02* testsuite/README: Document -v option.Matt Kraai
* testsuite/runtest: Handle -v option. (show_result): New. (run_applet_testcase): Call it.
2001-10-30Merge test suite.Matt Kraai