summaryrefslogtreecommitdiff
path: root/tar/test
Commit message (Collapse)AuthorAgeFilesLines
* Correct some typographical and grammatical errors.Peter Pentchev2019-09-212-3/+3
|
* CI: increase make command output verbosityMartin Matuska2019-05-111-0/+1
| | | | | | Add Fedora_29_distcheck task with "make distcheck" Add support for debug build with address sanitizer Add missing free to tar/test/test_option_C_mtree.c
* tar/test_option_n: fix build and operation on WindowsMartin Matuska2019-04-161-40/+28
|
* test_option_n.c: cover non-recursive extract/listPatrick Ohly2019-04-161-0/+93
| | | | | | | | | | | Testing uses only listing because extraction uses the same code paths. Indirectly this covers also the new API call. Some corner cases get special attention: - archive where a file in a directory is present without the directory - the error when asking to extract a directory which is not present
* tar: add option --exclude-vcsMartin Matuska2019-04-142-0/+231
| | | | Fixes #999
* Windows symlink bugfixes and improvementsMartin Matuska2019-04-138-39/+39
| | | | | | | Treat targets ending with /. and /.. as directory symlinks Explicitly test for file and directory symlinks Improve debug output on test failure Fix two memory allocations
* Fix remaining MinGW testsMartin Matuska2019-04-072-2/+18
| | | | Enable tests on MinGW CI builds
* Fix various symlink bugs with Windows symlinksMartin Matuska2019-04-048-32/+32
| | | | tests: extend assertMakeSymlink with targetIsDir
* put the absolute path in quotes in case user's directory has spaces in itArshan Khanifar2018-02-121-1/+1
|
* absolute path fixArshan Khanifar2018-02-071-5/+10
|
* build fail fix, simplified logicArshan Khanifar2018-02-061-3/+1
|
* corrected licensing, removed unnecessary variablesArshan Khanifar2018-02-061-4/+4
|
* Test case for using -C in conjunction with an @mtree format fileArshan Khanifar2018-02-062-0/+71
|
* Merge pull request #986 from BenjaminTrapani/windows-fixesTim Kientzle2018-01-271-0/+4
|\ | | | | Unit test fixes for windows
| * Fix bsdtar test compilation on windows with platform toolset 141BenjaminTrapani2018-01-201-0/+4
| |
* | Fix build on FreeBSD with NFS4 ACLs without ACL_ENTRY_INHERITEDMartin Matuska2018-01-241-0/+2
|/ | | | Fixes #952
* Merge pull request #905 from iburinoc/zstdTim Kientzle2017-08-124-0/+141
|\ | | | | Add support for Zstandard read and write filters
| * Fix alphabetical order, other small fixesSean Purcell2017-05-151-2/+2
| |
| * Add zstd test suiteSean Purcell2017-05-154-0/+141
| |
* | Spelling fixesGraham Percival2017-07-301-1/+1
|/ | | | Sponsored by: Tarsnap Backup Inc.
* Plug memory leaks in xattr and acl tests.Martin Matuska2017-04-032-2/+5
| | | | Detected with libasan on Linux.
* Improve extended attribute supportMartin Matuska2017-03-232-0/+88
| | | | | | | | | | | | | | | | | | Mac OS X changes: - add support for extended file attributes via sys/xattr.h - when extracting an archive entry that has mac_metadata and mac_metadata is requested to be extracted, extended attributes are restored only from mac_metadata. - by default, extended attributes are stored both in mac_metadata and SCHILY.xattr/LIBARCHIVE.xattr. This is subject to review and change. To match behavior on other platforms, store extended attributes on FreeBSD with extattr_set_link() if no fd is provided. Detection of extended attributes support in configure stage has been rewritten. Added xattr platform test to libarchive and xattrs option test to bsdtar.
* tar: fix conditionals and add richacl support to test_option_aclsMartin Matuska2017-03-231-46/+85
|
* Add NFSv4 ACL support for Linux via librichaclMartin Matuska2017-03-161-1/+6
| | | | | | | | | | | | Richacls are interpreted as NFSv4 ACLs and stored in archive_acl (Richacl flags and masks are not stored). Analog to mac_metadata, NFSv4 ACLs do not get extracted when the extraction of extended attributes is enabled and the "trusted.richacl" extended attribute is present. RichACL masks and are calculated from file mode on extraction. mac_metadata acl check has been moved in the code to be together with the richacl check.
* Darwin ACL: fix legacy support in tar/test_option_acls.cMartin Matuska2017-03-081-2/+0
| | | | Remove ACL_FLAG_DEFER_INHERIT and ACL_FLAG_NO_INHERIT
* tar: test_option_fflags adjustmentsMartin Matuska2017-03-021-0/+32
| | | | | - Clear fflags on created directories - FreeBSD ZFS workaround - ZFS sets uarch on all touched files
* New tar test: test_option_aclsMartin Matuska2017-03-022-0/+477
| | | | | Add sunacl_get() and setTestAcl() to common test code Test for membership.h on Mac OS X and make it a requirement for ACLs
* Compare full file flags in test_option_fflagsMartin Matuska2017-02-281-4/+4
|
* bsdtar tests: add test_option_fflagsMartin Matuska2017-02-263-1/+76
|
* test suite: use a single main test file for all testsMartin Matuska2017-02-214-3405/+16
|
* testsuite: allow 'dev' in versionPavel Raiskup2017-02-212-69/+4
|
* Fix two tests on Solaris if compiling with -m64Alexander Pyhalov2017-01-151-4/+4
|
* Use uid 18 instead of 17 for test_option_uid_unameMartin Matuska2017-01-121-4/+4
| | | | Uid 17 is assigned on Solaris
* Merge pull request #807 from csanchezdll/issue696Tim Kientzle2016-12-111-0/+7
|\ | | | | Issue 696: ppc64le mache ckech failure
| * Issue 696: ppc64le mache ckech failureCarlos Sánchez de La Lama2016-10-191-0/+7
| | | | | | | | | | | | | | This issue is not ppc64le specific. I have experienced on my 4.4.22-gnu #1 SMP 1 i686 GNU/Linux. Might be dependant on kernel version and/or machine load. POSIX says errors after posix_spawnp returns can be signaled by child exitting with an 127 exit code.
* | Free `testprog_ustar` when doneNgie Cooper2016-12-101-0/+2
| | | | | | | | | | Reported by: Coverity CID: 1355330
* | Free p (the memory allocated via slurpfile) when done with the contentsNgie Cooper2016-12-1017-32/+77
| | | | | | | | | | Reported by: Coverity CID: 1331627-1331630, 1355332, 1331634-1331645, 1331647, 1355331
* | Don't leak memory if returning fromNgie Cooper2016-12-101-14/+12
| | | | | | | | | | | | | | | | | | assertion_file_contains_lines_any_order(..) early Free memory consistently at the bottom of the function Reported by: Coverity CID: 1331678
* | Don't leak the file descriptor pointed to by `in` if the first call toNgie Cooper2016-12-101-1/+2
| | | | | | | | | | | | | | fgets fails. Reported by: Coverity CID: 1331677
* | Don't overrun `tmpdir` buffer with sprintfNgie Cooper2016-12-101-2/+2
| | | | | | | | | | | | | | | | If progname is sufficiently large enough, it would overflow the `tmpdir` buffer, causing an illegal memory access Reported by: Coverity CID: 1331594
* | Increase the size of buff by 1 and adjust the readlink(2) call toNgie Cooper2016-12-101-2/+2
| | | | | | | | | | | | | | | | subtract the buffer len by 1 to account for the needed space for a NUL terminator, as readlink isn't guaranteed to provide one Reported by: Coverity CID: 1331293, 1332105
* | Spelling fixes (#830)Graham Percival2016-11-303-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Spelling: previos -> previous Sponsored by: Tarsnap Backup Inc. * Spelling: Preparre -> Prepare Sponsored by: Tarsnap Backup Inc. * Spelling: Invalide -> Invalid Sponsored by: Tarsnap Backup Inc. * Spelling: leagal -> legal Sponsored by: Tarsnap Backup Inc. * Spelling: lengthe -> length Sponsored by: Tarsnap Backup Inc. * Spelling: cotents -> contents Sponsored by: Tarsnap Backup Inc. * Spelling: travesal -> traversal Sponsored by: Tarsnap Backup Inc. * Spelling: functinos -> functions Sponsored by: Tarsnap Backup Inc. * Spelling: particluar -> particular Sponsored by: Tarsnap Backup Inc. * Spelling: uncapable -> incapable Sponsored by: Tarsnap Backup Inc.
* | Fix extracting hardlinks over symlinksMartin Matuska2016-11-291-1/+17
| | | | | | | | Closes #821
* | Clarify some skipping messagesTim Kientzle2016-10-232-2/+2
| |
* | Make test output more verbose on WindowsTim Kientzle2016-10-231-1/+2
| |
* | Sync up the test harnesses, fix an "unused var" warning on WindowsTim Kientzle2016-10-232-2/+4
|/
* Add test case for issue #794Martin Matuska2016-10-123-1/+38
|
* Issue #801: close the file descriptor when testing link countsTim Kientzle2016-10-112-1/+10
| | | | | Thanks to Ed Maste for reporting this leak. Found by: Coverity
* Merge pull request #787 from praiskup/fix-umaskTim Kientzle2016-09-286-11/+21
|\ | | | | tests: fix testsuite for umask issues
| * tests: fix testsuite for umask issuesPavel Raiskup2016-09-266-11/+21
| | | | | | | | | | | | Reproducible with umask 0077. Resolves: #782