1b5a3a89cSMartin Matuska 2b5a3a89cSMartin MatuskaPACKAGE= tests 3b5a3a89cSMartin Matuska 4b5a3a89cSMartin Matuska_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive 5b5a3a89cSMartin Matuska 6b5a3a89cSMartin MatuskaATF_TESTS_SH+= functional_test 7b5a3a89cSMartin Matuska 8b5a3a89cSMartin MatuskaBINDIR= ${TESTSDIR} 9b5a3a89cSMartin Matuska 10b5a3a89cSMartin MatuskaPROGS+= bsdunzip_test 11b5a3a89cSMartin Matuska 12b5a3a89cSMartin MatuskaCFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\" 13b5a3a89cSMartin MatuskaCFLAGS+= -I${SRCTOP}/lib/libarchive -I${.OBJDIR} 14b5a3a89cSMartin Matuska 15b5a3a89cSMartin MatuskaCFLAGS+= -I${.OBJDIR} 16b5a3a89cSMartin MatuskaCFLAGS+= -I${_LIBARCHIVEDIR}/unzip -I${_LIBARCHIVEDIR}/unzip/test 17b5a3a89cSMartin MatuskaCFLAGS+= -I${_LIBARCHIVEDIR}/libarchive 18b5a3a89cSMartin MatuskaCFLAGS+= -I${_LIBARCHIVEDIR}/libarchive_fe -I${_LIBARCHIVEDIR}/test_utils 19b5a3a89cSMartin Matuska 20b5a3a89cSMartin Matuska# Uncomment to link against dmalloc 21b5a3a89cSMartin Matuska#LDADD+= -L/usr/local/lib -ldmalloc 22b5a3a89cSMartin Matuska#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC 23b5a3a89cSMartin Matuska 24b5a3a89cSMartin MatuskaCFLAGS.test_utils.c+= -Wno-cast-align 25b5a3a89cSMartin Matuska 26b5a3a89cSMartin Matuska.PATH: ${_LIBARCHIVEDIR}/libarchive_fe 27b5a3a89cSMartin MatuskaUNZIP_SRCS+= err.c 28b5a3a89cSMartin Matuska 29b5a3a89cSMartin Matuska.PATH: ${_LIBARCHIVEDIR}/unzip/test 30b5a3a89cSMartin MatuskaTESTS_SRCS= \ 31b5a3a89cSMartin Matuska test_0.c \ 32b5a3a89cSMartin Matuska test_C.c \ 33*b9128a37SMartin Matuska test_I.c \ 34b5a3a89cSMartin Matuska test_L.c \ 35b5a3a89cSMartin Matuska test_P_encryption.c \ 36b5a3a89cSMartin Matuska test_Z1.c \ 37b5a3a89cSMartin Matuska test_basic.c \ 38b5a3a89cSMartin Matuska test_d.c \ 39*b9128a37SMartin Matuska test_doubledash.c \ 40b5a3a89cSMartin Matuska test_glob.c \ 41b5a3a89cSMartin Matuska test_j.c \ 42b5a3a89cSMartin Matuska test_n.c \ 43b5a3a89cSMartin Matuska test_not_exist.c \ 44b5a3a89cSMartin Matuska test_o.c \ 45b5a3a89cSMartin Matuska test_p.c \ 46b5a3a89cSMartin Matuska test_q.c \ 47b5a3a89cSMartin Matuska test_singlefile.c \ 48b5a3a89cSMartin Matuska test_t.c \ 49b5a3a89cSMartin Matuska test_t_bad.c \ 50b5a3a89cSMartin Matuska test_version.c \ 51b5a3a89cSMartin Matuska test_x.c 52b5a3a89cSMartin Matuska 53b5a3a89cSMartin MatuskaSRCS.bsdunzip_test= list.h \ 54b5a3a89cSMartin Matuska ${UNZIP_SRCS} \ 55b5a3a89cSMartin Matuska ${TESTS_SRCS} 56b5a3a89cSMartin Matuska 57b5a3a89cSMartin Matuska.PATH: ${_LIBARCHIVEDIR}/test_utils 58b5a3a89cSMartin MatuskaSRCS.bsdunzip_test+= test_main.c \ 59b5a3a89cSMartin Matuska test_utils.c 60b5a3a89cSMartin Matuska 61b5a3a89cSMartin MatuskaLIBADD.bsdunzip_test= archive 62b5a3a89cSMartin Matuska 63b5a3a89cSMartin Matuskalist.h: ${TESTS_SRCS} Makefile 64b5a3a89cSMartin Matuska @(cd ${_LIBARCHIVEDIR}/unzip/test && \ 65b5a3a89cSMartin Matuska grep -h DEFINE_TEST ${.ALLSRC:N*Makefile}) > ${.TARGET}.tmp 66b5a3a89cSMartin Matuska @mv ${.TARGET}.tmp ${.TARGET} 67b5a3a89cSMartin Matuska 68b5a3a89cSMartin MatuskaCLEANFILES+= list.h list.h.tmp 69b5a3a89cSMartin Matuska 70*b9128a37SMartin Matuska${PACKAGE}FILES+= test_I.zip.uu 71b5a3a89cSMartin Matuska${PACKAGE}FILES+= test_basic.zip.uu 72b5a3a89cSMartin Matuska${PACKAGE}FILES+= test_encrypted.zip.uu 73b5a3a89cSMartin Matuska${PACKAGE}FILES+= test_singlefile.zip.uu 74b5a3a89cSMartin Matuska${PACKAGE}FILES+= test_t_bad.zip.uu 75b5a3a89cSMartin Matuska 76b5a3a89cSMartin Matuska.include <bsd.test.mk> 77