Makefile revision 302001
1228904Sed# $FreeBSD: stable/10/usr.bin/cpio/tests/Makefile 302001 2016-06-17 22:40:10Z mm $ 2228904Sed 3228904SedSRCTOP= ${.CURDIR:H:H:H} 4228904SedTESTSDIR= ${TESTSBASE}/usr.bin/cpio 5228904Sed 6228904SedLIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive 7228904Sed 8228904SedATF_TESTS_SH+= functional_test 9228904Sed 10228904SedBINDIR= ${TESTSDIR} 11228904Sed 12228904SedPROGS+= bsdcpio_test 13228904Sed 14228904SedCFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\" 15228904SedCFLAGS+= -I${SRCTOP}/lib/libarchive -I${.OBJDIR} 16228904Sed 17228904SedCFLAGS+= -I${.OBJDIR} 18228904SedCFLAGS+= -I${LIBARCHIVEDIR}/cpio -I${LIBARCHIVEDIR}/libarchive_fe 19228904SedCFLAGS+= -I${LIBARCHIVEDIR}/test_utils 20228904Sed 21228904Sed# Uncomment to link against dmalloc 22228904Sed#LDADD+= -L/usr/local/lib -ldmalloc 23228904Sed#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC 24228904Sed 25228904Sed.PATH: ${LIBARCHIVEDIR}/cpio 26228904SedCPIO_SRCS= cmdline.c 27228904Sed 28228904Sed.PATH: ${LIBARCHIVEDIR}/libarchive_fe 29228904SedCPIO_SRCS+= err.c 30228904Sed 31228904Sed.PATH: ${LIBARCHIVEDIR}/cpio/test 32228904SedTESTS_SRCS= \ 33228904Sed test_0.c \ 34228904Sed test_basic.c \ 35228904Sed test_cmdline.c \ 36228904Sed test_extract_cpio_Z.c \ 37228904Sed test_extract_cpio_bz2.c \ 38228904Sed test_extract_cpio_grz.c \ 39228904Sed test_extract_cpio_gz.c \ 40228904Sed test_extract_cpio_lrz.c \ 41228904Sed test_extract_cpio_lz.c \ 42228904Sed test_extract_cpio_lz4.c \ 43228904Sed test_extract_cpio_lzma.c \ 44228904Sed test_extract_cpio_lzo.c \ 45228904Sed test_extract_cpio_xz.c \ 46228904Sed test_format_newc.c \ 47228904Sed test_gcpio_compat.c \ 48228904Sed test_option_0.c \ 49228904Sed test_option_B_upper.c \ 50228904Sed test_option_C_upper.c \ 51228904Sed test_option_J_upper.c \ 52228904Sed test_option_L_upper.c \ 53228904Sed test_option_Z_upper.c \ 54228904Sed test_option_a.c \ 55228904Sed test_option_b64encode.c \ 56228904Sed test_option_c.c \ 57228904Sed test_option_d.c \ 58228904Sed test_option_f.c \ 59228904Sed test_option_grzip.c \ 60228904Sed test_option_help.c \ 61228904Sed test_option_l.c \ 62228904Sed test_option_lrzip.c \ 63228904Sed test_option_lz4.c \ 64228904Sed test_option_lzma.c \ 65228904Sed test_option_lzop.c \ 66228904Sed test_option_m.c \ 67228904Sed test_option_passphrase.c \ 68228904Sed test_option_t.c \ 69228904Sed test_option_u.c \ 70228904Sed test_option_uuencode.c \ 71228904Sed test_option_version.c \ 72228904Sed test_option_xz.c \ 73228904Sed test_option_y.c \ 74228904Sed test_option_z.c \ 75228904Sed test_owner_parse.c \ 76228904Sed test_passthrough_dotdot.c \ 77228904Sed test_passthrough_reverse.c 78228904Sed 79228904SedSRCS.bsdcpio_test= list.h \ 80228904Sed ${CPIO_SRCS} \ 81228904Sed ${TESTS_SRCS} \ 82228904Sed main.c 83228904Sed 84228904Sed.PATH: ${LIBARCHIVEDIR}/test_utils 85228904SedSRCS.bsdcpio_test+= test_utils.c 86228904Sed 87228904SedDPADD.bsdcpio_test= ${LIBARCHIVE} 88228904SedLDADD.bsdcpio_test= -larchive 89228904Sed 90228904Sedlist.h: ${TESTS_SRCS} Makefile 91228904Sed @(cd ${LIBARCHIVEDIR}/tar/test && \ 92228904Sed grep -h DEFINE_TEST ${.ALLSRC:N*Makefile}) > ${.TARGET}.tmp 93228904Sed @mv ${.TARGET}.tmp ${.TARGET} 94228904Sed 95228904SedCLEANFILES+= list.h list.h.tmp 96228904Sed 97228904SedFILES+= test_extract.cpio.Z.uu 98228904SedFILES+= test_extract.cpio.bz2.uu 99228904SedFILES+= test_extract.cpio.grz.uu 100228904SedFILES+= test_extract.cpio.gz.uu 101228904SedFILES+= test_extract.cpio.lrz.uu 102228904SedFILES+= test_extract.cpio.lz.uu 103228904SedFILES+= test_extract.cpio.lz4.uu 104228904SedFILES+= test_extract.cpio.lzma.uu 105228904SedFILES+= test_extract.cpio.lzo.uu 106228904SedFILES+= test_extract.cpio.xz.uu 107228904SedFILES+= test_gcpio_compat_ref.bin.uu 108228904SedFILES+= test_gcpio_compat_ref.crc.uu 109228904SedFILES+= test_gcpio_compat_ref.newc.uu 110228904SedFILES+= test_gcpio_compat_ref.ustar.uu 111228904SedFILES+= test_gcpio_compat_ref_nosym.bin.uu 112228904SedFILES+= test_gcpio_compat_ref_nosym.crc.uu 113229651SuqsFILES+= test_gcpio_compat_ref_nosym.newc.uu 114228904SedFILES+= test_gcpio_compat_ref_nosym.ustar.uu 115228904SedFILES+= test_option_f.cpio.uu 116228904SedFILES+= test_option_m.cpio.uu 117228904SedFILES+= test_option_passphrase.zip.uu 118228904SedFILES+= test_option_t.cpio.uu 119228904SedFILES+= test_option_t.stdout.uu 120228904SedFILES+= test_option_tv.stdout.uu 121228904Sed 122228904Sed.include <bsd.test.mk> 123228904Sed