aboutsummaryrefslogtreecommitdiff
path: root/testsuite (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - add applet taskset to set/retrieve the CPU affinity of a processaldot2006-06-071-0/+17
| | | | | | | | | | | | | text data bss dec hex filename 584 0 0 584 248 taskset.o.gcc-2.95 509 0 0 509 1fd taskset.o.gcc-3.3 505 0 0 505 1f9 taskset.o.gcc-3.4 506 0 0 506 1fa taskset.o.gcc-4.0 498 0 0 498 1f2 taskset.o.gcc-4.1 495 0 0 495 1ef taskset.o.gcc-4.2-HEAD git-svn-id: svn://busybox.net/trunk/busybox@15315 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add testcase for grep bug (http://busybox.net/bugs/view.php?id=887)aldot2006-06-041-0/+2
| | | | | | | The patch for bug #887 seems to work for me.. git-svn-id: svn://busybox.net/trunk/busybox@15283 69ca8d6d-28ef-0310-b511-8ec308f3f277
* check for queueing dependancy dependancies typosvapier2006-05-261-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15176 69ca8d6d-28ef-0310-b511-8ec308f3f277
* queuing is spelled correctlyvapier2006-05-261-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15175 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make the testsuite a little less brittle:aldot2006-05-252-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - '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. git-svn-id: svn://busybox.net/trunk/busybox@15167 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make sure script is executablevapier2006-05-061-0/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15018 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add an "optional" line for FEATURE_READLINK_FOLLOW.landley2006-05-051-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15016 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New test from Natanael Copa.landley2006-05-051-0/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15015 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor tweaks: remove traces of old $COMMAND environment variable.landley2006-05-022-5/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14980 69ca8d6d-28ef-0310-b511-8ec308f3f277
* detect more obsolete headersvapier2006-04-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14964 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - print "Obsolet headers" instead of "Obsolete function usage" when checkingaldot2006-04-281-1/+1
| | | | | | | for obsolet includes. git-svn-id: svn://busybox.net/trunk/busybox@14955 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Re-wordwrap the new tests, and fix seq.c to pass them.landley2006-04-271-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14948 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add two regression tests for seq.aldot2006-04-271-0/+4
| | | | | | | "seq two arguments equal, arbitrary negative step" fails but should pass.. git-svn-id: svn://busybox.net/trunk/busybox@14947 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jean Wolter: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 git-svn-id: svn://busybox.net/trunk/busybox@14926 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - typo: s/derefernce/dereference/galdot2006-04-181-0/+1
| | | | | | | Thanks to P.J. Day. git-svn-id: svn://busybox.net/trunk/busybox@14914 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add typo s/deamon/daemon/galdot2006-04-181-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14911 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add grep for typo s/algorithic/algorithmic/galdot2006-04-181-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14908 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add a check for obsolete headersvapier2006-04-161-3/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14893 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add some tests for common typos and for obsolete functionsvapier2006-04-161-1/+47
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14888 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid spurious error message. (Technically applet order should be "SKIPPED"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.) git-svn-id: svn://busybox.net/trunk/busybox@14745 69ca8d6d-28ef-0310-b511-8ec308f3f277
* work outside of the srctreevapier2006-04-011-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14725 69ca8d6d-28ef-0310-b511-8ec308f3f277
* new test for source code sanityvapier2006-04-011-0/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14720 69ca8d6d-28ef-0310-b511-8ec308f3f277
* move source code tests out into a sep file rather than just ↵vapier2006-04-011-12/+0
| | | | | | disabling/breaking them git-svn-id: svn://busybox.net/trunk/busybox@14719 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove bogus "vapier2006-04-011-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14718 69ca8d6d-28ef-0310-b511-8ec308f3f277
* silence error if busybox.links doesnt exist and run tests that begin with "all_"vapier2006-04-011-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14717 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix "seq 1 1".landley2006-03-221-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14604 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make the new chroot environment creation infrastructure more flexible aboutlandley2006-03-181-2/+5
| | | | | | | non-absolute paths. git-svn-id: svn://busybox.net/trunk/busybox@14559 69ca8d6d-28ef-0310-b511-8ec308f3f277
* My mount testsuite. Not automatically run at the moment, need to figure outlandley2006-03-182-0/+203
| | | | | | | how to (optionally) supply User Mode Linux to runtests. git-svn-id: svn://busybox.net/trunk/busybox@14558 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More test updates.landley2006-03-162-26/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Redo test suite to be able to test more than one command at a time. Eliminatelandley2006-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...) git-svn-id: svn://busybox.net/trunk/busybox@14547 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I'm about to introduce tests that need to run as root (like mount.tests),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. git-svn-id: svn://busybox.net/trunk/busybox@14496 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When gnu fails this one we shouldn't let it _hang_...landley2006-03-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14395 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more sed tests. Passing these is a to-do item for 1.1.2 or 1.2, not alandley2006-03-011-9/+45
| | | | | | | 1.1.1 issue. git-svn-id: svn://busybox.net/trunk/busybox@14394 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add a test suite for seq.landley2006-02-241-0/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14253 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Lots of tests the fix to sed needs to pass...landley2006-02-231-0/+35
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14251 69ca8d6d-28ef-0310-b511-8ec308f3f277
* test to make sure applets are in alphabetical ordervapier2006-02-221-0/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14218 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Putting together OPTIONFLAGS, sed needs the global flag to handle multiplelandley2006-02-161-1/+1
| | | | | | | options. git-svn-id: svn://busybox.net/trunk/busybox@14074 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When setting an environment variable by piping something into grep, backquoteslandley2006-02-161-2/+2
| | | | | | | can be useful. Also tweak an if case to be more portable. git-svn-id: svn://busybox.net/trunk/busybox@14073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use LC_ALL, not LANG, for forcing Cvapier2006-01-252-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ignore whitespacetimr2006-01-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13586 69ca8d6d-28ef-0310-b511-8ec308f3f277
* LANG=C should helptimr2006-01-252-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13585 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Ok, I've converted the contents of the "testing/sed" directory into a 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 git-svn-id: svn://busybox.net/trunk/busybox@12202 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It was a bit out of date.landley2005-11-071-10/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the test suite so that individual *.tests files can be run alalandley2005-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... git-svn-id: svn://busybox.net/trunk/busybox@12176 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add a few basic tests for pidof(8)aldot2005-10-061-0/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11788 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - support make check V=1 to run the checks in verbose modealdot2005-10-062-7/+9
| | | | | | | - pass verbose from runtest to testing.sh git-svn-id: svn://busybox.net/trunk/busybox@11787 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cleanup option parsingvapier2005-09-241-9/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11607 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove dangling symlinks after the runsaldot2005-09-231-4/+7
| | | | | | | | - check if the temporary directory containing the links exists rather than unconditionally creating it for every single applet. git-svn-id: svn://busybox.net/trunk/busybox@11599 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - set executable bitaldot2005-09-231-0/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11597 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - introduce variable _BB_CONFIG_DEP to the new test harness.aldot2005-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. git-svn-id: svn://busybox.net/trunk/busybox@11596 69ca8d6d-28ef-0310-b511-8ec308f3f277