aboutsummaryrefslogtreecommitdiff
path: root/coreutils/test.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'busybox' into mergeRon Yorston2017-07-241-7/+7
|\
| * config: deindent all help textsDenys Vlasenko2017-07-211-6/+6
| | | | | | | | | | | | Those two spaces after tab have no effect, and always a nuisance when editing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Update menuconfig items with approximate applet sizesDenys Vlasenko2017-07-181-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2017-07-181-26/+7
|\|
| * libbb: new function bb_getgroups() - allocating wrapper around getgroups()Denys Vlasenko2017-07-041-26/+7
| | | | | | | | | | | | | | | | | | | | function old new delta bb_getgroups - 111 +111 nexpr 843 757 -86 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/1 up/down: 111/-86) Total: 25 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2017-02-081-9/+8
|\|
| * shells: make hush test optional, rename ASH_BUILTIN_foo -> ASH_fooDenys Vlasenko2017-01-101-9/+8
| | | | | | | | | | | | | | This makes hash and ash more symmetrical wrt config menu and config options. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2017-01-041-0/+2
|\|
| * Make it possible to select "sh" and "bash" aliases without selecting ash or hushDenys Vlasenko2016-12-231-0/+2
| | | | | | | | | | | | | | The same can be done for msh, but we are probably better off just deleting it in a next versio or two. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2016-11-291-7/+26
|\|
| * test: make [ and [[ forms individually selectableDenys Vlasenko2016-11-231-5/+21
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Convert all coreutils/* applets to "new style" applet definitionsDenys Vlasenko2016-11-231-5/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch busybox (up to "ash: comment out free(p) just before...")Ron Yorston2016-10-191-0/+1
|\|
| * test: fix compile error in last commitDenys Vlasenko2016-10-021-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * test: memory leak: free group id listDenys Vlasenko2016-10-021-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeFRPRon Yorston2015-05-181-8/+3
|\|
| * special-case {true,false,test} --helpDenys Vlasenko2015-04-211-8/+3
| | | | | | | | | | | | | | | | | | | | This also removes their help texts. function old new delta run_applet_no_and_exit 442 452 +10 packed_usage 30713 30625 -88 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | test: fix access check bug; tweak fake file modeRon Yorston2015-03-241-4/+0
| | | | | | | | | | | | | | | | | | | | | | Changing the fake uid from 0 to 1000 uncovered a problem with file access checks in test. Previously the tests were short-circuited because it thought we were root. With a non-root user the tests were performed, but the mode bits had been redefined for WIN32. Also adjust the fake file mode returned by stat so that the user and group modes are identical. Other users have the same modes as user but without write permission.
* | Merge branch 'busybox' into mergeRon Yorston2014-10-061-34/+35
|\|
| * test: fix mishandling of "test '(' = '('" and similarDenys Vlasenko2014-07-011-34/+35
| | | | | | | | | | | | | | function old new delta test_main 246 350 +104 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | MinGW: rename execable -> executableRon Yorston2014-05-061-1/+1
| |
* | Merge branch 'busybox' into mergeRon Yorston2014-05-061-1/+1
|\| | | | | | | | | | | | | Conflicts: debianutils/which.c editors/vi.c libbb/executable.c
* | Merge branch 'busybox' into mergeRon Yorston2013-02-071-1/+1
|\|
| * whitespace cleanup. no code changesDenys Vlasenko2013-01-141-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Use win32_execable_file() in test, which and execable.cRon Yorston2012-05-091-17/+9
| |
* | Merge branch 'busybox' into mergeRon Yorston2012-03-231-7/+8
|\| | | | | | | | | Conflicts: Makefile.flags
| * test: "test !" was accessing argv past NULL - fix it. Closes 4832Denys Vlasenko2012-03-081-7/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | 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