Deleted Added
sdiff udiff text old ( 288955 ) new ( 288976 )
full compact
1# $FreeBSD: user/ngie/more-tests2/lib/libarchive/tests/Makefile 288955 2015-10-06 21:43:37Z ngie $
2
3LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive
4
5MAN=
6
7PROG=libarchive_test
8INTERNALPROG=yes # Don't install this; it's just for testing
9LDADD= -L ${.OBJDIR}/.. -larchive
10LIBADD= z bz2 lzma md crypto bsdxml
11CFLAGS+= -g
12CFLAGS+= -I${.CURDIR}/.. -I${.OBJDIR}
13CFLAGS+= -I${LIBARCHIVEDIR}/libarchive -I${LIBARCHIVEDIR}/test_utils
14CFLAGS+= -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
15
16# Uncomment to link against dmalloc
17#LDADD+= -L/usr/local/lib -ldmalloc
18#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
19
20.PATH: ${LIBARCHIVEDIR}/libarchive/test
21TESTS= \
22 test_acl_freebsd_nfs4.c \
23 test_acl_freebsd_posix1e.c \
24 test_acl_nfs4.c \
25 test_acl_pax.c \
26 test_acl_posix1e.c \
27 test_archive_api_feature.c \
28 test_archive_clear_error.c \
29 test_archive_cmdline.c \

--- 192 unchanged lines hidden (view full) ---

222 test_write_format_xar_empty.c \
223 test_write_format_zip.c \
224 test_write_format_zip_empty.c \
225 test_write_format_zip_no_compression.c \
226 test_write_zip_set_compression_store.c \
227 test_write_open_memory.c \
228 test_zip_filename_encoding.c
229
230# Build the test program.
231SRCS= \
232 ${TESTS} \
233 list.h \
234 main.c \
235 read_open_memory.c
236
237.PATH: ${LIBARCHIVEDIR}/test_utils
238SRCS+= test_utils.c
239
240# Build libarchive_test and run it.
241check test: libarchive_test
242 ./libarchive_test -r ${LIBARCHIVEDIR}/libarchive/test
243
244# list.h is just a list of all tests, as indicated by DEFINE_TEST macro lines
245list.h: ${TESTS} Makefile
246 (cd ${LIBARCHIVEDIR}/libarchive/test; cat test_*.c) | \
247 grep DEFINE_TEST > ${.OBJDIR}/list.h
248
249CLEANFILES += *.out *.o *.core *~ list.h .dirstamp .depend
250CLEANDIRS += .deps .libs
251
252cleantest:
253 -chmod -R +w /tmp/libarchive_test.*
254 rm -rf /tmp/libarchive_test.*
255
256.include <bsd.prog.mk>