cdf63a700c
Update libarchive to 3.2.0 New features: - new bsdcat command-line utility - LZ4 compression (in src only via external utility from ports) - Warc format support - 'Raw' format writer - Zip: Support archives >4GB, entries >4GB - Zip: Support encrypting and decrypting entries - Zip: Support experimental streaming extension - Identify encrypted entries in several formats - New --clear-nochange-flags option to bsdtar tries to remove noschg and similar flags before deleting files - New --ignore-zeros option to bsdtar to handle concatenated tar archives - Use multi-threaded LZMA decompression if liblzma supports it - Expose version info for libraries used by libarchive Patched files (fixed compiler warnings): contrib/libarchive/cat/bsdcat.c (vendor PR #702) contrib/libarchive/cat/bsdcat.h (vendor PR #702) contrib/libarchive/libarchive/archive_read_support_format_mtree.c (PR #701) contrib/libarchive/libarchive_fe/err.c (vendor PR #703) MFC after: 1 month Relnotes: yes
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE= tests
|
|
|
|
_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive
|
|
|
|
ATF_TESTS_SH+= functional_test
|
|
|
|
BINDIR= ${TESTSDIR}
|
|
|
|
PROGS+= bsdcat_test
|
|
|
|
CFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\"
|
|
CFLAGS+= -I${SRCTOP}/lib/libarchive -I${.OBJDIR}
|
|
|
|
CFLAGS+= -I${.OBJDIR}
|
|
CFLAGS+= -I${_LIBARCHIVEDIR}/cat -I${_LIBARCHIVEDIR}/libarchive_fe
|
|
CFLAGS+= -I${_LIBARCHIVEDIR}/test_utils
|
|
|
|
# Uncomment to link against dmalloc
|
|
#LDADD+= -L/usr/local/lib -ldmalloc
|
|
#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
|
|
|
|
.PATH: ${_LIBARCHIVEDIR}/cat/test
|
|
TESTS_SRCS= \
|
|
test_0.c \
|
|
test_empty_gz.c \
|
|
test_empty_lz4.c \
|
|
test_empty_xz.c \
|
|
test_error.c \
|
|
test_error_mixed.c \
|
|
test_expand_Z.c \
|
|
test_expand_bz2.c \
|
|
test_expand_gz.c \
|
|
test_expand_lz4.c \
|
|
test_expand_mixed.c \
|
|
test_expand_plain.c \
|
|
test_expand_xz.c \
|
|
test_help.c \
|
|
test_version.c
|
|
|
|
SRCS.bsdcat_test= list.h \
|
|
${TESTS_SRCS} \
|
|
main.c
|
|
|
|
.PATH: ${_LIBARCHIVEDIR}/test_utils
|
|
SRCS.bsdcat_test+= test_utils.c
|
|
|
|
LIBADD.bsdcat_test= archive
|
|
|
|
list.h: ${TESTS_SRCS} Makefile
|
|
@(cd ${_LIBARCHIVEDIR}/tar/test && \
|
|
grep -h DEFINE_TEST ${.ALLSRC:N*Makefile}) > ${.TARGET}.tmp
|
|
@mv ${.TARGET}.tmp ${.TARGET}
|
|
|
|
CLEANFILES+= list.h list.h.tmp
|
|
|
|
${PACKAGE}FILES+= test_empty.gz.uu
|
|
${PACKAGE}FILES+= test_empty.lz4.uu
|
|
${PACKAGE}FILES+= test_empty.xz.uu
|
|
${PACKAGE}FILES+= test_expand.Z.uu
|
|
${PACKAGE}FILES+= test_expand.bz2.uu
|
|
${PACKAGE}FILES+= test_expand.gz.uu
|
|
${PACKAGE}FILES+= test_expand.lz4.uu
|
|
${PACKAGE}FILES+= test_expand.plain.uu
|
|
${PACKAGE}FILES+= test_expand.xz.uu
|
|
|
|
.include <bsd.test.mk>
|