summaryrefslogtreecommitdiff
path: root/coreutils/test.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* introduce and use bb_basename()Denis Vlasenko2007-06-301-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta bb_basename - 26 +26 sv_main 1226 1225 -1 passwd_main 1985 1983 -2 showdirs 482 478 -4 sendCgi 1811 1807 -4 make_device 1354 1350 -4 handleIncoming 2443 2439 -4 func_name 82 78 -4 service_name 2292 2285 -7 main 909 901 -8 cmp_main 555 547 -8 test_main 434 422 -12 act 228 216 -12 find_pair 180 164 -16 rmmod_main 298 280 -18 find_pid_by_name 156 134 -22 modprobe_main 1606 1576 -30 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/16 up/down: 26/-156) Total: -130 bytes text data bss dec hex filename 734933 3028 14400 752361 b7ae9 busybox_old 734801 3028 14400 752229 b7a65 busybox_unstripped
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-2/+1
| | | | <wharms@bfs.de>)
* test: suppress gcc warningDenis Vlasenko2007-06-251-1/+1
| | | | | telnetd: do not use suferfluous static variable.
* test: shrink a bitDenis Vlasenko2007-06-211-17/+6
| | | | | | | | | | | | function old new delta test_main 5 434 +429 bb_test 473 - -473 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 429/-473) Total: -44 bytes text data bss dec hex filename 735073 3028 14408 752509 b7b7d busybox_old 735029 3028 14408 752465 b7b51 busybox_unstripped
* - fix test -f ./existsBernhard Reutner-Fischer2007-06-151-3/+8
| | | | Note that test -f ./exists -a "-u" = "-u" doesn't work and did not work even before r18282, so this is a breakage not caused by me..
* - fix testing primary expressions like '"-u" = "-u"'Bernhard Reutner-Fischer2007-06-121-2/+2
|
* test: fix thinko in previous commitDenis Vlasenko2007-06-081-1/+1
|
* test: recognize /path/to/[ case tooDenis Vlasenko2007-06-081-14/+19
|
* - fix wrong not operator which was essentially ignored. got introduced in r18282Bernhard Reutner-Fischer2007-06-061-1/+1
| | | | http://busybox.net/lists/busybox/2007-June/027652.html
* test: close bug 1371Denis Vlasenko2007-05-271-5/+10
| | | | | test: plug a memory leak
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* test: code size saving, no logic changesDenis Vlasenko2007-05-011-87/+90
| | | | | | | | | | | | | | | ps: fix warning, make a bit smaller kill -l: make smaller & know much more signals function old new delta get_signum 121 153 +32 kill_main 826 843 +17 get_signame 44 36 -8 signals 252 224 -28 .rodata 131955 131923 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/3 up/down: 49/-68) Total: -19 bytes
* audit small applets and mark some of them as NOFORK.Denis Vlasenko2007-04-101-4/+3
| | | | | Put big scary warnings in relevant places.
* test: comment out unused codeDenis Vlasenko2007-04-021-0/+4
| | | | | udpsvd: fake it compile tcpsvd: more optimal memorizing of IP's for -C
* - debloat test. untested.Bernhard Reutner-Fischer2007-03-301-111/+116
| | | | | | | | | | text data bss dec hex filename 3154 0 172 3326 cfe test.o.oorig 2683 0 172 2855 b27 test.o This applet should be rewritten not to use such odd lexer semantics. It duplicates code from all over the place (see XXX). brrr
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko2006-12-211-4/+6
|
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-8/+8
|
* "Jordan Crouse" <jordan.crouse@amd.com> says:Rob Landley2006-08-221-3/+5
| | | | | | | | | | The following patch makes coreutils/test.c act fail gracefully if getgroups() returns a -1.  This fixes a problem on the One Laptop Per Child ROM image whereby we were getting odd Memory exhausted messages for '[' and 'test'. Found by Mitch Bradley <wmb@firmworks.com> (Tweaked by Rob: no need to initialize a static to NULL, or realloc something that's only allocated when it's NULL.)
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-1/+1
|
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-5/+2
| | | | that and callers wind up typecasting it back.
* made "test" an ash built-in.Paul Fox2006-06-081-47/+76
| | | | | | | | | | | | | | | | | | | moved the contents of libbb/bb_echo.c back into coreutils/echo.c, which is a more reasonable place for them than libbb. this forces anyone who wants echo and test to be builtin to ash to also have them available as applets. their cost is very small, and the number of people who wouldn't want them as applets is also very small. added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL, which conflicts with their use. thanks to nathanael copa for debugging help. some string size optimization in test.c may have been lost with this commit, but this is a good new baseline.
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-15/+5
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* just whitespaceTim Riker2006-01-251-9/+9
|
* In Bug 208, bernhardf writes:Mike Frysinger2005-04-161-2/+2
| | | | | | On machines with only ANSI compliant compilers, not explitily delcaring an empty parameter list 'void' causes failure.
* add aliases == and [[ for = and [ to support more bash scriptsMike Frysinger2005-04-141-1/+7
|
* Patch from Bastian Blank to add 64 bit support to the test command.Glenn L McGrath2004-08-111-14/+28
| | | | Example of broken usage: ./busybox test 2147483648 -gt 2147483648
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+2
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* last_patch89 from vodz:Eric Andersen2003-06-201-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
* Major coreutils update.Manuel Novoa III2003-03-191-6/+6
|
* Run through indent, fix commentsGlenn L McGrath2002-08-231-135/+103
|
* Scrub up some function prototypes.Eric Andersen2001-10-181-21/+21
| | | | -Erik
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-3/+0
| | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
* Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>Eric Andersen2001-03-191-2/+2
|
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-5/+5
|
* Improvements from Vladimir N. Oleynik.Matt Kraai2000-12-301-2/+2
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-5/+5
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai2000-09-131-3/+1
| | | | segfaulting or handling errors the same way themselves.
* Some #include updates.Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Centralize handling of --help.Matt Kraai2000-07-191-3/+0
|
* Extract usage information into a separate file.Matt Kraai2000-07-161-9/+0
|
* Don't use strings directly in calls to usage(). This is in preparationMatt Kraai2000-07-141-9/+11
| | | | for their extraction to a separate file.
* More cleanups.Eric Andersen2000-07-141-2/+2
| | | | -Erik
* Use global applet_name instead of local versions.Matt Kraai2000-07-121-1/+1
|
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-1/+1
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* A number of additional fixed from Pavel Roskin, note some more bugs in theEric Andersen2000-06-021-6/+6
| | | | | | TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox, which is now included. -Erik