]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
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

16 years agoFix a couple of compiler errors.
Tim Kientzle [Sun, 29 Mar 2009 07:23:37 +0000 (03:23 -0400)] 
Fix a couple of compiler errors.

SVN-Revision: 876

16 years agoTest the bzip2 writer, add support for a "compression-level" option.
Tim Kientzle [Sun, 29 Mar 2009 07:20:28 +0000 (03:20 -0400)] 
Test the bzip2 writer, add support for a "compression-level" option.

SVN-Revision: 875

16 years agoTest the compression code and name.
Tim Kientzle [Sun, 29 Mar 2009 07:18:01 +0000 (03:18 -0400)] 
Test the compression code and name.

SVN-Revision: 874

16 years agoWe set the options handler in the install function; we don't need to
Tim Kientzle [Sun, 29 Mar 2009 07:17:25 +0000 (03:17 -0400)] 
We set the options handler in the install function; we don't need to
set it again in the init function.

SVN-Revision: 873

16 years agoOnly return ARCHIVE_WARN from set_options if no format AND no compressor
Tim Kientzle [Sun, 29 Mar 2009 07:16:15 +0000 (03:16 -0400)] 
Only return ARCHIVE_WARN from set_options if no format AND no compressor
can use these options.
Clear errors on entry to compressor_options and format_options in an
attempt to reduce the redundancy a bit.  This needs to be refactored
somewhat to improve the error messages.

SVN-Revision: 872

16 years agoMore work on extending test coverage...
Tim Kientzle [Sun, 29 Mar 2009 06:34:42 +0000 (02:34 -0400)] 
More work on extending test coverage...

Test the gzip compressor more carefully, including exercising
the compress-level option.  Fix the option setter to use
a separate config data structure so that configuration options
such as compression level can be set before the compressor
is actually initialized.

SVN-Revision: 871

16 years agoOnly allow options to be changed up until the archive is opened.
Tim Kientzle [Sun, 29 Mar 2009 06:32:12 +0000 (02:32 -0400)] 
Only allow options to be changed up until the archive is opened.

SVN-Revision: 870

16 years agoOoops. I forgot to remove the declarations when I removed the
Tim Kientzle [Sun, 29 Mar 2009 06:29:16 +0000 (02:29 -0400)] 
Ooops.  I forgot to remove the declarations when I removed the
opener functions.

SVN-Revision: 869

16 years agoImprove test coverage:
Tim Kientzle [Sun, 29 Mar 2009 04:31:57 +0000 (00:31 -0400)] 
Improve test coverage:
* Add new tests of archive_{read,write}_open_{fd,FILE,filename}
* Refactor the corresponding code to reduce the number of unreachable
  cases and eliminate a lot of duplicated code.  In particular,
  {read,write}_open_filename now simply invoke {read,write}_open_fd to
  handle handle the fallback case of reading stdin when called with an
  empty filename.
* Eliminate the unnecessary "open" callbacks; "open" callbacks are
  never needed (I plan to eliminate them from the API someday).

SVN-Revision: 868

16 years agoReturn success if "dironly" flag is being manipulated.
Tim Kientzle [Sun, 29 Mar 2009 03:22:58 +0000 (23:22 -0400)] 
Return success if "dironly" flag is being manipulated.

SVN-Revision: 867

16 years agoSome extra files that were omitted from the distribution.
Tim Kientzle [Fri, 27 Mar 2009 07:06:00 +0000 (03:06 -0400)] 
Some extra files that were omitted from the distribution.

SVN-Revision: 866

16 years agoSimplify this a tad.
Tim Kientzle [Fri, 27 Mar 2009 07:05:15 +0000 (03:05 -0400)] 
Simplify this a tad.

SVN-Revision: 865

16 years agoMake it easier for mdoc2man to format this correctly.
Tim Kientzle [Fri, 27 Mar 2009 07:04:48 +0000 (03:04 -0400)] 
Make it easier for mdoc2man to format this correctly.

SVN-Revision: 864

16 years agosvn:ignore the built files in these directories.
Tim Kientzle [Fri, 27 Mar 2009 07:04:22 +0000 (03:04 -0400)] 
svn:ignore the built files in these directories.

SVN-Revision: 863

16 years agoImprove the conversion of mdoc to man format.
Tim Kientzle [Fri, 27 Mar 2009 07:04:01 +0000 (03:04 -0400)] 
Improve the conversion of mdoc to man format.

SVN-Revision: 862

16 years agoMention mtree:indent even though I'm not entirely sure what it does.
Tim Kientzle [Thu, 26 Mar 2009 07:05:16 +0000 (03:05 -0400)] 
Mention mtree:indent even though I'm not entirely sure what it does.

SVN-Revision: 861

16 years agoThe argument is spelled with an 's': --options
Tim Kientzle [Thu, 26 Mar 2009 07:04:08 +0000 (03:04 -0400)] 
The argument is spelled with an 's': --options

SVN-Revision: 860

16 years agoDocument --option
Tim Kientzle [Thu, 26 Mar 2009 07:02:49 +0000 (03:02 -0400)] 
Document --option

SVN-Revision: 859

16 years agoSet options before opening the archive.
Tim Kientzle [Thu, 26 Mar 2009 06:25:35 +0000 (02:25 -0400)] 
Set options before opening the archive.

SVN-Revision: 858

16 years agoRename --format-options to simply --options, since these are options
Tim Kientzle [Thu, 26 Mar 2009 06:23:14 +0000 (02:23 -0400)] 
Rename --format-options to simply --options, since these are options
for filter/compressors as well as format handlers.
On write, set options before we open the file.

SVN-Revision: 857

16 years agoFreeBSD has MD5, RMD160, and various SHA headers and libraries.
Tim Kientzle [Thu, 26 Mar 2009 06:19:28 +0000 (02:19 -0400)] 
FreeBSD has MD5, RMD160, and various SHA headers and libraries.

SVN-Revision: 856

16 years agoSucceed with ARCHIVE_OK if we're given a NULL or empty options argument.
Tim Kientzle [Thu, 26 Mar 2009 06:18:19 +0000 (02:18 -0400)] 
Succeed with ARCHIVE_OK if we're given a NULL or empty options argument.
Return ARCHIVE_WARN if any option is unclaimed.

SVN-Revision: 855

16 years agoSucceed if we're handed an empty or NULL option argument.
Tim Kientzle [Thu, 26 Mar 2009 06:16:47 +0000 (02:16 -0400)] 
Succeed if we're handed an empty or NULL option argument.
In particular, this simplifies clients such as bsdtar, which can
now simply call archive_read_set_options() with a fixed string
that may be NULL.

SVN-Revision: 854

16 years agoReturn ARCHIVE_OK for "indent" and "use-set" options, which
Tim Kientzle [Thu, 26 Mar 2009 06:14:29 +0000 (02:14 -0400)] 
Return ARCHIVE_OK for "indent" and "use-set" options, which
are consumed but don't use the 'keybit' mechanism.  Without
this, mtree options returned ARCHIVE_WARN ("not used") for
these options.

SVN-Revision: 853

16 years agoUse a better mechanism to portably find binmode.o
Charles Wilson [Thu, 26 Mar 2009 01:59:56 +0000 (21:59 -0400)] 
Use a better mechanism to portably find binmode.o

SVN-Revision: 852

16 years agoAnother stab at Issue 9: Change off_t to int64_t in test_tar_large.c.
Tim Kientzle [Wed, 25 Mar 2009 20:45:36 +0000 (16:45 -0400)] 
Another stab at Issue 9: Change off_t to int64_t in test_tar_large.c.

SVN-Revision: 844

16 years agoWhen generating list.h file, Do not check CMAKE_CURRENT_LIST_FILE
Michihiro NAKAJIMA [Wed, 25 Mar 2009 10:58:45 +0000 (06:58 -0400)] 
When generating list.h file, Do not check CMAKE_CURRENT_LIST_FILE
at GENERATE_LIST_H macro. It will have a wrong path
if GENERATE_LIST_H macro is called from other CMakeList.txt.

SVN-Revision: 843

16 years agoRevert r838,r839 and r840.
Michihiro NAKAJIMA [Wed, 25 Mar 2009 09:14:53 +0000 (05:14 -0400)] 
Revert r838,r839 and r840.

SVN-Revision: 842

16 years agoAdd archive_read_next_header2(), which populates the archive_entry
Tim Kientzle [Tue, 24 Mar 2009 20:01:00 +0000 (16:01 -0400)] 
Add archive_read_next_header2(), which populates the archive_entry
object passed into it.  Make archive_read_next_header() be the obvious
wrapper that just reuses a single entry object.  This has been shown
to provide a big speedup for cases where people want to generate a list
of every entry in an archive; creating a new entry is faster than cloning
an existing entry.

Thanks to: Brian Harring

SVN-Revision: 841

16 years agoMake archive_windows.c internal static library.
Michihiro NAKAJIMA [Tue, 24 Mar 2009 13:49:10 +0000 (09:49 -0400)] 
Make archive_windows.c internal static library.
Now bsdtar and bsdcpio on Windows can be made by
both static build and dynamic build.

SVN-Revision: 840

16 years agoRemove useless '#ifndef LIST_H' condition.
Michihiro NAKAJIMA [Tue, 24 Mar 2009 09:29:24 +0000 (05:29 -0400)] 
Remove useless '#ifndef LIST_H' condition.

SVN-Revision: 839

16 years agoRemove a lot of duplicate functions which simulates POSIX
Michihiro NAKAJIMA [Tue, 24 Mar 2009 09:04:15 +0000 (05:04 -0400)] 
Remove a lot of duplicate functions which simulates POSIX
function for Windows platform. And move the remaining
simulate functions to archive_windows.[ch].  It will be
easy maintenance and avoid the same named functions having
different codes. This change does *not* mean libarchive
library has those ones or exports it. All libarchive's
executable programs include archive_windows.c for one of
its program files.

SVN-Revision: 838

16 years agoImprove a progress of the cmake's test.
Michihiro NAKAJIMA [Mon, 23 Mar 2009 08:30:03 +0000 (04:30 -0400)] 
Improve a progress of the cmake's test.
Now cmake test results are:

Running tests...
Start processing tests
Test project /home/cue/libarchive/gogo/cbuld
  1/111 Testing libarchive_test_acl_basic        Passed
  2/111 Testing libarchive_test_acl_freebsd      Passed
  3/111 Testing libarchive_test_acl_pax          Passed
--- snip ---
 75/111 Testing libarchive_test_write_format_t   Passed
 76/111 Testing libarchive_test_write_open_mem   Passed
 77/111 Testing bsdtar_test_0                    Passed
 78/111 Testing bsdtar_test_basic                Passed
 79/111 Testing bsdtar_test_copy                 Passed
--- snip ---
109/111 Testing bsdcpio_test_passthrough_dotdo   Passed
110/111 Testing bsdcpio_test_passthrough_rever   Passed
111/111 Testing bsdcpio_test_pathmatch           Passed

100% tests passed, 0 tests failed out of 111

SVN-Revision: 837

16 years agoAdd installation of PDF documents into CMakeLists.txt
Michihiro NAKAJIMA [Mon, 23 Mar 2009 00:25:29 +0000 (20:25 -0400)] 
Add installation of PDF documents into CMakeLists.txt
for Windows platform.

SVN-Revision: 836

16 years agoIssue 16: Change the text files to all end in '.txt' for the
Tim Kientzle [Sun, 22 Mar 2009 17:17:27 +0000 (13:17 -0400)] 
Issue 16: Change the text files to all end in '.txt' for the
convenience of file browsers (including Windows shell, KDE, Mac OS
Finder, etc) that use file extensions as a type hint.

SVN-Revision: 835

16 years agoIssue 16: Generate PDF documentation as well as text and man formats.
Tim Kientzle [Sun, 22 Mar 2009 17:02:56 +0000 (13:02 -0400)] 
Issue 16:  Generate PDF documentation as well as text and man formats.

SVN-Revision: 834

16 years agoCatch up with r829.
Michihiro NAKAJIMA [Sun, 22 Mar 2009 10:39:08 +0000 (06:39 -0400)] 
Catch up with r829.

SVN-Revision: 833

16 years agosvn:ignore tuneup
Tim Kientzle [Sun, 22 Mar 2009 06:24:43 +0000 (02:24 -0400)] 
svn:ignore tuneup

SVN-Revision: 832

16 years agoRemove unused dir.
Tim Kientzle [Sun, 22 Mar 2009 06:23:26 +0000 (02:23 -0400)] 
Remove unused dir.

SVN-Revision: 831

16 years agoAdd PROJECTS to the distribution, sort the file list.
Tim Kientzle [Sun, 22 Mar 2009 06:12:26 +0000 (02:12 -0400)] 
Add PROJECTS to the distribution, sort the file list.

SVN-Revision: 830

16 years agoAdd a check for wcrtomb() and control the FreeBSD extattr function
Tim Kientzle [Sun, 22 Mar 2009 06:03:22 +0000 (02:03 -0400)] 
Add a check for wcrtomb() and control the FreeBSD extattr function
tests by --enable-xattr as well.

SVN-Revision: 829

16 years agoFiles that are used by the autoconf build system belong in
Tim Kientzle [Sun, 22 Mar 2009 05:58:07 +0000 (01:58 -0400)] 
Files that are used by the autoconf build system belong in
the build/autoconf dir.  We may need to further split that
out to separate the files that get generated by autoconf/automake/etc
from the files that are provided by libarchive.

SVN-Revision: 828

16 years agoIssue 15, part 14. Build system
Charles Wilson [Sat, 21 Mar 2009 14:25:50 +0000 (10:25 -0400)] 
Issue 15, part 14. Build system
  build/m4/la_syslibsearchpath.m4: New.  Allows to automatically
      determine where binmode.o is located, even on cross builds (hopefully).
  configure.ac: specify AC_CONFIG_MACRO_DIR, AC_CANONICAL_HOST, and
      AC_LIBTOOL_WIN32_DLL. Add new AM_CONDITIONALs INC_WINDOWS_FILES and
      INC_CYGWIN_FILES. Use new macro LA_SYS_LIB_SEARCH_PATH to set
      new AC_SUBST, PROG_LDADD_EXTRA, to <some path>/binmode.o on cygwin.
  Makefile.am: Specify ACLOCAL_AMFLAGS. Use INC_WINDOWS_FILES and
      INC_CYGWIN_FILES where appropriate. Update all *_EXTRA_DIST variables
      with new files. Add -DLIBARCHIVE_STATIC to all *_test_CPPFLAGS. Add
      or update existing ${APP}_LDADD to specify @PROG_LDADD_EXTRA@ (this
      enables to link apps with binmode.o on cygwin).

Works on cygwin (ac-2.63, am-1.10.1, libtool-2.2.7a). Passes all tests.
Works on linux (ac-2.61, am-1.10, libtool-1.5.22). Passes all tests.

 Makefile.am                     |   75 +++++++++++++++++++++++++++++++----
 build/m4/la_syslibsearchpath.m4 |   84 ++++++++++++++++++++++++++++++++++++++++
 configure.ac                    |   34 ++++++++++++++++

SVN-Revision: 827

16 years agoAdd support both static and dynamic build of bsdtar and bsdcpio
Michihiro NAKAJIMA [Sat, 21 Mar 2009 02:33:49 +0000 (22:33 -0400)] 
Add support both static and dynamic build of bsdtar and bsdcpio
to the cmake build process except Windows.

SVN-Revision: 826

16 years agoOn Windows, build bsdcpio by default.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 21:41:16 +0000 (17:41 -0400)] 
On Windows, build bsdcpio by default.

SVN-Revision: 825

16 years agoTesting: test_pathmatch.c now has 100% test coverage of pathmatch.c
Tim Kientzle [Fri, 20 Mar 2009 19:21:45 +0000 (15:21 -0400)] 
Testing:  test_pathmatch.c now has 100% test coverage of pathmatch.c
Allow '$' to force anchor at end iff PATHMATCH_NO_ANCHOR_END is in flags.
Fix backslash escaping so that patterns such as "\\/./" or "/\\./" match
an explicit "/./" but do not match plain "/", even though "/./" does
ordinarily match "/".

I think this is finally sufficient to match my long-standing desire
to be able to extract "./foo/" by just asking for "foo".
There's still an open question whether this can be extended to handle
Windows-style \ path separators without causing conflicts with
the use of \ as a quote character.  I don't think it can.

SVN-Revision: 824

16 years agoSplit a CMakeLists.txt into each subdirectory, and remove
Michihiro NAKAJIMA [Fri, 20 Mar 2009 12:57:14 +0000 (08:57 -0400)] 
Split a CMakeLists.txt into each subdirectory, and remove
useless '#include LIST_H'. It was used for out-of-source build
with the previous CMakeLists.txt.

SVN-Revision: 823

16 years agoAdd test_entry_strmode.c into CMakeLists.txt.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 10:03:12 +0000 (06:03 -0400)] 
Add test_entry_strmode.c into CMakeLists.txt.
It's forgotten for a long time.

SVN-Revision: 822

16 years agoCatch up with r819 for cmake.
Michihiro NAKAJIMA [Fri, 20 Mar 2009 09:14:13 +0000 (05:14 -0400)] 
Catch up with r819 for cmake.

SVN-Revision: 821

16 years agoIssue 15, part 13. cygwin test failures
Charles Wilson [Fri, 20 Mar 2009 07:52:34 +0000 (03:52 -0400)] 
Issue 15, part 13. cygwin test failures
  cpio/test/test_owner_parse.c: Attempt to work around lack
     of 'root' account. May need to revisit.
  libarchive/archive_write_disk.c: For cygwin, go ahead and try
     to chown if requested; don't assume failure based on uid/gid.
  libarchive/test/test_read_disk.c: For cygwin, don't attempt
     to verify "standare" uname/gname lookup.

SVN-Revision: 820

16 years agoIssue 15, part 12. wchar_t is only 16 bits
Charles Wilson [Fri, 20 Mar 2009 07:14:49 +0000 (03:14 -0400)] 
Issue 15, part 12. wchar_t is only 16 bits
   Check the size in configure.ac/CMakeLists.txt,
   and react as needed in libarchive/archive_string.c.

SVN-Revision: 819