path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* - add two regression tests for seq.Gravatar Bernhard Reutner-Fischer2006-04-271-0/+4
| | | | "seq two arguments equal, arbitrary negative step" fails but should pass..
* Patch from Jean Wolter:Gravatar Rob Landley2006-04-191-7/+22
| | | | | | | | | | | | | | | it looks like the introduced support for character classes and equivalence classes is not correct. The attached patch tries to fix some symptoms and tries to make tr behave like gnu tr for the added test cases. The patch  - removes if clauses with side effects  - fixes handling of buffer pointer (strcat added characters to the    buffer without increasing the buffer pointer)  - re-arranges character classes to match ASCII order regards, Jean
* - typo: s/derefernce/dereference/gGravatar Bernhard Reutner-Fischer2006-04-181-0/+1
| | | | Thanks to P.J. Day.
* - add typo s/deamon/daemon/gGravatar Bernhard Reutner-Fischer2006-04-181-0/+1
* - add grep for typo s/algorithic/algorithmic/gGravatar Bernhard Reutner-Fischer2006-04-181-0/+1
* add a check for obsolete headersGravatar Mike Frysinger2006-04-161-3/+13
* add some tests for common typos and for obsolete functionsGravatar Mike Frysinger2006-04-161-1/+47
* Avoid spurious error message. (Technically applet order should be "SKIPPED"Gravatar Rob Landley2006-04-041-1/+1
| | | | | when you move the testsuite directory outside of busybox and run it, but as long as the test doesn't fail we're ok.)
* work outside of the srctreeGravatar Mike Frysinger2006-04-011-1/+2
* new test for source code sanityGravatar Mike Frysinger2006-04-011-0/+17
* move source code tests out into a sep file rather than just ↵Gravatar Mike Frysinger2006-04-011-12/+0
| | | | disabling/breaking them
* remove bogus "Gravatar Mike Frysinger2006-04-011-2/+2
* silence error if busybox.links doesnt exist and run tests that begin with "all_"Gravatar Mike Frysinger2006-04-011-2/+2
* Fix "seq 1 1".Gravatar Rob Landley2006-03-221-0/+1
* Make the new chroot environment creation infrastructure more flexible aboutGravatar Rob Landley2006-03-181-2/+5
| | | | non-absolute paths.
* My mount testsuite. Not automatically run at the moment, need to figure outGravatar Rob Landley2006-03-182-0/+203
| | | | how to (optionally) supply User Mode Linux to runtests.
* More test updates.Gravatar Rob Landley2006-03-162-26/+30
* Redo test suite to be able to test more than one command at a time. EliminateGravatar Rob Landley2006-03-168-174/+189
| | | | | | | $COMMAND environment variable, instead put full command line (including command to run) in second argument. Modify $PATH to have test versions of commands at start of path. (Also more infrastructure for testing as root, work in progress...)
* I'm about to introduce tests that need to run as root (like mount.tests),Gravatar Rob Landley2006-03-091-2/+29
| | | | | | meaning we want to run them in a chroot environment. To help with this, I worked out a utility function that makes it really easy to set up a chroot environment.
* When gnu fails this one we shouldn't let it _hang_...Gravatar Rob Landley2006-03-011-1/+1
* Yet more sed tests. Passing these is a to-do item for 1.1.2 or 1.2, not aGravatar Rob Landley2006-03-011-9/+45
| | | | 1.1.1 issue.
* Add a test suite for seq.Gravatar Rob Landley2006-02-241-0/+31
* Lots of tests the fix to sed needs to pass...Gravatar Rob Landley2006-02-231-0/+35
* test to make sure applets are in alphabetical orderGravatar Mike Frysinger2006-02-221-0/+12
* Putting together OPTIONFLAGS, sed needs the global flag to handle multipleGravatar Rob Landley2006-02-161-1/+1
| | | | options.
* When setting an environment variable by piping something into grep, backquotesGravatar Rob Landley2006-02-161-2/+2
| | | | can be useful. Also tweak an if case to be more portable.
* use LC_ALL, not LANG, for forcing CGravatar Mike Frysinger2006-01-252-2/+2
* ignore whitespaceGravatar Tim Riker2006-01-251-1/+1
* LANG=C should helpGravatar Tim Riker2006-01-252-2/+2
* Ok, I've converted the contents of the "testing/sed" directory into a Gravatar Rob Landley2005-11-1023-276/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sed.tests file. My brain hurts now. (Lots of boggling at sed minutiae and corner cases and going "why is gnu giving that output". The behavior of N and n with regard to EOF are only understandable if you read the Open Group spec, not if you read the sed info page, by the way...) Some of the existing sed tests are just nuts. For example, sed-next-line is testing for our behavior (which is wrong), and would fail if run against gnu sed (which was getting it right. Again, this was a spec-boggling moment, with much head scratching. I've got to add a debug mode where the stuff output by the p command is a different color from the stuff output by normal end of script printing (when not suppressed by -n).) As for sed-handles-unsatisifed-backrefs: what is this test trying to _do_? I ran it against gnu sed and got an error message, and this behavior sounds perfectly reasonable. (It _is_ an unsatisfied backref.) The fact we currently ignore this case (and treat \1 as an empty string) isn't really behavior we should have a test depend on for success. The remaining one is sed-aic-commands, which is long and complicated. I'm trying to figure out if I should chop this into a number of smaller tests, or if having one big "does-many-things" test is a good idea. In any case, the _next_ step is to go through the Open Group standard and make tests for every case not yet covered. (And there are plenty. There are few comments in the file already.) Plus I have notes about corner cases from development that I need to collate and put into here. This file is maybe the first 1/3 of a truly comprehensive sed test. Rob
* It was a bit out of date.Gravatar Rob Landley2005-11-071-10/+18
* Fix the test suite so that individual *.tests files can be run alaGravatar Rob Landley2005-11-078-71/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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...
* - add a few basic tests for pidof(8)Gravatar Bernhard Reutner-Fischer2005-10-061-0/+29
* - support make check V=1 to run the checks in verbose modeGravatar Bernhard Reutner-Fischer2005-10-062-7/+9
| | | | - pass verbose from runtest to testing.sh
* cleanup option parsingGravatar Mike Frysinger2005-09-241-9/+30
* - remove dangling symlinks after the runsGravatar Bernhard Reutner-Fischer2005-09-231-4/+7
| | | | | - check if the temporary directory containing the links exists rather than unconditionally creating it for every single applet.
* - set executable bitGravatar Bernhard Reutner-Fischer2005-09-231-0/+0
* - introduce variable _BB_CONFIG_DEP to the new test harness.Gravatar Bernhard Reutner-Fischer2005-09-2313-22/+137
| | | | | | | | 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.Gravatar Rob Landley2005-09-201-2/+3
* The testsuite/links directory wasn't being created.Gravatar Rob Landley2005-09-201-0/+1
* Test full susv3 spec for uniq (except internationalization).Gravatar Rob Landley2005-09-141-13/+48
| | | | | I think this covers it. We fail two corner cases, both of which are explicit violations of the spec, and both of which gnu passes.
* Don't comment warnings. Don't put #warnings about warnings. _FIX_ warnings.Gravatar Rob Landley2005-09-071-0/+36
| | | | | | | | | This fixes the warning, and makes the binary smaller out of sheer pique. (Yes, since Manuel did this one it's nice tight code that took several attempts to shrink, but I was ticked.) Add the start of a test for uniq; this is about the first 1/3 of the tests we need for full susv3 coverage of uniq.
* Regarding 11330: when you fix a bug that the testsuite doesn't catch, addGravatar Rob Landley2005-09-051-0/+2
| | | | a test case to the test suite.
* Remove trailing crud from busybox.tests. (Sleep deprivation strikes again...)Gravatar Rob Landley2005-09-041-75/+0
* General cleanup of command line parsing to allow "busybox" to work as a prefix.Gravatar Rob Landley2005-09-043-4/+127
| | | | | | | | | | | | | | | | | | | | | | | | | (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...
* This goes along with the new testsuite code...Gravatar Rob Landley2005-09-023-12/+0
* Working on a new test harness. Moved the sort tests into it.Gravatar Rob Landley2005-09-023-0/+141
* Patch from Colin Watson (mangled slightly by Rob Landley):Gravatar Rob Landley2005-05-181-0/+14
| | | | | | | | | | This patch implements the 'T' command in sed. This is a GNU extension, but one of the udev hotplug scripts uses it, so I need it in busybox anyway. Includes a test; 'svn add testsuite/sed/sed-branch-conditional-inverted' after applying.
* egor duda writes:Gravatar Eric Andersen2004-10-0819-44/+64
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Add two fundamental tests for copying directoriesGravatar Glenn L McGrath2004-04-182-0/+9