diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-05-26 17:00:24 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-05-26 17:00:24 +0000 |
commit | a24d28f8e3d3892010c91baad77e2178c6a16ba2 (patch) | |
tree | d200bbdabe22d32b68a61172999be232d0c31d75 /lib/libarchive/test/Makefile | |
parent | 268a4c430f25bc479b5e1e097f51394aa0f1fffb (diff) | |
download | FreeBSD-src-a24d28f8e3d3892010c91baad77e2178c6a16ba2.zip FreeBSD-src-a24d28f8e3d3892010c91baad77e2178c6a16ba2.tar.gz |
MFp4: libarchive 2.5.4b. (Still 'b' until I get a bit more
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.
Diffstat (limited to 'lib/libarchive/test/Makefile')
-rw-r--r-- | lib/libarchive/test/Makefile | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/lib/libarchive/test/Makefile b/lib/libarchive/test/Makefile index c64a6ee..f718ae3 100644 --- a/lib/libarchive/test/Makefile +++ b/lib/libarchive/test/Makefile @@ -18,6 +18,7 @@ TESTS= \ test_empty_write.c \ test_entry.c \ test_entry_strmode.c \ + test_link_resolver.c \ test_pax_filename_encoding.c \ test_read_compress_program.c \ test_read_data_large.c \ @@ -38,6 +39,7 @@ TESTS= \ test_read_format_mtree.c \ test_read_format_pax_bz2.c \ test_read_format_tar.c \ + test_read_format_tar_empty_filename.c \ test_read_format_tbz.c \ test_read_format_tgz.c \ test_read_format_tz.c \ @@ -48,6 +50,7 @@ TESTS= \ test_read_truncated.c \ test_tar_filenames.c \ test_tar_large.c \ + test_ustar_filenames.c \ test_write_compress_program.c \ test_write_compress.c \ test_write_disk.c \ @@ -61,6 +64,7 @@ TESTS= \ test_write_format_cpio_empty.c \ test_write_format_shar_empty.c \ test_write_format_tar.c \ + test_write_format_tar_ustar.c \ test_write_format_tar_empty.c \ test_write_open_memory.c @@ -68,12 +72,10 @@ TESTS= \ # Build the test program using all libarchive sources + the test sources. SRCS= ${LA_SRCS} \ ${TESTS} \ - list.h \ + ${.OBJDIR}/list.h \ main.c \ read_open_memory.c -CLEANFILES+= list.h archive.h - NO_MAN=yes PROG=libarchive_test @@ -82,12 +84,7 @@ DPADD=${LIBBZ2} ${LIBZ} CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\" LDADD= -lz -lbz2 CFLAGS+= -static -g -CFLAGS+= -I${.OBJDIR} -CFLAGS+= -I${.CURDIR} CFLAGS+= -I${LA_SRCDIR} -# Without this, libarchive source files find archive.h in LA_SRCDIR, -# which may not be the same as archive.h in the test dir. -CFLAGS+= -I- # Uncomment to link against dmalloc LDADD+= -L/usr/local/lib -ldmalloc @@ -96,20 +93,13 @@ WARNS=6 # Build libarchive_test and run it. check test: libarchive_test - ./libarchive_test -k -r ${.CURDIR} - -INCS=archive.h list.h - -# Build archive.h, but in our .OBJDIR, not libarchive's -# This keeps libarchive_test and libarchive builds completely separate. -archive.h: ${LA_SRCDIR}/archive.h.in ${LA_SRCDIR}/Makefile - cd ${LA_SRCDIR} && unset MAKEOBJDIRPREFIX && MAKEOBJDIR=${.OBJDIR} make archive.h + ./libarchive_test -v -r ${.CURDIR} # list.h is just a list of all tests, as indicated by DEFINE_TEST macro lines -list.h: ${TESTS} Makefile +${.OBJDIR}/list.h: ${TESTS} Makefile (cd ${.CURDIR}; cat ${TESTS}) | grep DEFINE_TEST > list.h -CLEANFILES += *.out *.o *.core *~ list.h archive.h +CLEANFILES += *.out *.o *.core *~ list.h cleantest: -chmod -R +w /tmp/libarchive_test.* |