summaryrefslogtreecommitdiff
path: root/testsuite/runtest
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: fixes after randomconfig runDenys Vlasenko2011-08-111-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: show the number of failures after a test runDan Fandrich2010-08-291-2/+8
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite fixesChris Metcalf2010-04-021-4/+6
| | | | | Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: don't run grep NUL tests when we know the would failDenys Vlasenko2010-03-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cal: add a unicode testDenys Vlasenko2010-01-311-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix testing of busybox "applet" itselfDenys Vlasenko2010-01-161-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* minor tweaks in testsuiteDenys Vlasenko2009-07-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix mountpoint test to not prevemt mkfs_xxx from making image in any fileDenys Vlasenko2009-07-181-13/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* touch: implement -d --date (our own testsuite needs that)Denys Vlasenko2009-07-181-3/+8
| | | | | | | | | | | | | | | function old new delta static.uname_longopts - 137 +137 touch_main 231 360 +129 static.touch_longopts - 32 +32 validate_tm_time - 28 +28 packed_usage 26616 26624 +8 date_main 687 686 -1 static.longopts 162 - -162 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/1 up/down: 334/-163) Total: 171 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* seq: fix testsuite failuresDenys Vlasenko2009-06-151-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: uniformly use $ECHO with -n -eDenis Vlasenko2008-07-111-0/+13
|
* testsuite instrumentation fixes by ChristianDenis Vlasenko2008-05-151-9/+7
|
* runtest: the saga continues :(Denis Vlasenko2008-05-021-26/+11
|
* runtest: more cleanupsDenis Vlasenko2008-04-291-12/+22
|
* runtest: fix fallout from mucking with runtest :( [vda's fault]Denis Vlasenko2008-04-271-2/+2
|
* runtest: even more fixes from CristianDenis Vlasenko2008-04-271-13/+15
|
* runtest: further fixes from Cristian Ionescu-Idbohrn ↵Denis Vlasenko2008-04-271-10/+14
| | | | <cristian.ionescu-idbohrn AT axis.com>
* runtest: use numeric compare instead of string where appropriateDenis Vlasenko2008-04-261-5/+5
|
* testsuite/runtest: remove (last) bashismDenis Vlasenko2008-04-251-7/+10
| | | | | mkswap: fix selinux build
* testsuite: runtest enhancements by Cristian Ionescu-IdbohrnDenis Vlasenko2008-04-231-6/+15
|
* sort: -z outputs NUL terminated lines. Closes bug 1591.Denis Vlasenko2008-02-131-0/+3
|
* dd: fix a bug where we don't report write errorsDenis Vlasenko2007-12-021-51/+41
| | | | | | | | | | | 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
* testsuite: add tests for cut and grep;Denis Vlasenko2007-11-261-2/+8
| | | | | slight improvements to infrastructure
* which: fix testsuite failureDenis Vlasenko2007-11-251-0/+1
| | | | | | pidof: do not output empty line if nothing found testsuite: disable false positive
* tr: more of code shrink (getopt32-ification)Denis Vlasenko2007-11-131-40/+30
| | | | | | | | runtest: cleanup. Method of getting $applets was truly bizarre function old new delta tr_main 655 527 -128
* stop using bash'isms ('function')Denis Vlasenko2007-02-251-7/+17
| | | | runtest: do not depend on busybox.links
* make the testsuite a little less brittle:Bernhard Reutner-Fischer2006-05-251-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - '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.
* silence error if busybox.links doesnt exist and run tests that begin with "all_"Mike Frysinger2006-04-011-2/+2
|
* More test updates.Rob Landley2006-03-161-14/+17
|
* Putting together OPTIONFLAGS, sed needs the global flag to handle multipleRob Landley2006-02-161-1/+1
| | | | options.
* Fix the test suite so that individual *.tests files can be run alaRob Landley2005-11-071-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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...
* - support make check V=1 to run the checks in verbose modeBernhard Reutner-Fischer2005-10-061-2/+4
| | | | - pass verbose from runtest to testing.sh
* - remove dangling symlinks after the runsBernhard Reutner-Fischer2005-09-231-4/+7
| | | | | - check if the temporary directory containing the links exists rather than unconditionally creating it for every single applet.
* - introduce variable _BB_CONFIG_DEP to the new test harness.Bernhard Reutner-Fischer2005-09-231-5/+6
| | | | | | | | 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.
* Get "make check" ($srcdir) to work with the new testsuite.Rob Landley2005-09-201-2/+3
|
* The testsuite/links directory wasn't being created.Rob Landley2005-09-201-0/+1
|
* General cleanup of command line parsing to allow "busybox" to work as a prefix.Rob Landley2005-09-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | (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...
* Working on a new test harness. Moved the sort tests into it.Rob Landley2005-09-021-0/+10
|
* egor duda writes:Eric Andersen2004-10-081-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Kill off the old 'tests' stuff. Write a ton of new tests for theEric Andersen2004-04-061-28/+6
| | | | | | | 'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite 'runtest' script so it actually reports all failures and provides meaningful feedback. -Erik
* Fix the test suite script so it actually works and actually flagsEric Andersen2004-04-061-4/+13
| | | | | all errors as such. Make verbose mode exit on FAIL and provide a printout of the failed test run.
* * testsuite/runtest (run_applet_testcase): Return test case status, notMatt Kraai2002-03-271-2/+2
| | | | process ID.
* * testsuite/runtest (show_result): Change UPASS to XPASS.Matt Kraai2002-02-191-4/+2
| | | | (run_applet_testcase): Likewise.
* * testsuite/README: Change "UNSUPPORTED" tag to "FEATURE".Matt Kraai2002-02-191-2/+2
| | | | | | | | | | | | * 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.
* * testsuite/runtest (run_applet_testcase): Return UNTESTED instead ofMatt Kraai2002-02-191-2/+2
| | | | UNSUPPORTED for missing applets and features.
* * testsuite/README: Document -v option.Matt Kraai2002-01-021-10/+28
| | | | | | * testsuite/runtest: Handle -v option. (show_result): New. (run_applet_testcase): Call it.
* Merge test suite.Matt Kraai2001-10-301-0/+97