]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoTest -T with varying end-of-line conventions, including --null -T with
Tim Kientzle [Sun, 23 Aug 2009 04:16:58 +0000 (00:16 -0400)] 
Test -T with varying end-of-line conventions, including --null -T with
a filename that includes a NL character.  Fix the line parser in
util.c to correctly handle these cases.

SVN-Revision: 1384

16 years agoFix FreeBSD build.
Tim Kientzle [Sun, 23 Aug 2009 04:15:29 +0000 (00:15 -0400)] 
Fix FreeBSD build.

SVN-Revision: 1383

16 years ago2.7.1 v2.7.1
Tim Kientzle [Wed, 5 Aug 2009 06:01:23 +0000 (02:01 -0400)] 
2.7.1

SVN-Revision: 1339

16 years agoAllow work dir to be deleted on Windows.
Tim Kientzle [Fri, 24 Jul 2009 04:32:02 +0000 (00:32 -0400)] 
Allow work dir to be deleted on Windows.

SVN-Revision: 1272

16 years agoMerge r1170: Use environment variables to locate a suitable
Tim Kientzle [Fri, 24 Jul 2009 04:18:18 +0000 (00:18 -0400)] 
Merge r1170:  Use environment variables to locate a suitable
temp directory, fix the final dir cleanup.

SVN-Revision: 1271

16 years agoFix distcheck failure.
Charles Wilson [Thu, 23 Jul 2009 23:49:05 +0000 (19:49 -0400)] 
Fix distcheck failure.

SVN-Revision: 1268

16 years agoFix the test naming. The cmake-based builds assume that
Tim Kientzle [Thu, 23 Jul 2009 04:32:07 +0000 (00:32 -0400)] 
Fix the test naming.  The cmake-based builds assume that
we have exactly one official test case in each source file.
If that's violated, the tests report wrong names for failed tests.

SVN-Revision: 1267

16 years agoMore tolerance of Windows/Posix behavioral differences.
Tim Kientzle [Thu, 23 Jul 2009 04:21:44 +0000 (00:21 -0400)] 
More tolerance of Windows/Posix behavioral differences.

SVN-Revision: 1266

16 years agoWindows and Posix libarchive ports handle errors a little differently for external...
Tim Kientzle [Thu, 23 Jul 2009 04:16:09 +0000 (00:16 -0400)] 
Windows and Posix libarchive ports handle errors a little differently for external decompression programs; verify that the responses are reasonable, but don't be too rigid.

SVN-Revision: 1265

16 years agoMerge r1167 (part c) from trunk
Charles Wilson [Wed, 22 Jul 2009 12:01:18 +0000 (08:01 -0400)] 
Merge r1167 (part c) from trunk
Fix a bunch of tests on Visual Studio:
 * Change off_t to int64_t for a lot of internal vars
   to support VS 32-bit off_t; since we can't change
   the external client_skip interface until libarchive 3.0,
   just limit forward skips until then.
    libarchive/archive_private.h
    libarchive/archive_read.c
    libarchive/archive_read_support_format_tar.c

SVN-Revision: 1263

16 years agoVisual Studio doesn't support %jd.
Tim Kientzle [Wed, 22 Jul 2009 05:19:21 +0000 (01:19 -0400)] 
Visual Studio doesn't support %jd.
"int" is sufficient here on every platform I know of.

SVN-Revision: 1262

16 years agoSupport -I <arg>
Tim Kientzle [Wed, 22 Jul 2009 05:18:24 +0000 (01:18 -0400)] 
Support -I <arg>

SVN-Revision: 1261

16 years agoMerge r1176 from trunk
Charles Wilson [Tue, 21 Jul 2009 04:02:52 +0000 (00:02 -0400)] 
Merge r1176 from trunk
Clear any warning/error messages set by archive_read_support_compression_*
functions, since we're ignoring their return codes.  This eliminates the
weird behaviour of printing "Using external unxz program for xz
decompression" if an unrelated error occurs when opening an archive (due
to the message lingering in the error message buffer).
------------------------------------------------------------------------

SVN-Revision: 1256

16 years agoMerge r1167 (part b) from trunk
Charles Wilson [Tue, 21 Jul 2009 04:01:57 +0000 (00:01 -0400)] 
Merge r1167 (part b) from trunk
Fix a bunch of tests on Visual Studio:
 * Now that we have better handling for missing compression,
   test_fuzz doesn't need to test whether it can handle
   a file before it tries fuzzing it.
libarchive/test/test_fuzz.c
------------------------------------------------------------------------

SVN-Revision: 1255

16 years agoMerge r1167 (part a) from trunk
Charles Wilson [Tue, 21 Jul 2009 03:57:55 +0000 (23:57 -0400)] 
Merge r1167 (part a) from trunk
Fix a bunch of tests on Visual Studio:
 * detect bzip2 unavailability and skip those tests
libarchive/test/test_read_format_cpio_bin_bz2.c
libarchive/test/test_read_format_pax_bz2.c
libarchive/test/test_read_format_tbz.c
------------------------------------------------------------------------

SVN-Revision: 1254

16 years agoMerge r1164 from trunk
Charles Wilson [Tue, 21 Jul 2009 03:56:12 +0000 (23:56 -0400)] 
Merge r1164 from trunk
Skip this test if libarchive isn't compiled with libbz2.
------------------------------------------------------------------------

SVN-Revision: 1253

16 years agoCorrect error when linking bsdtar/bsdcpio statically on cygwin
Charles Wilson [Tue, 21 Jul 2009 02:43:26 +0000 (22:43 -0400)] 
Correct error when linking bsdtar/bsdcpio statically on cygwin

SVN-Revision: 1252

16 years agoMerge r1243 from trunk. Equivalently:
Charles Wilson [Mon, 20 Jul 2009 05:14:00 +0000 (01:14 -0400)] 
Merge r1243 from trunk. Equivalently:
Merge r192031 from FreeBSD-CURRENT: Eliminate redundant error messages.

SVN-Revision: 1250

16 years agoMerge r1220 from trunk:
Charles Wilson [Sun, 19 Jul 2009 23:20:47 +0000 (19:20 -0400)] 
Merge r1220 from trunk:
Testsuite fixes for cygwin-1.5
* configure.ac: Detect cygwin-1.7.
* tar/test/test_copy.c: Better tuning for long filename tests.

SVN-Revision: 1249

16 years agoMerge r1219 from trunk:
Charles Wilson [Sun, 19 Jul 2009 23:15:55 +0000 (19:15 -0400)] 
Merge r1219 from trunk:
Various testsuite fixes for cygwin-1.7.

* libarchive/test/test_read_format_mtree.c: Fix typo in test.
* tar/test/test_patterns.c: Ensure tests work without root privilege.
* cpio/test/test_option_f.c: Ditto.
* cpio/test/test_option_m.c: Ditto.
* cpio/test/test_gcpio_compat.c: Ditto.

SVN-Revision: 1248

16 years agoMerge r1085 from trunk:
Charles Wilson [Sun, 19 Jul 2009 23:11:17 +0000 (19:11 -0400)] 
Merge r1085 from trunk:

Issue 23:  A minor correction to the new dosmaperr()
function.

SVN-Revision: 1247

16 years agoMerge r1084 from trunk:
Charles Wilson [Sun, 19 Jul 2009 23:10:39 +0000 (19:10 -0400)] 
Merge r1084 from trunk:

Add custom _dosmaperr() implementation (copied from
PostgreSQL) and use it instead of the undocumented
Windows CRT function (which isn't available in all versions
of Windows CRT).  Rename it to la_dosmaperr() to avoid
any name conflicts with the "standard" one.

SVN-Revision: 1246

16 years agoRevert r1019, per comment by Charles Wilson.
Tim Kientzle [Sat, 27 Jun 2009 23:51:01 +0000 (19:51 -0400)] 
Revert r1019, per comment by Charles Wilson.

SVN-Revision: 1193

16 years agoOops. Back out Makefile changes from r1173; those were
Tim Kientzle [Sat, 20 Jun 2009 06:06:29 +0000 (02:06 -0400)] 
Oops.  Back out Makefile changes from r1173; those were
unintentional.

SVN-Revision: 1174

16 years agoMerge r1172 from trunk: Fix "tar --options=iso9660:joliet"
Tim Kientzle [Sat, 20 Jun 2009 06:04:42 +0000 (02:04 -0400)] 
Merge r1172 from trunk:  Fix "tar --options=iso9660:joliet"

SVN-Revision: 1173

16 years agoIt appears that liblzma truly does use the 'memlimit' argument
Tim Kientzle [Fri, 12 Jun 2009 03:24:41 +0000 (23:24 -0400)] 
It appears that liblzma truly does use the 'memlimit' argument
to lzma_stream_decoder() and lzma_alone_decoder() as an upper
limit on the amount of memory they will allocate, allocating
less if the stream uses less.  So I don't see any reason to
not make this value very large.

SVN-Revision: 1147

16 years agoMerge r1093 from trunk: Correctly account for
Tim Kientzle [Mon, 25 May 2009 05:02:50 +0000 (01:02 -0400)] 
Merge r1093 from trunk: Correctly account for
"extra data" field when reading gzip headers.
In particular, this fixes reading gzip files that
have been signed with the OpenBSD "gzsig" program.

SVN-Revision: 1104

16 years agoMerge r1068 from trunk: This partially reverts r868, which
Tim Kientzle [Thu, 7 May 2009 22:55:24 +0000 (18:55 -0400)] 
Merge r1068 from trunk:  This partially reverts r868, which
broke tar handling of end-of-file when reading from a pipe.
With this change, tar once again flushes input from a pipe
which avoids SIGPIPE getting sent upstream.

SVN-Revision: 1069

16 years agoIssue 26: Fix failing cpio tests on systems where sgid bit propagates
Tim Kientzle [Tue, 21 Apr 2009 16:27:07 +0000 (12:27 -0400)] 
Issue 26: Fix failing cpio tests on systems where sgid bit propagates
to subdirectories.

SVN-Revision: 1050

16 years agoIssue 22: configure --without-openssl disables crypto hash support
Tim Kientzle [Mon, 20 Apr 2009 21:27:46 +0000 (17:27 -0400)] 
Issue 22: configure --without-openssl disables crypto hash support
and removes dependency on openssl and md libraries.

SVN-Revision: 1048

16 years agoMerge r1033 from trunk to fix Issue 25.
Tim Kientzle [Mon, 20 Apr 2009 06:22:50 +0000 (02:22 -0400)] 
Merge r1033 from trunk to fix Issue 25.

SVN-Revision: 1036

16 years agoMerge r1030 from trunk: Cast away a compiler warning.
Tim Kientzle [Sun, 19 Apr 2009 22:46:12 +0000 (18:46 -0400)] 
Merge r1030 from trunk: Cast away a compiler warning.

SVN-Revision: 1031

16 years agoMerge r1028 from trunk: Exit with ARCHIVE_FATAL on a truncated
Tim Kientzle [Sun, 19 Apr 2009 21:36:38 +0000 (17:36 -0400)] 
Merge r1028 from trunk:  Exit with ARCHIVE_FATAL on a truncated
ISO archive.

SVN-Revision: 1029

16 years agoMerge r1017 from libarchive/trunk: Include mode when creating file.
Tim Kientzle [Thu, 16 Apr 2009 23:59:12 +0000 (19:59 -0400)] 
Merge r1017 from libarchive/trunk: Include mode when creating file.

SVN-Revision: 1020

16 years agoRemove extraneous option.
Tim Kientzle [Thu, 16 Apr 2009 23:36:41 +0000 (19:36 -0400)] 
Remove extraneous option.

SVN-Revision: 1019

16 years ago2.7.0 v2.7.0
Tim Kientzle [Thu, 16 Apr 2009 23:35:31 +0000 (19:35 -0400)] 
2.7.0

SVN-Revision: 1018

16 years agoDisable the check for the exact output of "-tnv". The
Tim Kientzle [Thu, 16 Apr 2009 17:42:49 +0000 (13:42 -0400)] 
Disable the check for the exact output of "-tnv".  The
localized time display screws up this test.

SVN-Revision: 1004

16 years agoMerge r989 from libarchive/trunk: Fix a problem where the
Tim Kientzle [Tue, 14 Apr 2009 03:47:39 +0000 (23:47 -0400)] 
Merge r989 from libarchive/trunk:  Fix a problem where the
compress decompressor would loop endlessly at end-of-file.

SVN-Revision: 992

16 years ago2.6.992a
Tim Kientzle [Fri, 10 Apr 2009 23:00:22 +0000 (19:00 -0400)] 
2.6.992a

SVN-Revision: 949

16 years agoMerge r947 from libarchive/trunk: Avoid SIGPIPE if it's not available.
Tim Kientzle [Fri, 10 Apr 2009 21:25:58 +0000 (17:25 -0400)] 
Merge r947 from libarchive/trunk:  Avoid SIGPIPE if it's not available.

SVN-Revision: 948

16 years agoMerge r944 from libarchive/trunk: Fix
Tim Kientzle [Fri, 10 Apr 2009 05:50:58 +0000 (01:50 -0400)] 
Merge r944 from libarchive/trunk: Fix
a number of minor memory leaks.

SVN-Revision: 946

16 years agoProperty updates...
Tim Kientzle [Fri, 10 Apr 2009 05:41:47 +0000 (01:41 -0400)] 
Property updates...

SVN-Revision: 945

16 years ago2.6.991a should be the last test release prior to 2.7.0.
Tim Kientzle [Wed, 8 Apr 2009 07:43:37 +0000 (03:43 -0400)] 
2.6.991a should be the last test release prior to 2.7.0.

SVN-Revision: 940

16 years agoAllow 'make test' as a synonym for 'make check'.
Tim Kientzle [Wed, 8 Apr 2009 07:42:54 +0000 (03:42 -0400)] 
Allow 'make test' as a synonym for 'make check'.

SVN-Revision: 939

16 years agoBranch libarchive 2.7.
Tim Kientzle [Wed, 8 Apr 2009 07:09:00 +0000 (03:09 -0400)] 
Branch libarchive 2.7.

SVN-Revision: 938

16 years agoSummarize work since 2.6.
Tim Kientzle [Wed, 8 Apr 2009 07:05:42 +0000 (03:05 -0400)] 
Summarize work since 2.6.

SVN-Revision: 937

16 years agoVerify that fopen() succeeded.
Tim Kientzle [Wed, 8 Apr 2009 07:05:17 +0000 (03:05 -0400)] 
Verify that fopen() succeeded.

SVN-Revision: 936

16 years agoVerify that -p without a dirname fails.
Tim Kientzle [Sun, 5 Apr 2009 06:10:07 +0000 (02:10 -0400)] 
Verify that -p without a dirname fails.

SVN-Revision: 930

16 years agoVerify that -ot and -in (without -t) are considered errors.
Tim Kientzle [Sun, 5 Apr 2009 06:09:30 +0000 (02:09 -0400)] 
Verify that -ot and -in (without -t) are considered errors.

SVN-Revision: 929

16 years agoNew test for -Z (compress)
Tim Kientzle [Sun, 5 Apr 2009 05:47:56 +0000 (01:47 -0400)] 
New test for -Z (compress)

SVN-Revision: 928

16 years agoOoops. Correct the test name to match the filename.
Tim Kientzle [Sun, 5 Apr 2009 05:47:01 +0000 (01:47 -0400)] 
Ooops.  Correct the test name to match the filename.

SVN-Revision: 927

16 years agoRename the tests to a consistent style:
Tim Kientzle [Sun, 5 Apr 2009 05:24:45 +0000 (01:24 -0400)] 
Rename the tests to a consistent style:
  Test for -L = test_option_L_upper
  Test for -B = test_option_B_upper
  Test for -l = test_option_l
This should be reasonably legible and be sane
on case-insensitive systems.

SVN-Revision: 926

16 years agoAny pair of -i, -o, -p should be rejected.
Tim Kientzle [Sun, 5 Apr 2009 05:18:03 +0000 (01:18 -0400)] 
Any pair of -i, -o, -p should be rejected.

SVN-Revision: 925

16 years agoVerify -n option (modifier to -t) and verify some
Tim Kientzle [Sun, 5 Apr 2009 05:11:20 +0000 (01:11 -0400)] 
Verify -n option (modifier to -t) and verify some
that some nonsense arguments are properly rejected.

SVN-Revision: 924

16 years agoVerify some other cmdline boundary cases.
Tim Kientzle [Sun, 5 Apr 2009 05:09:31 +0000 (01:09 -0400)] 
Verify some other cmdline boundary cases.

SVN-Revision: 923

16 years agoFix the test name.
Tim Kientzle [Sun, 5 Apr 2009 05:03:13 +0000 (01:03 -0400)] 
Fix the test name.

SVN-Revision: 922

16 years agoBe a little smarter about finding our reference files
Tim Kientzle [Sun, 5 Apr 2009 04:41:38 +0000 (00:41 -0400)] 
Be a little smarter about finding our reference files
so that -r option isn't always needed.  This
makes it a lot easier to run the tests by hand.

SVN-Revision: 921

16 years agoTwo new tests:
Tim Kientzle [Sun, 5 Apr 2009 04:40:12 +0000 (00:40 -0400)] 
Two new tests:
  test_cmdline exercises some boundary cases in the cmdline parsing,
    including ambiguous long options, missing arguments, etc.
  test_option_C_upper exercises the -C option (the _upper is
    to prevent filename conflicts with test_option_c on case-insensitive
    systems).

SVN-Revision: 920

16 years agoSort the option list (-n comes before -o) and
Tim Kientzle [Sun, 5 Apr 2009 03:55:20 +0000 (23:55 -0400)] 
Sort the option list (-n comes before -o) and
clarify the explanation of -n just a bit.

SVN-Revision: 919

16 years agoDynamically size the buffer used for getpwuid_r and
Tim Kientzle [Sat, 4 Apr 2009 22:44:43 +0000 (18:44 -0400)] 
Dynamically size the buffer used for getpwuid_r and
getgrgid_r.  We allocate an initial buffer early
and then double it whenever we learn it is too small.
By keeping the buffer in the persistent cache state,
the cost should be very small.

SVN-Revision: 917

16 years agoPass the cache storage all the way down to the
Tim Kientzle [Sat, 4 Apr 2009 22:25:18 +0000 (18:25 -0400)] 
Pass the cache storage all the way down to the
lookup helper functions.

SVN-Revision: 916

16 years agoAccept test names on the command line, not just numbers.
Tim Kientzle [Sat, 4 Apr 2009 22:23:27 +0000 (18:23 -0400)] 
Accept test names on the command line, not just numbers.
In particular "libarchive_test test_fuzz" now works.

SVN-Revision: 915

16 years agoMake test not crash when group 0 lookup returns NULL.
Tim Kientzle [Sat, 4 Apr 2009 21:02:46 +0000 (17:02 -0400)] 
Make test not crash when group 0 lookup returns NULL.

SVN-Revision: 914

16 years agoSome privileged users can write to non-writable directories,
Tim Kientzle [Sat, 4 Apr 2009 20:29:11 +0000 (16:29 -0400)] 
Some privileged users can write to non-writable directories,
so this test needs to be skipped in that situation.

SVN-Revision: 913

16 years ago2.6.990a
Tim Kientzle [Thu, 2 Apr 2009 01:39:57 +0000 (21:39 -0400)] 
2.6.990a

SVN-Revision: 912

16 years agoFill in a few missing files.
Tim Kientzle [Thu, 2 Apr 2009 01:39:18 +0000 (21:39 -0400)] 
Fill in a few missing files.

SVN-Revision: 911

16 years agoThe distribution contains a pre-built list.h that includes
Tim Kientzle [Thu, 2 Apr 2009 01:38:45 +0000 (21:38 -0400)] 
The distribution contains a pre-built list.h that includes
test_windows.c.  By default, cmake seems to pick up the
existing list.h instead of remaking it, so we'd better
always compile test_windows.c.  It includes enough compile
guards that this is safe on all platforms.

SVN-Revision: 910

16 years agola_syslibsearchpath.m4 is no longer needed.
Tim Kientzle [Thu, 2 Apr 2009 00:41:10 +0000 (20:41 -0400)] 
la_syslibsearchpath.m4 is no longer needed.

SVN-Revision: 909

16 years agoFreeBSD build tweaks.
Tim Kientzle [Thu, 2 Apr 2009 00:36:40 +0000 (20:36 -0400)] 
FreeBSD build tweaks.

SVN-Revision: 908

16 years agoMinor adjustment to uname/gname lookup: Bump the buffer
Tim Kientzle [Thu, 2 Apr 2009 00:36:05 +0000 (20:36 -0400)] 
Minor adjustment to uname/gname lookup:  Bump the buffer
size to 128 bytes.  The buffer should be allocated dynamically
here.

SVN-Revision: 907

16 years agoFreeBSD build updates.
Tim Kientzle [Thu, 2 Apr 2009 00:35:02 +0000 (20:35 -0400)] 
FreeBSD build updates.

SVN-Revision: 906

16 years agoIssue 19: Use getpwnam_r/getgrnam_r to look up uids and gids,
Tim Kientzle [Thu, 2 Apr 2009 00:30:54 +0000 (20:30 -0400)] 
Issue 19: Use getpwnam_r/getgrnam_r to look up uids and gids,
since they're thread-safe.

SVN-Revision: 905

16 years agoIssue 18: Limit compression-level to 6 within the
Tim Kientzle [Wed, 1 Apr 2009 22:55:09 +0000 (18:55 -0400)] 
Issue 18:  Limit compression-level to 6 within the
write options processing.  Restore the test to
exercise compression-level=9, which should work now
(even though the results should not be any different
than compression-level=6).  In particular, all compression
writers should now accept a compression-level option
with values from 0 through 9.

SVN-Revision: 904

16 years agoLookup uname/gname when pulling metadata off disk.
Tim Kientzle [Wed, 1 Apr 2009 22:51:28 +0000 (18:51 -0400)] 
Lookup uname/gname when pulling metadata off disk.
Add a basic test for read_disk_entry_from file to verify this.

SVN-Revision: 903

16 years agoNow that we have command-line fallbacks for all compression
Tim Kientzle [Wed, 1 Apr 2009 22:48:35 +0000 (18:48 -0400)] 
Now that we have command-line fallbacks for all compression
formats, we can enable them unconditionally.

SVN-Revision: 902

16 years agoAdd a config.h macro for <signal.h>
Tim Kientzle [Wed, 1 Apr 2009 22:47:11 +0000 (18:47 -0400)] 
Add a config.h macro for <signal.h>

SVN-Revision: 901

16 years agoRemove an unnecessary variable.
Tim Kientzle [Wed, 1 Apr 2009 22:46:30 +0000 (18:46 -0400)] 
Remove an unnecessary variable.

SVN-Revision: 900

16 years agoOuch. Stdout is fd 1, not zero.
Tim Kientzle [Wed, 1 Apr 2009 22:05:15 +0000 (18:05 -0400)] 
Ouch.  Stdout is fd 1, not zero.

SVN-Revision: 899

16 years agoSome cleanup and testing of the XZ and LZMA writer:
Tim Kientzle [Wed, 1 Apr 2009 19:54:33 +0000 (15:54 -0400)] 
Some cleanup and testing of the XZ and LZMA writer:
 * Fix the options parser to use a separate config object.
 * Set the compression code and name at setup time.
 * Copy the gzip/bzip2 write tests to create new XZ and LZMA write tests

SVN-Revision: 898

16 years agoDecouple inttypes.h and stdint.h. Newer Interix needs both.
Joerg Sonnenberger [Wed, 1 Apr 2009 11:43:27 +0000 (07:43 -0400)] 
Decouple inttypes.h and stdint.h. Newer Interix needs both.

SVN-Revision: 897

16 years agoOuch. Remove some debugging code.
Tim Kientzle [Wed, 1 Apr 2009 07:42:23 +0000 (03:42 -0400)] 
Ouch.  Remove some debugging code.

SVN-Revision: 896

16 years agoSkip this test if we have incomplete lzma support.
Tim Kientzle [Wed, 1 Apr 2009 07:37:11 +0000 (03:37 -0400)] 
Skip this test if we have incomplete lzma support.

SVN-Revision: 895

16 years agoHave xz/lzma support fall back to the unxz/unlzma command-line utilities
Tim Kientzle [Wed, 1 Apr 2009 07:36:15 +0000 (03:36 -0400)] 
Have xz/lzma support fall back to the unxz/unlzma command-line utilities
if the libraries were unavailable at build time.  Have the public setup
functions return ARCHIVE_WARN in this case.  Update the tests to
detect this situation and simply skip the appropriate tests.

TODO: Update one of these tests to use systemf() to try
running the command-line tool; if we can find it, run the
test anyway.  That will give us some coverage of the fallback
handling.

SVN-Revision: 894

16 years agoIf the necessary libraries are missing for gzip/bzip2 writing,
Tim Kientzle [Wed, 1 Apr 2009 07:32:55 +0000 (03:32 -0400)] 
If the necessary libraries are missing for gzip/bzip2 writing,
have the public setup function return ARCHIVE_FATAL and a suitable
error message.  Alter the write tests to simply skip if the
initial compression setup returns ARCHIVE_FATAL.  This should
fix these tests on platforms without zlib/bzlib.

SVN-Revision: 893

16 years agoIf the bzip2 library isn't available, skip a lot of tests, following
Tim Kientzle [Wed, 1 Apr 2009 07:30:24 +0000 (03:30 -0400)] 
If the bzip2 library isn't available, skip a lot of tests, following
the style recently introduced for the gzip tests.

SVN-Revision: 892

16 years agoStyle improvement: If gzip compression is unsupported, just
Tim Kientzle [Wed, 1 Apr 2009 07:27:33 +0000 (03:27 -0400)] 
Style improvement:  If gzip compression is unsupported, just
exit from that point, don't put the entire rest of the test in
an else{} clause.

SVN-Revision: 891

16 years agoarchive_read_support_compression_bzip2() now supports fallback to
Tim Kientzle [Wed, 1 Apr 2009 05:48:09 +0000 (01:48 -0400)] 
archive_read_support_compression_bzip2() now supports fallback to
bunzip2 command-line program if it is compiled without bzlib support.
It returns ARCHIVE_WARN in this case, so that the test harness
(or other clients) can detect this degraded state.

SVN-Revision: 890

16 years agoarchive_read_support_compression_gzip() now returns ARCHIVE_WARN
Tim Kientzle [Wed, 1 Apr 2009 04:52:48 +0000 (00:52 -0400)] 
archive_read_support_compression_gzip() now returns ARCHIVE_WARN
if decompression is being handled via an external program.
This simplifies the many tests that need to check whether we have
full gzip support or not.  While reworking these tests, I've also
updated the style of many of them to use assertEqualFoo() instead
of plain assert() and fixed an oversight in main.c that caused it
to print an alarm if a single skip was processed multiple times.

SVN-Revision: 889

16 years agoOooops. Forgot to add check signal.h, which is used by the
Tim Kientzle [Wed, 1 Apr 2009 01:51:35 +0000 (21:51 -0400)] 
Oooops.  Forgot to add check signal.h, which is used by the
recent read_compression_program updates.

SVN-Revision: 888

16 years agoMinor svn:ignore update.
Tim Kientzle [Wed, 1 Apr 2009 01:50:39 +0000 (21:50 -0400)] 
Minor svn:ignore update.

SVN-Revision: 887

16 years ago1. Make the UTF-8 <-> Unicode conversions more robust by
Tim Kientzle [Wed, 1 Apr 2009 01:49:08 +0000 (21:49 -0400)] 
1. Make the UTF-8 <-> Unicode conversions more robust by
handling surrogate pairs correctly.  This should be general
enough (and portable enough) to be used on all platforms,
even Windows, so I've removed the Windows-specific versions
of this.

2. On POSIX systems, prefer the thread-safe wcrtomb()
for Unicode <-> current locale conversions when it's
available; fall back to wctomb() where necessary.

SVN-Revision: 886

16 years agoComment updates.
Tim Kientzle [Wed, 1 Apr 2009 01:44:30 +0000 (21:44 -0400)] 
Comment updates.

SVN-Revision: 885

16 years agoImprove the error handling here just a bit by harvesting
Tim Kientzle [Wed, 1 Apr 2009 01:42:20 +0000 (21:42 -0400)] 
Improve the error handling here just a bit by harvesting
the child (and collecting its exit status) whenever the
child closes stdout.  By not waiting until archive_close,
we catch most cases of a failed child at the first
real I/O (usually archive_read_next_header).

I'm still investigating whether it makes sense to try
pushing this even earlier...  It may be possible to
detect some child failures as early as read_open() time.

SVN-Revision: 884

16 years agoDon't carry old error text through to archive_read_close.
Tim Kientzle [Wed, 1 Apr 2009 01:39:10 +0000 (21:39 -0400)] 
Don't carry old error text through to archive_read_close.

SVN-Revision: 883

16 years agoMinor FreeBSD build fixes.
Tim Kientzle [Wed, 1 Apr 2009 01:38:31 +0000 (21:38 -0400)] 
Minor FreeBSD build fixes.

SVN-Revision: 882

16 years agoDon't recognize a file as "empty" if it couldn't be read; only
Tim Kientzle [Wed, 1 Apr 2009 01:37:54 +0000 (21:37 -0400)] 
Don't recognize a file as "empty" if it couldn't be read; only
recognize it as empty if it has zero bytes.

SVN-Revision: 881

16 years agosvn:ignore update.
Tim Kientzle [Wed, 1 Apr 2009 01:36:40 +0000 (21:36 -0400)] 
svn:ignore update.

SVN-Revision: 880

16 years agoTest the case where we try to invoke a non-existent read filter program.
Tim Kientzle [Wed, 1 Apr 2009 01:35:59 +0000 (21:35 -0400)] 
Test the case where we try to invoke a non-existent read filter program.

SVN-Revision: 879

16 years agoUpdate FreeBSD-specific Makefile
Tim Kientzle [Wed, 1 Apr 2009 01:34:58 +0000 (21:34 -0400)] 
Update FreeBSD-specific Makefile

SVN-Revision: 878

16 years agoMove the test data out of the source and into a uuencoded reference file.
Tim Kientzle [Wed, 1 Apr 2009 01:29:26 +0000 (21:29 -0400)] 
Move the test data out of the source and into a uuencoded reference file.

SVN-Revision: 877