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