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