aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tar/test
Commit message (Collapse)AuthorAgeFilesLines
* Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in toEnji Cooper2015-10-121-101/+0
| | | | | | | | | | | | | | | | | | | | | the FreeBSD test suite functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided by upstream. A handful of testcases in lib/libarchive/tests have been disabled as they were failing when run with kyua test (see BROKEN_TESTS in lib/libarchive/tests/Makefile) As a sidenote: this removes the check/test targets from the Makefiles as they don't match the pattern used in the rest of the FreeBSD test suite. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289195
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-131-1/+1
| | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* MFV r248590,248594:Martin Matuska2013-03-221-2/+24
| | | | | | | | | | | | | | Update libarchive to 3.1.2 Some of new features: - support for lrzip and grzip compression - support for writing tar v7 format - b64encode and uuencode filters - support for __MACOSX directory in Zip archives - support for lzop compresion (external utility) Notes: svn path=/head/; revision=248616
* Update libarchive to 3.0.4Martin Matuska2012-07-281-6/+2
| | | | Notes: svn path=/head/; revision=238856
* Update libarchive to 3.0.3Martin Matuska2012-02-251-2/+17
| | | | | | | | | | | | | | | | | Some of new features: - New readers: RAR, LHA/LZH, CAB reader, 7-Zip - New writers: ISO9660, XAR - Improvements to many formats, especially including ISO9660 and Zip - Stackable write filters to write, e.g., tar.gz.uu in a single pass - Exploit seekable input; new "seekable" Zip reader can exploit the Zip Central Directory when it's available; the old "streamable" Zip reader is still fully supported for cases where seeking is not possible. Full release notes available at: https://github.com/libarchive/libarchive/wiki/ReleaseNotes Notes: svn path=/head/; revision=232153
* Use contrib sources for building libarchive, tar and cpio.Martin Matuska2011-12-2221-5629/+12
| | | | | | | | | Make "make test" fully operational. MFC after: 2 weeks Notes: svn path=/head/; revision=228797
* Update bsdtar to 2.8.4Martin Matuska2011-07-1720-1114/+2505
| | | | | | | | | | Use common code from lib/libarchive/libarchive_fe Approved by: kientzle MFC after: 2 weeks Notes: svn path=/head/; revision=224153
* Enable liblzma support in libarchiveMartin Matuska2010-05-101-2/+2
| | | | | | | | | | | Adjust dependencies for programs using libarchive Add xz and linkage against liblzma to rescue system Approved by: kientzle, delphij (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=207849
* Fix common misspelling of hierarchyUlrich Spörlein2010-02-202-2/+2
| | | | | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor) Notes: svn path=/head/; revision=204111
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Merge from libarchive.googlecode.com: Numerous Windows-specific build tweaks.Tim Kientzle2009-04-178-34/+32
| | | | Notes: svn path=/head/; revision=191187
* Match a comment to reduce differences with libarchive.googlecode.com.Tim Kientzle2009-03-081-0/+4
| | | | Notes: svn path=/head/; revision=189524
* Merge r709,r710 from libarchive.googlecode.com: More work onTim Kientzle2009-03-082-0/+721
| | | | | | | Windows support. Notes: svn path=/head/; revision=189523
* Merge r687-689,691,693-701,720 from libarchive.googlecode.com:Tim Kientzle2009-03-082-3/+45
| | | | | | | | | | | | | | | Translate getdate.y into C for portability. Make the get_date() function easier to test as well: * Have it accept a time_t "now" to use as a reference so that test code can verify relative time specifications against known starting points. * Set up default date after parsing the string so that we can use the specified timezone (if any) instead of the local default. Otherwise, local DST makes it almost impossible to reliably test time specifications such as "sunday UTC" Notes: svn path=/head/; revision=189521
* Merger r629-631,633-646,648,654,678,681,682 from libarchive.googlecode.com:Tim Kientzle2009-03-0815-54/+623
| | | | | | | | Many changes for Windows compatibility. bsdtar_test now runs successfully on both POSIX platforms and Windows. Notes: svn path=/head/; revision=189520
* Merge r368,496,625,626 from libarchive.googlecode.com: A number ofTim Kientzle2009-03-082-36/+83
| | | | | | | | style and portability tweaks to the test harness. Most significantly, don't use getopt(). Notes: svn path=/head/; revision=189519
* Merge r435,r443 from libarchive.googlecode.com: Let the compiler optionsTim Kientzle2009-03-081-3/+3
| | | | | | | determine how to read config.h. Notes: svn path=/head/; revision=189515
* Merge r374 from libarchive.googlecode.com: Stupid typo in open() call. <sigh>Tim Kientzle2009-03-081-1/+1
| | | | Notes: svn path=/head/; revision=189513
* Merge r369 from libarchive.googlecode.com: Test -s option.Tim Kientzle2009-03-082-0/+96
| | | | Notes: svn path=/head/; revision=189512
* Merge r278 from libarchive.googlecode.com: Reduce the number ofTim Kientzle2009-03-081-3/+5
| | | | | | | | patterns tested here from 200 to 170, which seems to be the most that Cygwin can handle. Notes: svn path=/head/; revision=189511
* Merge r273 from libarchive.googlecode.com: Use open() correctly.Tim Kientzle2009-03-081-1/+1
| | | | Notes: svn path=/head/; revision=189510
* Include more detailed explanation of this case, since it's prettyTim Kientzle2008-11-101-5/+34
| | | | | | | | | | | | | | | | | | subtle why it comes out the way it does. Once you realize that it depends on the archiving order, it's also important to realize that filesystem differences aren't going to break this case. (Some of the other tests have had to be extensively rewritten to make them independent of the order in which a particular filesystem returns file entries.) (This commit also serves to note the PR number that I accidentally omitted from the previous commit.) PR: bin/128562 MFC after: 30 days Notes: svn path=/head/; revision=184808
* Test --strip-components and fix it to actually work. Jaakko did aTim Kientzle2008-11-102-0/+78
| | | | | | | | | | | | | | | | | | good job writing this test; it exercises a lot of subtle cases. The trickiest one is that a hardlink to something that didn't get extracted should not itself be extracted. In some sense, this is not the desired behavior (we'd rather restore the file), but it's the best you can do in a single-pass restore of a tar archive. The test here should be extended to exercise cpio and newc formats as well, since their hardlink models are different, which will lead to different handling of some of these edge cases. Submitted by: Jaakko Heinonen MFC after: 30 days Notes: svn path=/head/; revision=184807
* When comparing, cast to the larger size, off_t in this case.Tim Kientzle2008-11-051-1/+1
| | | | | | | | | | Once we know which one is smaller, then we cast to the smaller size. Thanks to Xin Li (delphij@) Pointy hat: /me Notes: svn path=/head/; revision=184669
* Fix compile warnings building on amd64. This is modified slightlyTim Kientzle2008-11-051-4/+5
| | | | | | | | | | | | | from Jaakko's original patch: I have misgivings about the portability of the 'z' printf modifier so opted to cast the arguments to (int) instead. PR: bin/128561 Submitted by: Jaakko Heinonen MFC after: 30 days Notes: svn path=/head/; revision=184668
* Test handling of restores relative to symlinks.Tim Kientzle2008-09-142-0/+173
| | | | | | | | | | In particular: * tar -x -P follows symlinks to existing dirs, but not without -P * symlinks to files are always replaced * broken symlinks are always replaced Notes: svn path=/head/; revision=183009
* Minor cleanup of the -q test: Assert that stdout/stderr are empty for eachTim Kientzle2008-08-221-3/+9
| | | | | | | extraction. Notes: svn path=/head/; revision=181985
* Explain how the test_option_q test works.Tim Kientzle2008-08-221-0/+15
| | | | Notes: svn path=/head/; revision=181981
* Test for -q (aka --fast-read).Tim Kientzle2008-08-222-0/+105
| | | | | | | Fix the error uncovered by this test. Notes: svn path=/head/; revision=181979
* The results for test 2 here are short enough to just be included inline.Tim Kientzle2008-08-212-8/+3
| | | | | | | | There's no need to go through the hassle of having a checked-in uuencoded reference file for comparison. Notes: svn path=/head/; revision=181971
* Add some more tests to verify that "./foo" matches "foo" but "/foo" does not.Tim Kientzle2008-08-214-1/+76
| | | | Notes: svn path=/head/; revision=181959
* Always display the unedited pathname in -t output.Tim Kientzle2008-08-213-10/+2
| | | | | | | | | | I would like to provide a way to preview the effects of pathname edits, but pattern selection has to happen against the unedited path, so it seems that we have to show people the unedited path to help in designing selection patterns. Notes: svn path=/head/; revision=181958
* Better comment the pattern tests; adjust the filenames for theTim Kientzle2008-08-204-12/+22
| | | | | | | | | reference files to match the corresponding source. MFC after: 3 days Notes: svn path=/head/; revision=181904
* Test updates: Handling of patterns on command line, error messages.Tim Kientzle2008-08-156-1/+40
| | | | Notes: svn path=/head/; revision=181750
* MfP4: test harness cleanup.Tim Kientzle2008-06-152-19/+21
| | | | Notes: svn path=/head/; revision=179795
* MFp4: bsdtar 2.5.4bTim Kientzle2008-05-264-81/+174
| | | | | | | | | | | | | | | | In addition to a number of bug fixes and minor changes: * --numeric-owner (ignore user/group names on create and extract) * -S (sparsify files on extraction) * -s (regex filename substitutions) * Use new libarchive 'linkify' to get correct hardlink handling for both old and new cpio formats * Rework 'copy' test to be insensitive to readdir() filename ordering Most of the credit for this work goes to Joerg Sonnenberger, who has been duplicating features from NetBSD's 'pax' program. Notes: svn path=/head/; revision=179322
* New bsdtar test harness. Still rather skimpy, but a lot easierTim Kientzle2008-05-0211-0/+2203
| | | | | | | to run and maintain than the old scripts that used to be here. Notes: svn path=/head/; revision=178715
* Remove the old bsdtar test scripts; something muchTim Kientzle2008-01-028-859/+0
| | | | | | | better is almost ready to commit. Notes: svn path=/head/; revision=175052
* When testing basic functionality, strip trailing '/' fromTim Kientzle2007-04-181-3/+3
| | | | | | | dir names, so they match the names generated by 'find'. Notes: svn path=/head/; revision=168829
* Add test to confirm that piping a tar archive created by bsdtar throughColin Percival2007-04-041-0/+5
| | | | | | | 'bsdtar -cf- @-' doesn't alter it. Notes: svn path=/head/; revision=168343
* Add tests for "bsdtar -t". These are useful primarily because they testColin Percival2007-03-311-0/+16
| | | | | | | the archive_read_data_skip code. Notes: svn path=/head/; revision=168176
* Clarify the test comments in test-basic.sh. Have config.sh do aTim Kientzle2007-03-112-34/+47
| | | | | | | | | | better job searching for the bsdtar binary to test and the gtar binary to use for inter-operability testing. It should now find the built (but not installed) binary if there is one, then search for an installed binary in a number of standard locations. Notes: svn path=/head/; revision=167458
* bsdtar 2.0.23:Tim Kientzle2007-03-118-0/+825
* New test scripts exercise some basic functionality * Most header inclusions are now protected (portability) * read.c now relies on security checks in libarchive instead of trying to do its own (optimization) * -p now enabled by default for root, add --no-same-permissions to disable it * Comments, minor style fixes. Notes: svn path=/head/; revision=167450