summaryrefslogtreecommitdiff
path: root/cpio/test
Commit message (Collapse)AuthorAgeFilesLines
* Add zstd test suiteSean Purcell2017-05-154-0/+141
|
* Fix use-after-free in error branch. From Ngie Cooper.Joerg Sonnenberger2017-05-111-1/+1
|
* Don't leak memory.Joerg Sonnenberger2017-04-2912-11/+34
|
* 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.
* New tar test: test_option_aclsMartin Matuska2017-03-021-0/+5
| | | | | Add sunacl_get() and setTestAcl() to common test code Test for membership.h on Mac OS X and make it a requirement for ACLs
* test suite: use a single main test file for all testsMartin Matuska2017-02-214-3406/+16
|
* testsuite: allow 'dev' in versionPavel Raiskup2017-02-212-83/+3
|
* Spelling fixes (#846)Graham Percival2016-12-201-1/+1
| | | Sponsored by: Tarsnap Backup Inc.
* 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 p (the memory allocated via slurpfile) when done with the contentsNgie Cooper2016-12-104-3/+15
| | | | | | | | | | Reported by: Coverity CID: 1331631, 1331632, 1331633, 1331646
* | Spelling fixes (#831)Graham Percival2016-12-041-2/+2
| | | | | | Sponsored by: Tarsnap Backup Inc.
* | 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-0/+35
|/
* Issue #801: close the file descriptor when testing link countsTim Kientzle2016-10-112-1/+20
| | | | | Thanks to Ed Maste for reporting this leak. Found by: Coverity
* Add chmod() after make_{dir,file} in test suitesGraham Percival2016-09-261-2/+9
| | | | | | | | | | | | | This is the same change that 38b3f516df865e2dffd0a1bbc9feb923ab2efc38 made to libarchive/test/main.c , but now applied to: cat/test/main.c cpio/test/main.c tar/test/main.c Sponsored by: Tarsnap Backup Inc.
* Add and use assertion_file_mode() in other testsGraham Percival2016-09-262-1/+30
| | | | | | | | | | | This adds the assertion_file_mode() function from libarchive/test/main.c and applies it to cat/test/main.c cpio/test/main.c tar/test/main.c Sponsored by: Tarsnap Backup Inc.
* Issue 720: Allow dashes in third-party version numbersTim Kientzle2016-07-201-1/+1
|
* Fix test for cpio version dash fixMartin Matuska2016-06-211-2/+2
|
* Issue 657: Allow up to 8k for the test root directory nameTim Kientzle2016-06-021-26/+49
|
* Issue 708: tar should fail if a named input file is missingTim Kientzle2016-05-282-0/+53
| | | | | | | | Tar was exiting with success if an input file named on the command line was not present. Includes tests for both bsdtar and bsdcpio to ensure this does not regress.
* Sync up test harnessesTim Kientzle2016-04-291-0/+4
|
* Issue 695: check fwrite return value, sync up test harnessesTim Kientzle2016-04-281-1/+32
|
* Fix -c test: we forced uid/gid to 1000, so we should not compare against ↵Tim Kientzle2016-02-131-6/+2
| | | | the current user
* Issue #377: Help cpio tests pass on systems with large UIDsTim Kientzle2016-03-192-2/+2
|
* Rework LZ4 option tests to work with various implementations of posix_spawnpTim Kientzle2016-01-311-3/+15
|
* Update lz4 test to watch for the reworded error messagesTim Kientzle2016-01-311-1/+1
|
* Bring along a trailing null when guessing the path to the program under testTim Kientzle2016-01-311-1/+1
|
* Fix LZ4 tests when liblz4 is not presentTim Kientzle2016-01-301-2/+2
|
* Really sync up the test harnessesTim Kientzle2016-01-281-0/+13
|
* Sync up the test harnesses; add error checks to the UUdecode utilityTim Kientzle2016-01-281-7/+58
|
* Visual Studio 2015 ChangesHans Hinrichsen2016-01-131-1/+1
| | | | snprintf shouldn't be defined in a macro in VS2015 and above due to its C99 changes
* Skip the --lz4 test if libarchive was compiled without the libraryTim Kientzle2015-01-251-0/+6
| | | | | | and this platform does not have an lz4 executable. It seems there should be a better way to handle this.... <sigh>
* Avoid CMake Warning that used GET_TARGET_PROPERTY with LOCATION property,Michihiro NAKAJIMA2014-10-131-1/+2
| | | | so we should use $<TARGET_FILE> expression instead.
* Add tests for --passphrase option.Michihiro NAKAJIMA2014-10-043-0/+56
|
* Fix incorrect CMake test directory when building as a subprojectXiao-Long Chen2014-09-161-1/+1
| | | | This is an extension of e800985adbb0820c5692ea016b3a8499d69a73dc
* Add additional tests for lz4 compression in front-end applications.Michihiro NAKAJIMA2014-08-183-0/+56
|
* Add lz4 test for bsdcat.Michihiro NAKAJIMA2014-08-182-0/+18
| | | | | - add test utility function canLz4() - fix test_write_filter_lz4 to use canLz4()
* Add support for lz4 write filter.Michihiro NAKAJIMA2014-08-142-0/+57
|
* Add a test utility function, copy_reference_file simply copingMichihiro NAKAJIMA2014-06-292-0/+25
| | | | | | | | | | | | a sample file to the current directory of a running test. A uudecode filter test will use it for its new test. TODO: make a symbolic link file insted of copying a sample file. Historically, libarchive cannot handle uuencoded files when libarchive's test suit was made. Now libarchive can handle it directly by uudecode filter, I think, we can reduce copying sample files to the directory test program expects they are on an isolated directory for their test.
* Apply recent changs in libarvhie/test/main.c to {tar,cpio,cat}/test/main.c ↵Michihiro NAKAJIMA2014-06-291-3/+4
| | | | for keeping maintenacebility.
* fixes for test programs to be buildable by Open WatcomJiri Malak2014-03-122-5/+13
| | | | correct buffers to be realy local for each test as expected by logic
* Show third party library versions in version stringRoss Lagerwall2013-09-162-0/+6
| | | | | | | | | Add a utility function, archive_version_details, to return a string containing the libarchive version as well as the versions of third party libraries such as zlib, bz2lib and liblzma. Use this function for bsdtar --version and bsdcpio --version. http://code.google.com/p/libarchive/issues/detail?id=118
* Test correct archive in test_extract_cpio_lzo test case.Andres Mejia2013-02-211-1/+1
|
* Remove error about unreachable code, fixes build on Visual Studio 12.Andres Mejia2013-01-291-1/+0
|
* Fix bugs in test programs which Clang Static Analyzer pointed out.Michihiro NAKAJIMA2012-11-143-20/+38
|
* Fix build failure on Win64.Michihiro NAKAJIMA2012-11-071-7/+7
|
* Fix a segmentation fault when files for assertionEqualFile do not exist.Michihiro NAKAJIMA2012-10-311-0/+5
|
* Use liblzo2 for the lzop write filter.Michihiro NAKAJIMA2012-10-211-8/+12
|
* Perform 'bzip2 -d -V' instead of 'bzip2 -V' for a bzip2 availablenessMichihiro NAKAJIMA2012-10-161-1/+1
| | | | | test because the process on FreeBSD 9 does not finish its program when redirecting stdout to /dev/null.