aboutsummaryrefslogtreecommitdiff
path: root/testsuite (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: add a test that tar detects XZ-compressed dataDenys Vlasenko2012-03-061-0/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: merge bzcat2.tests into bzcat.testsDenys Vlasenko2011-10-312-28/+30
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: fix the mishap in the previous commitDenys Vlasenko2011-10-313-27/+81
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bzcat: fix unpacking of more than one file, and unpacking of zero-size bz2. ↵Denys Vlasenko2011-10-312-53/+27
| | | | | | Closes 4393 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: split decode_base64 off read_base64Leonid Lisovskiy2011-10-281-3/+98
| | | | | | | | | | | function old new delta decode_base64 - 182 +182 read_base64 378 255 -123 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 182/-123) Total: 59 bytes Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: make -p count path components, not slashes (think /blah//thing)Rob Landley2011-10-101-0/+16
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: fix -c +N. Closes 4111Denys Vlasenko2011-09-171-0/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix a SEGVDenys Vlasenko2011-09-111-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: be GNU compatible with -f EMPTY_FILELauri Kasanen2011-08-281-1/+17
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: make it able to create files (again)Rob Landley2011-08-221-1/+0
| | | | | | | | I broke patch's ability to create files in November, and nobody noticed in the ensuing 11 months. Sigh. Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uncompress: fix buffer underrun by corrupted inputDenys Vlasenko2011-08-181-0/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: add a test we currently failDenys Vlasenko2011-08-161-0/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix range handling for sed -i. Closes 4069Denys Vlasenko2011-08-161-3/+7
| | | | | | | | | | | function old new delta sed_main 606 618 +12 add_cmd 1099 1101 +2 process_files 2108 2099 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 14/-9) Total: 5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: fixes after randomconfig runDenys Vlasenko2011-08-112-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2011-08-102-21/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2011-08-105-4/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix false positive in parse testDenys Vlasenko2011-06-181-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: code shrink, fix "od --traditional FILE"Denys Vlasenko2011-05-211-1/+21
| | | | | | | | | function old new delta parse_old_offset 107 125 +18 packed_usage 28715 28691 -24 od_main 2312 2275 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: support \r in s commandDenys Vlasenko2011-05-031-0/+3
| | | | | | | function old new delta copy_parsing_escapes 65 91 +26 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: add a test for bind+rsharedDenys Vlasenko2011-03-141-1/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix handling of symlinks by option -1Denys Vlasenko2011-03-121-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: skip leading / and handle names like abc/..////def -> def (not ///def)Denys Vlasenko2011-03-021-1/+1
| | | | | | | | | function old new delta strip_unsafe_prefix - 105 +105 writeFileToTarball 557 520 -37 get_header_tar 1545 1462 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: on extract, everything up to and including last ".." is strippedDenys Vlasenko2011-03-011-0/+17
| | | | | | | function old new delta get_header_tar 1493 1545 +52 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* echo: fix ENOSPC detection and some iffy code in \NNN handlingDenys Vlasenko2011-02-146-0/+14
| | | | | | | function old new delta echo_main 330 302 -28 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2011-02-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix a bug where autodetection messes up -z on extractDenys Vlasenko2011-02-061-0/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: preserve isdst value if date is in time_t (unix time) formatAlexey Soloviev2010-12-311-0/+13
| | | | | Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add a test for patch which we currently failDenys Vlasenko2010-11-282-0/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixes for bugs discovered by randomconfig builds and testsDenys Vlasenko2010-11-222-1/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: busyboxify by migrating from toybox to busybox helpersDenys Vlasenko2010-11-211-2/+2
| | | | | | | | | | | | | | function old new delta get_line 90 128 +38 bbconfig_config_bz2 4959 4965 +6 makedevs_main 1038 1035 -3 fail_hunk 133 130 -3 finish_oldfile 174 124 -50 patch_main 2066 1987 -79 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/4 up/down: 44/-135) Total: -91 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_bunzip2: handle concatenated .bz2 filesDenys Vlasenko2010-10-281-2/+29
| | | | | | | | | | function old new delta unpack_bz2_stream 207 307 +100 start_bunzip 199 209 +10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 110/0) Total: 110 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix segfault on closing non-opened fileDenys Vlasenko2010-10-231-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cpio: avoid 'not created: newer or same age file exists' message for dirsPascal Bellard2010-10-181-0/+10
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shaN: small code shrinkDenys Vlasenko2010-10-161-11/+3
| | | | | | | | function old new delta sha512_hash 134 128 -6 sha1_hash 114 106 -8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: add tests for {ms5,shaN}sumDenys Vlasenko2010-10-165-1/+56
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: 00.123 is not a octal constant; neither is 009.123. fixing thisDenys Vlasenko2010-10-051-0/+6
| | | | | | | function old new delta my_strtod 80 113 +33 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Fixed a couple of failing tar testsDan Fandrich2010-09-121-4/+5
| | | | | | | | | The tar symlinks mode test is fixed similarly to the hardlinks test in 0d7cb4cc, and the read-only test is skipped by SKIP_KNOWN_BUGS. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* tar: add a test for extraction of read-only directoryDan Fandrich2010-09-051-0/+25
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fix false positive in testsuite/tar.testsDenys Vlasenko2010-09-031-4/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Fix some test casesDan Fandrich2010-09-033-5/+14
| | | | | | | | The tar tests still don't pass, but at least now it's because of a problem with Busybox and not the tests themselves. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* testsuite: show the number of failures after a test runDan Fandrich2010-08-294-2/+21
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* grep: fix -o match with empty string (suggested by Colin Watson ↵Denys Vlasenko2010-08-231-0/+4
| | | | | | | | | <cjwatson@ubuntu.com>) function old new delta grep_file 1216 1251 +35 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: support "patch [FILE [PATCH]]" formatDenys Vlasenko2010-08-221-1/+23
| | | | | | | | function old new delta xopen_stdin - 15 +15 patch_main 2075 2041 -34 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-1642-42/+42
| | | | | | | 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>
* sed: make N command behave as in GNU sedDenys Vlasenko2010-08-161-3/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix non-working device deletion, add a test for thatDenys Vlasenko2010-08-161-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: uncomment the test which we actually do pass nowDenys Vlasenko2010-08-161-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: add -N and a test for it (fails for now)Denys Vlasenko2010-08-161-1/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: replace it with toybox's implementationRob Landley2010-08-132-6/+10
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Improved portability of testsDan Fandrich2010-08-118-5/+24
| | | | | | | | Removed assumptions about umask and locale. Fixed hostname tests to work even when the host has no DNS domain set. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>