1.include <src.opts.mk> 2 3.include "${SRCTOP}/lib/libarchive/Makefile.inc" 4 5PACKAGE= tests 6 7WARNS?= 3 8 9ATF_TESTS_SH+= functional_test 10 11BINDIR= ${TESTSDIR} 12 13CFLAGS+= -I${.OBJDIR} 14CFLAGS+= -I${_LIBARCHIVEDIR}/tar 15CFLAGS+= -I${_LIBARCHIVEDIR}/tar/test 16CFLAGS+= -I${_LIBARCHIVEDIR}/test_utils 17 18CFLAGS.test_utils.c+= -Wno-cast-align 19 20# Uncomment to link against dmalloc 21#LDADD+= -L/usr/local/lib -ldmalloc 22#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC 23 24PROGS+= bsdtar_test 25 26.PATH: ${_LIBARCHIVEDIR}/tar/test 27TESTS_SRCS= \ 28 test_0.c \ 29 test_basic.c \ 30 test_copy.c \ 31 test_crlf_mtree.c \ 32 test_empty_mtree.c \ 33 test_extract_tar_bz2.c \ 34 test_extract_tar_grz.c \ 35 test_extract_tar_gz.c \ 36 test_extract_tar_lrz.c \ 37 test_extract_tar_lz.c \ 38 test_extract_tar_lz4.c \ 39 test_extract_tar_lzma.c \ 40 test_extract_tar_lzo.c \ 41 test_extract_tar_xz.c \ 42 test_extract_tar_zstd.c \ 43 test_format_newc.c \ 44 test_help.c \ 45 test_leading_slash.c \ 46 test_list_item.c \ 47 test_missing_file.c \ 48 test_option_C_mtree.c \ 49 test_option_C_upper.c \ 50 test_option_H_upper.c \ 51 test_option_L_upper.c \ 52 test_option_O_upper.c \ 53 test_option_P_upper.c \ 54 test_option_T_upper.c \ 55 test_option_U_upper.c \ 56 test_option_X_upper.c \ 57 test_option_a.c \ 58 test_option_acls.c \ 59 test_option_b.c \ 60 test_option_b64encode.c \ 61 test_option_exclude.c \ 62 test_option_exclude_vcs.c \ 63 test_option_fflags.c \ 64 test_option_gid_gname.c \ 65 test_option_grzip.c \ 66 test_option_ignore_zeros.c \ 67 test_option_j.c \ 68 test_option_k.c \ 69 test_option_keep_newer_files.c \ 70 test_option_lrzip.c \ 71 test_option_lz4.c \ 72 test_option_lzma.c \ 73 test_option_lzop.c \ 74 test_option_mtime.c \ 75 test_option_n.c \ 76 test_option_newer_than.c \ 77 test_option_nodump.c \ 78 test_option_older_than.c \ 79 test_option_passphrase.c \ 80 test_option_q.c \ 81 test_option_r.c \ 82 test_option_s.c \ 83 test_option_safe_writes.c \ 84 test_option_uid_uname.c \ 85 test_option_uuencode.c \ 86 test_option_xattrs.c \ 87 test_option_xz.c \ 88 test_option_z.c \ 89 test_option_zstd.c \ 90 test_patterns.c \ 91 test_print_longpath.c \ 92 test_stdio.c \ 93 test_strip_components.c \ 94 test_symlink_dir.c \ 95 test_version.c 96 97SRCS.bsdtar_test= \ 98 ${TESTS_SRCS} \ 99 list.h 100 101.PATH: ${_LIBARCHIVEDIR}/test_utils 102SRCS.bsdtar_test+= test_main.c \ 103 test_utils.c 104 105LIBADD.bsdtar_test= archive 106 107list.h: ${TESTS_SRCS} Makefile 108 @(cd ${_LIBARCHIVEDIR}/tar/test && \ 109 grep -h DEFINE_TEST ${.ALLSRC:N*Makefile}) > ${.TARGET}.tmp 110 @mv ${.TARGET}.tmp ${.TARGET} 111 112CLEANFILES+= list.h list.h.tmp 113 114${PACKAGE}FILES+= test_extract.tar.Z.uu 115${PACKAGE}FILES+= test_extract.tar.bz2.uu 116${PACKAGE}FILES+= test_extract.tar.grz.uu 117${PACKAGE}FILES+= test_extract.tar.gz.uu 118${PACKAGE}FILES+= test_extract.tar.lrz.uu 119${PACKAGE}FILES+= test_extract.tar.lz.uu 120${PACKAGE}FILES+= test_extract.tar.lz4.uu 121${PACKAGE}FILES+= test_extract.tar.lzma.uu 122${PACKAGE}FILES+= test_extract.tar.lzo.uu 123${PACKAGE}FILES+= test_extract.tar.xz.uu 124${PACKAGE}FILES+= test_extract.tar.zst.uu 125${PACKAGE}FILES+= test_leading_slash.tar.uu 126${PACKAGE}FILES+= test_list_item.tar.uu 127${PACKAGE}FILES+= test_option_keep_newer_files.tar.Z.uu 128${PACKAGE}FILES+= test_option_passphrase.zip.uu 129${PACKAGE}FILES+= test_option_s.tar.Z.uu 130${PACKAGE}FILES+= test_patterns_2.tar.uu 131${PACKAGE}FILES+= test_patterns_3.tar.uu 132${PACKAGE}FILES+= test_patterns_4.tar.uu 133${PACKAGE}FILES+= test_print_longpath.tar.Z.uu 134 135.include <bsd.test.mk> 136