summaryrefslogtreecommitdiff
path: root/testsuite
AgeCommit message (Collapse)Author
2006-09-02tar: tar xf foo.tar dir/dir did not extract all subdirs.Denis Vlasenko
Added testsuite entry for this
2006-08-28- pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer
Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
2006-07-26Rich Filker spotted that sed -e 's/xxx/[/' didn't work right. Did a smallerRob Landley
fix than his, and shrank the code a bit on top of that so the net size is smaller, and added a test to the test suite for this case. Plus I cleaned up the #includes and removed unnecessary "const"s while I was there.
2006-06-30Revert taskset for 1.2.0. It emits a warning, breaks building under RH9,Rob Landley
and nobody seemed interested in fixing it despite repeated complaints. I'll worry about it in the 1.3 timeframe...
2006-06-24Add a test from Glenn.Rob Landley
2006-06-15Fix bug found by Joey Hess and forwarded by Bastian Bunk. Add Joey Hess'sRob Landley
test case to the testsuite, plus another one that would have been broken by the first attempt at a fix.
2006-06-15Don't do workarounds for broken shells. Busybox is about to grow a shell thatRob Landley
we can run our own testsuite under, and I want it to handle the full range of strange and peverted behavior you can find in real world shell scripts. In the meantime, I'll just say #!/bin/bash in places that may care.
2006-06-07- add applet taskset to set/retrieve the CPU affinity of a processBernhard Reutner-Fischer
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
2006-06-04- add testcase for grep bug (http://busybox.net/bugs/view.php?id=887)Bernhard Reutner-Fischer
The patch for bug #887 seems to work for me..
2006-05-26check for queueing dependancy dependancies typosMike Frysinger
2006-05-26queuing is spelled correctlyMike Frysinger
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-05-06make sure script is executableMike Frysinger
2006-05-05Add an "optional" line for FEATURE_READLINK_FOLLOW.Rob Landley
2006-05-05New test from Natanael Copa.Rob Landley
2006-05-02Minor tweaks: remove traces of old $COMMAND environment variable.Rob Landley
2006-04-29detect more obsolete headersMike Frysinger
2006-04-28- print "Obsolet headers" instead of "Obsolete function usage" when checkingBernhard Reutner-Fischer
for obsolet includes.
2006-04-27Re-wordwrap the new tests, and fix seq.c to pass them.Rob Landley
2006-04-27- add two regression tests for seq.Bernhard Reutner-Fischer
"seq two arguments equal, arbitrary negative step" fails but should pass..
2006-04-19Patch from Jean Wolter:Rob Landley
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
2006-04-18- typo: s/derefernce/dereference/gBernhard Reutner-Fischer
Thanks to P.J. Day.
2006-04-18- add typo s/deamon/daemon/gBernhard Reutner-Fischer
2006-04-18- add grep for typo s/algorithic/algorithmic/gBernhard Reutner-Fischer
2006-04-16add a check for obsolete headersMike Frysinger
2006-04-16add some tests for common typos and for obsolete functionsMike Frysinger
2006-04-04Avoid spurious error message. (Technically applet order should be "SKIPPED"Rob Landley
when you move the testsuite directory outside of busybox and run it, but as long as the test doesn't fail we're ok.)
2006-04-01work outside of the srctreeMike Frysinger
2006-04-01new test for source code sanityMike Frysinger
2006-04-01move source code tests out into a sep file rather than just ↵Mike Frysinger
disabling/breaking them
2006-04-01remove bogus "Mike Frysinger
2006-04-01silence error if busybox.links doesnt exist and run tests that begin with "all_"Mike Frysinger
2006-03-22Fix "seq 1 1".Rob Landley
2006-03-18Make the new chroot environment creation infrastructure more flexible aboutRob Landley
non-absolute paths.
2006-03-18My mount testsuite. Not automatically run at the moment, need to figure outRob Landley
how to (optionally) supply User Mode Linux to runtests.
2006-03-16More test updates.Rob Landley
2006-03-16Redo test suite to be able to test more than one command at a time. EliminateRob Landley
$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...)
2006-03-09I'm about to introduce tests that need to run as root (like mount.tests),Rob Landley
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.
2006-03-01When gnu fails this one we shouldn't let it _hang_...Rob Landley
2006-03-01Yet more sed tests. Passing these is a to-do item for 1.1.2 or 1.2, not aRob Landley
1.1.1 issue.
2006-02-24Add a test suite for seq.Rob Landley
2006-02-23Lots of tests the fix to sed needs to pass...Rob Landley
2006-02-22test to make sure applets are in alphabetical orderMike Frysinger
2006-02-16Putting together OPTIONFLAGS, sed needs the global flag to handle multipleRob Landley
options.
2006-02-16When setting an environment variable by piping something into grep, backquotesRob Landley
can be useful. Also tweak an if case to be more portable.
2006-01-25use LC_ALL, not LANG, for forcing CMike Frysinger
2006-01-25ignore whitespaceTim Riker
2006-01-25LANG=C should helpTim Riker
2005-11-10Ok, I've converted the contents of the "testing/sed" directory into a Rob Landley
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
2005-11-07It was a bit out of date.Rob Landley