1179323Skientzle# $FreeBSD: releng/11.0/usr.bin/cpio/tests/Makefile 302075 2016-06-22 07:49:59Z mm $ 2179323Skientzle 3298107SgjbPACKAGE= tests 4298107Sgjb 5291620Sbdrewery_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive 6179323Skientzle 7288977SngieATF_TESTS_SH+= functional_test 8288977Sngie 9289195SngieBINDIR= ${TESTSDIR} 10289195Sngie 11288977SngiePROGS+= bsdcpio_test 12288977Sngie 13289195SngieCFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\" 14289195SngieCFLAGS+= -I${SRCTOP}/lib/libarchive -I${.OBJDIR} 15288977Sngie 16289195SngieCFLAGS+= -I${.OBJDIR} 17291620SbdreweryCFLAGS+= -I${_LIBARCHIVEDIR}/cpio -I${_LIBARCHIVEDIR}/libarchive_fe 18291620SbdreweryCFLAGS+= -I${_LIBARCHIVEDIR}/test_utils 19289195Sngie 20289195Sngie# Uncomment to link against dmalloc 21289195Sngie#LDADD+= -L/usr/local/lib -ldmalloc 22289195Sngie#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC 23289195Sngie 24291620Sbdrewery.PATH: ${_LIBARCHIVEDIR}/cpio 25224154SmmCPIO_SRCS= cmdline.c 26179323Skientzle 27291620Sbdrewery.PATH: ${_LIBARCHIVEDIR}/libarchive_fe 28238856SmmCPIO_SRCS+= err.c 29224154Smm 30291620Sbdrewery.PATH: ${_LIBARCHIVEDIR}/cpio/test 31288977SngieTESTS_SRCS= \ 32179323Skientzle test_0.c \ 33179323Skientzle test_basic.c \ 34248616Smm test_cmdline.c \ 35248616Smm test_extract_cpio_Z.c \ 36248616Smm test_extract_cpio_bz2.c \ 37248616Smm test_extract_cpio_grz.c \ 38248616Smm test_extract_cpio_gz.c \ 39248616Smm test_extract_cpio_lrz.c \ 40248616Smm test_extract_cpio_lz.c \ 41299529Smm test_extract_cpio_lz4.c \ 42248616Smm test_extract_cpio_lzma.c \ 43248616Smm test_extract_cpio_lzo.c \ 44248616Smm test_extract_cpio_xz.c \ 45179323Skientzle test_format_newc.c \ 46179323Skientzle test_gcpio_compat.c \ 47302075Smm test_missing_file.c \ 48232153Smm test_option_0.c \ 49224154Smm test_option_B_upper.c \ 50224154Smm test_option_C_upper.c \ 51224154Smm test_option_J_upper.c \ 52224154Smm test_option_L_upper.c \ 53224154Smm test_option_Z_upper.c \ 54179323Skientzle test_option_a.c \ 55248616Smm test_option_b64encode.c \ 56179323Skientzle test_option_c.c \ 57179323Skientzle test_option_d.c \ 58179323Skientzle test_option_f.c \ 59248616Smm test_option_grzip.c \ 60179323Skientzle test_option_help.c \ 61224154Smm test_option_l.c \ 62248616Smm test_option_lrzip.c \ 63299529Smm test_option_lz4.c \ 64224154Smm test_option_lzma.c \ 65248616Smm test_option_lzop.c \ 66179323Skientzle test_option_m.c \ 67299529Smm test_option_passphrase.c \ 68179323Skientzle test_option_t.c \ 69179323Skientzle test_option_u.c \ 70248616Smm test_option_uuencode.c \ 71179323Skientzle test_option_version.c \ 72248616Smm test_option_xz.c \ 73179323Skientzle test_option_y.c \ 74179323Skientzle test_option_z.c \ 75179323Skientzle test_owner_parse.c \ 76182094Skientzle test_passthrough_dotdot.c \ 77238856Smm test_passthrough_reverse.c 78179323Skientzle 79288977SngieSRCS.bsdcpio_test= list.h \ 80179323Skientzle ${CPIO_SRCS} \ 81288977Sngie ${TESTS_SRCS} \ 82179323Skientzle main.c 83179323Skientzle 84291620Sbdrewery.PATH: ${_LIBARCHIVEDIR}/test_utils 85288977SngieSRCS.bsdcpio_test+= test_utils.c 86248616Smm 87289195SngieLIBADD.bsdcpio_test= archive 88179323Skientzle 89288977Sngielist.h: ${TESTS_SRCS} Makefile 90291620Sbdrewery @(cd ${_LIBARCHIVEDIR}/tar/test && \ 91288977Sngie grep -h DEFINE_TEST ${.ALLSRC:N*Makefile}) > ${.TARGET}.tmp 92288977Sngie @mv ${.TARGET}.tmp ${.TARGET} 93179323Skientzle 94289195SngieCLEANFILES+= list.h list.h.tmp 95289195Sngie 96299094Sngie${PACKAGE}FILES+= test_extract.cpio.Z.uu 97299094Sngie${PACKAGE}FILES+= test_extract.cpio.bz2.uu 98299094Sngie${PACKAGE}FILES+= test_extract.cpio.grz.uu 99299094Sngie${PACKAGE}FILES+= test_extract.cpio.gz.uu 100299094Sngie${PACKAGE}FILES+= test_extract.cpio.lrz.uu 101299094Sngie${PACKAGE}FILES+= test_extract.cpio.lz.uu 102299529Smm${PACKAGE}FILES+= test_extract.cpio.lz4.uu 103299094Sngie${PACKAGE}FILES+= test_extract.cpio.lzma.uu 104299094Sngie${PACKAGE}FILES+= test_extract.cpio.lzo.uu 105299094Sngie${PACKAGE}FILES+= test_extract.cpio.xz.uu 106299094Sngie${PACKAGE}FILES+= test_gcpio_compat_ref.bin.uu 107299094Sngie${PACKAGE}FILES+= test_gcpio_compat_ref.crc.uu 108299094Sngie${PACKAGE}FILES+= test_gcpio_compat_ref.newc.uu 109299094Sngie${PACKAGE}FILES+= test_gcpio_compat_ref.ustar.uu 110299094Sngie${PACKAGE}FILES+= test_gcpio_compat_ref_nosym.bin.uu 111299094Sngie${PACKAGE}FILES+= test_gcpio_compat_ref_nosym.crc.uu 112299094Sngie${PACKAGE}FILES+= test_gcpio_compat_ref_nosym.newc.uu 113299094Sngie${PACKAGE}FILES+= test_gcpio_compat_ref_nosym.ustar.uu 114299094Sngie${PACKAGE}FILES+= test_option_f.cpio.uu 115299094Sngie${PACKAGE}FILES+= test_option_m.cpio.uu 116299529Smm${PACKAGE}FILES+= test_option_passphrase.zip.uu 117299094Sngie${PACKAGE}FILES+= test_option_t.cpio.uu 118299094Sngie${PACKAGE}FILES+= test_option_t.stdout.uu 119299094Sngie${PACKAGE}FILES+= test_option_tv.stdout.uu 120179323Skientzle 121288977Sngie.include <bsd.test.mk> 122