aboutsummaryrefslogtreecommitdiff
path: root/testsuite (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* gzip: add test that checks that -9 compresses better than -1Natanael Copa2016-08-151-0/+5
| | | | | Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* {md5,shaN}sum: make -c EMPTY failDenys Vlasenko2016-07-111-5/+17
| | | | | | | function old new delta md5_sha1_sum_main 466 485 +19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixes 5: false positive for tar; mount emits corrupted messageDenys Vlasenko2016-06-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixes 4Denys Vlasenko2016-06-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixes 3Denys Vlasenko2016-06-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixes 2Denys Vlasenko2016-06-192-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2016-06-192-7/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix append command to match GNU sed 4.2.1Denys Vlasenko2016-05-061-2/+4
| | | | | | This closes one testcase failure Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: understand \n,\r and \t in i and a commands. Closes 8871Denys Vlasenko2016-04-241-0/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: make 's///w FILE' actually write to FILE. Closes 8251Denys Vlasenko2016-01-241-0/+6
| | | | | | | function old new delta add_cmd 1167 1210 +43 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* [g]unzip: fix recent breakage.Denys Vlasenko2015-10-301-0/+1
| | | | | | Also, do emit error message we so painstakingly pass from gzip internals Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unzip: test for bad archive SEGVingDenys Vlasenko2015-10-261-1/+22
| | | | | | | function old new delta huft_build 1296 1300 +4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add a test that we don't write into symlinksDenys Vlasenko2015-10-221-0/+43
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add support for --strip-components=NDenys Vlasenko2015-10-221-0/+10
| | | | | | | | | | | function old new delta data_extract_all 882 995 +113 tar_longopts 290 309 +19 tar_main 938 942 +4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 136/0) Total: 136 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sort: fix ENDCHAR handling in "-kSTART,N.ENDCHAR"Denys Vlasenko2015-10-191-0/+8
| | | | | | | function old new delta get_key 505 503 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sort: fix key with delimiters breakageDenys Vlasenko2015-10-191-0/+36
| | | | | | | function old new delta get_key 509 505 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randconfig fixesDenys Vlasenko2015-10-121-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randconfig fixesDenys Vlasenko2015-10-111-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randconfig fixesDenys Vlasenko2015-10-113-9/+23
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: support "length" form of "length()". Closes 8371Denys Vlasenko2015-10-021-0/+5
| | | | | | | | function old new delta parse_expr 805 848 +43 tokenlist 447 448 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sort: fix -kN,M handling (was including last separator into the comparison)Denys Vlasenko2015-09-191-0/+8
| | | | | | | | | | Testcase: $ printf '%s\n' a/a:a a:b | sort -t: -k1,1 a:b a/a:a Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff.tests: add testcases for -B and single line changesAaro Koskinen2015-07-311-0/+12
| | | | | | | Add testcases for -B and single line changes. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bzcat.tests: Run both .gz and .bz2 tests, and add .Z testsThiago Jung Bauermann2015-05-111-24/+50
| | | | | Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: implement ",+N" range endDenys Vlasenko2015-04-171-0/+32
| | | | | | | | | | | function old new delta add_cmd 1115 1173 +58 process_files 2226 2253 +27 sed_main 696 702 +6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 91/0) Total: 91 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dc: tweak parsingBernhard Reutner-Fischer2015-02-161-0/+56
| | | | | | | | | | | | | | | | | | | | https://bugs.debian.org/538685 dc requires whitespace between language elements. We were requiring 1 2 + p instead of the abbreviated 1 2+p (for example). function old new delta stack_machine 97 126 +29 dc_main 117 79 -38 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 29/-38) Total: -9 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: fix a bug in diffing against stdin. Closes 7784Denys Vlasenko2015-01-111-0/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2014-12-222-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix a buglet in s///NUM handlingDenys Vlasenko2014-09-161-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: fix "grep -r PATTRN SYMLINK_TO_DIR"Denys Vlasenko2014-08-281-0/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test: fix mishandling of "test '(' = '('" and similarDenys Vlasenko2014-07-011-0/+20
| | | | | | | function old new delta test_main 246 350 +104 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix handling of "if ... break ; else ..." - closes 7226Denys Vlasenko2014-06-261-0/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find: exit code fixes for find -execDenys Vlasenko2014-06-191-0/+26
| | | | | | | function old new delta func_exec 127 100 -27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: fix -w match if first match isn't a word, but second is. Closes 4520Denys Vlasenko2014-02-271-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: properly handle grep -w "^str" in !EXTRA_COMPAT case tooBartosz Golaszewski2014-02-071-0/+6
| | | | | | | | function old new delta grep_file 1267 1288 +21 Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: fix last "which" changeMichael Tokarev2014-01-231-1/+1
| | | | | | | | | | | | | In commit afa63b2dcdc9b9 I replaced `type -p' with `command -pv'. But actually it is wrong, the right substitution is `command -v'. We need to find our busybox which is in the first directory in $PATH, so `command -p' should not be used because it uses default PATH, not current value of PATH where our busybox binary resides. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sort: check global flags on fallback sortBartosz Golaszewski2014-01-191-3/+0
| | | | | | | | | | | Sort now performs global reverse on fallback sort if -r is set. Before only key local flags were checked. function old new delta compare_keys 712 738 +26 Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find: fix a regression introduced with -HLP supportDenys Vlasenko2014-01-091-0/+22
| | | | | | | function old new delta find_main 294 342 +48 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: fix two bugs with -wDenys Vlasenko2014-01-071-0/+12
| | | | | | | | | Unfortunately, with !EXTRA_COMPAT, "grep -w ^str" still erroneously matches "strstr". function old new delta grep_file 1499 1510 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: remove forgotten debug hackDenys Vlasenko2013-12-311-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix failures found by randomconfig buildsDenys Vlasenko2013-12-312-3/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: disable tests for no longer supported bbox-specific date formatsDenys Vlasenko2013-12-312-6/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: fix false positives for duDenys Vlasenko2013-12-202-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix a bug in argc counting in recent changeDenys Vlasenko2013-11-211-1/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: prevent empty file to be treated as valid tarballDenys Vlasenko2013-11-191-0/+25
| | | | | | | function old new delta tar_main 879 895 +16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix a copy/paste error in last tar testcase nameDenys Vlasenko2013-11-191-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add a testcase for previous commitDenys Vlasenko2013-11-191-0/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bashisms in testsuite/Michael Tokarev2013-11-104-14/+12
| | | | | | | | | These places use ${var/search/replace}, $((n++) and `type -p' constructs which are not-so-standard. Replace with equivalent constructs. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sed: fix "sed clusternewline" testcaseDenys Vlasenko2013-10-301-2/+0
| | | | | | | | | | | function old new delta process_files 2197 2226 +29 flush_append 47 54 +7 get_next_line 184 189 +5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 41/0) Total: 41 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix length(array)Denys Vlasenko2013-10-121-0/+5
| | | | | | | function old new delta evaluate 3526 3548 +22 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: Fix handling of functions with empty bodyBernhard Reutner-Fischer2013-07-311-0/+28
| | | | | | | ammend b79a0fef99627c457548e804fcd6e162b116cbe8 to properly handle functions defined in another scope. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>