aboutsummaryrefslogtreecommitdiff
path: root/testsuite (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Apply post-1.24.0 patches, bump version to 1.24.11_24_1Denys Vlasenko2015-10-241-0/+36
| | | | 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>
* awk.tests: add test for recent large integer fixDenys Vlasenko2013-07-221-3/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix matching of newlines by $Denys Vlasenko2013-07-211-0/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: fix grep -x to not set REG_NOSUBJames Hogan2013-05-161-0/+14
| | | | | | | | | | | | | | | When -F isn't specified (and !ENABLE_EXTRA_COMPAT), grep -x uses regexec's regmatch_t output to determine if the match was the entire line. However it also set the REG_NOSUB flag which makes it ignore the regmatch_t argument. Add an exception to the setting of REG_NOSUB for OPT_x and add some test cases to test the behaviour of -x. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Natanael Copa <ncopa@alpinelinux.org> Cc: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: don't bail out on first mismatch if '-w' option is setBartosz Golaszewski2013-05-151-0/+6
| | | | | Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: Fix handling of functions with empty bodyBernhard Reutner-Fischer2013-03-131-0/+19
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* testsuite/du/du-k-works: fix false positiveKang Kai2013-01-281-0/+4
| | | | | Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix testsuite false positiveDenys Vlasenko2013-01-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix mode of dir1 in =dir1/dir2/file ruleDenys Vlasenko2013-01-211-1/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: fix grep -Fw not respecting the -w option. Closes 5792Denys Vlasenko2013-01-201-0/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sha3sum: new appletLauri Kasanen2013-01-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | function old new delta KeccakF - 496 +496 KeccakF_RoundConstants - 192 +192 sha3_hash - 171 +171 sha3_end - 40 +40 hash_file 274 299 +25 KeccakF_RotationConstants - 25 +25 KeccakF_PiLane - 25 +25 packed_usage 29213 29232 +19 sha3_begin - 18 +18 KeccakF_Mod5 - 10 +10 applet_names 2445 2453 +8 applet_main 1420 1424 +4 applet_nameofs 710 712 +2 ------------------------------------------------------------------------------ (add/remove: 8/0 grow/shrink: 9/7 up/down: 1049/-54) Total: ~995 bytes Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: make mkfs.minix test not fail spuriously on big endianYao Zhao2012-07-241-1/+9
| | | | | Signed-off-by: Yao Zhao <yao.zhao@windriver.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix FS assignment behavior. Closes 5108Denys Vlasenko2012-07-111-0/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: make -F STR interpret escape sequences. Closes 5126Denys Vlasenko2012-06-221-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: fix the wrongly stored fs creation timeDenys Vlasenko2012-06-211-1/+26
| | | | | | This bug made our ext2 images non-mountable by ext4 driver. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: some more awk tests related to conditionsTanguy Pruvot2012-06-111-0/+7
| | | | | Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>