3 # Where to find the tar sources (for the internal unit tests)
4 TAR_SRCDIR=${.CURDIR}/..
7 # Some tar sources are pulled in for white-box tests
18 test_option_T_upper.c \
24 test_strip_components.c \
28 # Build the test program
39 DPADD=${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBLZMA}
40 CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
42 LDADD= -larchive -lz -lbz2 -llzma
43 CFLAGS+= -static -g -O2 -Wall
45 CFLAGS+= -I${TAR_SRCDIR}
47 # Uncomment to link against dmalloc
48 #LDADD+= -L/usr/local/lib -ldmalloc
49 #CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
51 check test: bsdtar_test
52 ./bsdtar_test -p ${.OBJDIR}/../bsdtar -r ${.CURDIR}
54 list.h: ${TESTS} Makefile
55 (cd ${.CURDIR}; cat ${TESTS}) | grep DEFINE_TEST > list.h
63 rm -f archive.h ../archive.h
64 -chmod -R +w /tmp/bsdtar_test.*
65 rm -rf /tmp/bsdtar_test.*
67 .include <bsd.prog.mk>