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