summaryrefslogtreecommitdiff
path: root/lib/libarchive/test/test_entry.c
Commit message (Collapse)AuthorAgeFilesLines
* Use contrib sources for building libarchive, tar and cpio.Martin Matuska2011-12-221-903/+0
| | | | | | | | | Make "make test" fully operational. MFC after: 2 weeks Notes: svn path=/head/; revision=228797
* - Update libarchive to 2.8.4Martin Matuska2011-07-171-0/+12
| | | | | | | | | | | - Add support for extracting xar and rpm archives - Add libarchive_fe subdir (common code for tar and cpio) Approved by: kientzle MFC after: 2 weeks Notes: svn path=/head/; revision=224152
* A raft of test changes and improvements from the Googlecode repository.Tim Kientzle2009-12-301-5/+32
| | | | | | | | In particular, this includes tests for the new features I've merged over the last few days. Notes: svn path=/head/; revision=201247
* Merge lots of test suite updates from libarchive.googlecode.com.Tim Kientzle2009-04-171-2/+26
| | | | Notes: svn path=/head/; revision=191183
* Merge r294:337,r348:350 from libarchive.googlecode.com: A lotTim Kientzle2009-03-031-9/+9
| | | | | | | of work to make libarchive work on Windows. Notes: svn path=/head/; revision=189308
* Verify high-res birthtime support on FreeBSD.Tim Kientzle2008-09-301-0/+2
| | | | | | | MFC after: 30 days Notes: svn path=/head/; revision=183484
* MfP4: Support for storing birthtime in archive_entry objects.Tim Kientzle2008-09-301-0/+17
| | | | | | | | Submitted by: Pedro Giffuni MFC after: 30 days Notes: svn path=/head/; revision=183481
* Style: Use ARCHIVE_VERSION_NUMBER to conditionalize tests onTim Kientzle2008-09-011-40/+40
| | | | | | | | the particular libarchive version being tested instead of the deprecated ARCHIVE_API_VERSION and ARCHIVE_VERSION_STAMP macros. Notes: svn path=/head/; revision=182592
* MfP4: set/unset tracking for atime, ctime, mtime, and size fields.Tim Kientzle2008-09-011-0/+31
| | | | | | | | | | | | | | | | This generalizes the existing set/unset tracking for hardlink/symlink fields and extends it to cover non-string fields. Eventually, this will be further extended to cover most fields. In particular, this is needed to correctly detect when time fields are missing (for example, reading ustar archives doesn't set atime or ctime) for proper time restore and is helpful when trying to determine whether to overwrite data when restoring hardlinks. This commit updates the tests but not the docs. Notes: svn path=/head/; revision=182590
* MFp4: libarchive 2.5.4b. (Still 'b' until I get a bit moreTim Kientzle2008-05-261-3/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | feedback, but the 2.5 branch is shaping up nicely.) In addition to many small bug fixes and code improvements: * Another iteration of versioning; I think I've got it right now. * Portability: A lot of progress on Windows support (though I'm not committing all of the Windows support files to FreeBSD CVS) * Explicit tracking of MBS, WCS, and UTF-8 versions of strings in archive_entry; the archive_entry routines now correctly return NULL only when something is unset, setting NULL properly clears string values. Most charset conversions have been pushed down to archive_string. * Better handling of charset conversion failure when writing or reading UTF-8 headers in pax archives * archive_entry_linkify() provides multiple strategies for hardlink matching to suit different format expectations * More accurate bzip2 format detection * Joerg Sonnenberger's extensive improvements to mtree support * Rough support for self-extracting ZIP archives. Not an ideal approach, but it works for the archives I've tried. * New "sparsify" option in archive_write_disk converts blocks of nulls into seeks. * Better default behavior for the test harness; it now reports all failures by default instead of coredumping at the first one. Notes: svn path=/head/; revision=179321
* Don't lie. If a string can't be converted to a wide (Unicode) string,Tim Kientzle2008-03-141-0/+35
| | | | | | | | return a NULL instead of an incomplete string. Expand the test coverage to verify the correct behavior here. Notes: svn path=/head/; revision=177193
* New public functions archive_entry_copy_link() and archive_entry_copy_link_w()Tim Kientzle2008-03-141-1/+30
| | | | | | | | override the currently set link value, whether that's a hardlink or a symlink. Plus documentation update and tests. Notes: svn path=/head/; revision=177191
* Tighten up the semantics of acl_next() and xattr_next() when youTim Kientzle2008-03-121-0/+22
| | | | | | | | | hit the end of the ACL or xattr list. Thanks to: Jeff Johnson for pointing out the obvious typo Notes: svn path=/head/; revision=177081
* Make test suite work with libarchive 1.3.1: Take advantage ofTim Kientzle2007-07-061-3/+102
| | | | | | | | | | | | | | | | ARCHIVE_VERSION_STAMP to selectively disable tests that don't apply to that version; new "skipping()" function reports skipped tests; modify final summary to report component test failures and skips. Note: I don't currently intend to MFC the test suite itself; anyone interested should just checkout and use this version of the test suite, which should work for any library version. Approved by: re (Ken Smith, blanket) Notes: svn path=/head/; revision=171280
* libarchive 2.2.3Tim Kientzle2007-05-291-0/+576
* "compression_program" support uses an external program * Portability: no longer uses "struct stat" as a primary data interchange structure internally * Part of the above: refactor archive_entry to separate out copy_stat() and stat() functions * More complete tests for archive_entry * Finish archive_entry_clone() * Isolate major()/minor()/makedev() in archive_entry; remove these from everywhere else. * Bug fix: properly handle decompression look-ahead at end-of-data * Bug fixes to 'ar' support * Fix memory leak in ZIP reader * Portability: better timegm() emulation in iso9660 reader * New write_disk flags to suppress auto dir creation and not overwrite newer files (for future cpio front-end) * Simplify trailing-'/' fixup when writing tar and pax * Test enhancements: fix various compiler warnings, improve portability, add lots of new tests. * Documentation: document new functions, first draft of libarchive_internals.3 MFC after: 14 days Thanks to: Joerg Sonnenberger (compression_program) Thanks to: Kai Wang (ar) Thanks to: Colin Percival (many small fixes) Thanks to: Many others who sent me various patches and problem reports. Notes: svn path=/head/; revision=170079