aboutsummaryrefslogtreecommitdiff
path: root/coreutils/test.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into mergeRon Yorston2012-03-221-0/+23
|\
| * move help text from include/usage.src.h to coreutils/*.cPere Orga2011-03-311-0/+23
| | | | | | | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '19311bfa7b8e8c6effa9c375de9b0eb4338bee12' into mergeRon Yorston2012-03-221-1/+1
|\| | | | | | | | | | | Conflicts: coreutils/ls.c shell/ash.c
| * printenv: fix environ == NULL segfaultDenys Vlasenko2011-03-081-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | win32: test: make -r/-w workNguyễn Thái Ngọc Duy2011-02-091-0/+4
| | | | | | | | | | | | | | | | R_OK and W_OK on Windows are defined as 4 and 2 respectively. The stat() reimplementation uses S_IREAD and S_IWRITE, which are completely different value. Redefine R_OK and W_OK
* | Merge remote-tracking branch 'upstream/master'Nguyễn Thái Ngọc Duy2011-01-041-4/+7
|\|
| * test: add examples when "%s: unknown operand" happensDenys Vlasenko2010-12-201-1/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * whitespace cleanupDenys Vlasenko2010-10-291-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-1/+1
|\|
| * *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | | | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-0/+20
|\|
| * remove defconfig. Now "make defconfig" simply uses defaults from Config.inDenys Vlasenko2010-06-061-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * partially migrate coreutils to Config.src and Kbuild.srcDenys Vlasenko2010-06-041-0/+20
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-1/+1
|\|
| * test: "" is not a valid number. Closes bug 1915Denys Vlasenko2010-06-031-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | win32: test: support .com executablesNguyễn Thái Ngọc Duy2010-09-141-6/+11
| |
* | win32: test: teach -x about .exe filesNguyễn Thái Ngọc Duy2010-09-101-0/+18
|/
* test: use index_in_stringsDenys Vlasenko2009-09-121-60/+96
| | | | | | | | | | | | | | | function old new delta ops_texts - 124 +124 ops_table - 80 +80 display_process_list 1447 1448 +1 binop 525 523 -2 static.no_op 6 2 -4 check_operator 71 63 -8 ops 240 - -240 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/3 up/down: 205/-254) Total: -49 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test: fix "test !" and "test abc -a !". closes bug 465Denys Vlasenko2009-07-171-3/+10
| | | | | | | function old new delta nexpr 826 840 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix . builtinDenys Vlasenko2009-06-141-2/+44
| | | | | | Also, move [[ ]] comment to test.c and expand it Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test, tcpsvd, tcpsvd: shrinkDenys Vlasenko2009-06-131-19/+33
| | | | | | | | | | | | function old new delta nexpr 825 826 +1 tcpudpsvd_main 1830 1822 -8 test_main 257 247 -10 binop 584 525 -59 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 1/-77) Total: -76 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* - update my name. No obj-code changes ;)Bernhard Reutner-Fischer2008-09-251-1/+1
|
* test: fix parser to prefer binop over unop, as coreutils does.Denis Vlasenko2008-07-191-60/+193
| | | | | | | | | | | | | | | remove bogus workaround in main(). rename atrocious variables/functions. much expand testsuite. libbb: fix --help to not affect "test --help" function old new delta run_applet_no_and_exit 421 440 +19 nexpr 817 825 +8 static.no_op - 6 +6 test_main 397 257 -140 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/1 up/down: 104/-211) Total: -107 bytes
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* more -Wall warning fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-131-1/+1
| | | | | | | | | | | | | This time it resulted in small code changes: function old new delta nexpr 820 828 +8 tail_main 1200 1202 +2 wrapf 166 167 +1 parse_mount_options 227 209 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 11/-18) Total: -7 bytes
* *: remove remaining instances of ".data" hackDenis Vlasenko2008-04-221-7/+6
|
* *: add optimization barrier to all "G trick" locationsDenis Vlasenko2008-02-271-0/+1
|
* test: fix mishandling of 'test ! arg1 op arg2 more args'; add testsuiteDenis Vlasenko2008-02-091-22/+27
|
* test: stop using lots of bss.Denis Vlasenko2007-11-301-28/+64
| | | | | | | | | | | | | | | | | | | | | | | function old new delta test_main 425 456 +31 t_lex 69 73 +4 syntax 100 104 +4 ptr_to_statics 8 12 +4 t_wp_op 4 - -4 t_wp 4 - -4 ngroups 4 - -4 group_array 4 - -4 binop 590 585 -5 oexpr 104 97 -7 aexpr 101 94 -7 nexpr 831 820 -11 leaving 156 - -156 ------------------------------------------------------------------------------ (add/remove: 0/5 grow/shrink: 4/4 up/down: 43/-202) Total: -159 bytes text data bss dec hex filename 775098 929 9084 785111 bfad7 busybox_old 775107 933 8908 784948 bfa34 busybox_unstripped
* - remove most of the forward declarations. No obj-code changes.Bernhard Reutner-Fischer2007-11-161-244/+241
|
* test: correct confusing placement of "const"Denis Vlasenko2007-09-211-1/+1
|
* 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.)