Makefile revision 302001
1# $FreeBSD: stable/10/usr.bin/tar/tests/Makefile 302001 2016-06-17 22:40:10Z mm $ 2 3SRCTOP= ${.CURDIR:H:H:H} 4TESTSDIR= ${TESTSBASE}/usr.bin/tar 5 6LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive 7 8ATF_TESTS_SH+= functional_test 9 10BINDIR= ${TESTSDIR} 11 12CFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\" 13CFLAGS+= -static 14CFLAGS+= -I${SRCTOP}/lib/libarchive -I${.OBJDIR} 15CFLAGS+= -I${LIBARCHIVEDIR}/tar -I${LIBARCHIVEDIR}/test_utils 16 17# Uncomment to link against dmalloc 18#LDADD+= -L/usr/local/lib -ldmalloc 19#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC 20 21PROGS+= bsdtar_test 22 23.PATH: ${LIBARCHIVEDIR}/tar/test 24TESTS_SRCS= \ 25 test_0.c \ 26 test_basic.c \ 27 test_copy.c \ 28 test_empty_mtree.c \ 29 test_extract_tar_bz2.c \ 30 test_extract_tar_grz.c \ 31 test_extract_tar_gz.c \ 32 test_extract_tar_lrz.c \ 33 test_extract_tar_lz.c \ 34 test_extract_tar_lz4.c \ 35 test_extract_tar_lzma.c \ 36 test_extract_tar_lzo.c \ 37 test_extract_tar_xz.c \ 38 test_format_newc.c \ 39 test_help.c \ 40 test_leading_slash.c \ 41 test_option_C_upper.c \ 42 test_option_H_upper.c \ 43 test_option_L_upper.c \ 44 test_option_O_upper.c \ 45 test_option_T_upper.c \ 46 test_option_U_upper.c \ 47 test_option_X_upper.c \ 48 test_option_a.c \ 49 test_option_b.c \ 50 test_option_b64encode.c \ 51 test_option_exclude.c \ 52 test_option_gid_gname.c \ 53 test_option_grzip.c \ 54 test_option_j.c \ 55 test_option_k.c \ 56 test_option_keep_newer_files.c \ 57 test_option_lrzip.c \ 58 test_option_lz4.c \ 59 test_option_lzma.c \ 60 test_option_lzop.c \ 61 test_option_n.c \ 62 test_option_newer_than.c \ 63 test_option_nodump.c \ 64 test_option_older_than.c \ 65 test_option_passphrase.c \ 66 test_option_q.c \ 67 test_option_r.c \ 68 test_option_s.c \ 69 test_option_uid_uname.c \ 70 test_option_uuencode.c \ 71 test_option_xz.c \ 72 test_option_z.c \ 73 test_patterns.c \ 74 test_print_longpath.c \ 75 test_stdio.c \ 76 test_strip_components.c \ 77 test_symlink_dir.c \ 78 test_version.c 79 80SRCS.bsdtar_test= \ 81 ${TESTS_SRCS} \ 82 list.h \ 83 main.c 84 85.PATH: ${LIBARCHIVEDIR}/test_utils 86SRCS.bsdtar_test+= test_utils.c 87 88DPADD.bsdtar_test= ${LIBARCHIVE} 89LDADD.bsdtar_test= -larchive 90 91list.h: ${TESTS_SRCS} Makefile 92 @(cd ${LIBARCHIVEDIR}/tar/test && \ 93 grep -h DEFINE_TEST ${.ALLSRC:N*Makefile}) > ${.TARGET}.tmp 94 @mv ${.TARGET}.tmp ${.TARGET} 95 96CLEANFILES+= list.h list.h.tmp 97 98FILES+= test_extract.tar.Z.uu 99FILES+= test_extract.tar.bz2.uu 100FILES+= test_extract.tar.grz.uu 101FILES+= test_extract.tar.gz.uu 102FILES+= test_extract.tar.lrz.uu 103FILES+= test_extract.tar.lz.uu 104FILES+= test_extract.tar.lz4.uu 105FILES+= test_extract.tar.lzma.uu 106FILES+= test_extract.tar.lzo.uu 107FILES+= test_extract.tar.xz.uu 108FILES+= test_leading_slash.tar.uu 109FILES+= test_option_keep_newer_files.tar.Z.uu 110FILES+= test_option_passphrase.zip.uu 111FILES+= test_option_s.tar.Z.uu 112FILES+= test_patterns_2.tar.uu 113FILES+= test_patterns_3.tar.uu 114FILES+= test_patterns_4.tar.uu 115FILES+= test_print_longpath.tar.Z.uu 116 117.include <bsd.test.mk> 118