]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - usr.bin/bsdcat/tests/Makefile
MFC r368207,368607:
[FreeBSD/stable/10.git] / usr.bin / bsdcat / tests / Makefile
1 # $FreeBSD$
2
3 _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive
4
5 ATF_TESTS_SH+=  functional_test
6
7 BINDIR=         ${TESTSDIR}
8
9 PROGS+=         bsdcat_test
10
11 CFLAGS+=        -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\"
12 CFLAGS+=        -I${SRCTOP}/lib/libarchive -I${.OBJDIR}
13
14 CFLAGS+=        -I${.OBJDIR}
15 CFLAGS+=        -I${_LIBARCHIVEDIR}/cat -I${_LIBARCHIVEDIR}/cat/test
16 CFLAGS+=        -I${_LIBARCHIVEDIR}/libarchive
17 CFLAGS+=        -I${_LIBARCHIVEDIR}/libarchive_fe -I${_LIBARCHIVEDIR}/test_utils
18
19 # Uncomment to link against dmalloc
20 #LDADD+= -L/usr/local/lib -ldmalloc
21 #CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
22
23 .PATH:  ${_LIBARCHIVEDIR}/cat/test
24 TESTS_SRCS=     \
25         test_0.c                                \
26         test_empty_gz.c                         \
27         test_empty_lz4.c                        \
28         test_empty_xz.c                         \
29         test_empty_zstd.c                       \
30         test_error.c                            \
31         test_error_mixed.c                      \
32         test_expand_Z.c                         \
33         test_expand_bz2.c                       \
34         test_expand_gz.c                        \
35         test_expand_lz4.c                       \
36         test_expand_mixed.c                     \
37         test_expand_plain.c                     \
38         test_expand_xz.c                        \
39         test_expand_zstd.c                      \
40         test_help.c                             \
41         test_stdin.c                            \
42         test_version.c
43
44 SRCS.bsdcat_test= list.h                        \
45         ${TESTS_SRCS}
46
47 .PATH:  ${_LIBARCHIVEDIR}/test_utils
48 SRCS.bsdcat_test+=      test_main.c             \
49                         test_utils.c
50
51 LIBADD.bsdcat_test=     archive
52
53 list.h: ${TESTS_SRCS} Makefile
54         @(cd ${_LIBARCHIVEDIR}/tar/test && \
55         grep -h DEFINE_TEST ${.ALLSRC:N*Makefile}) > ${.TARGET}.tmp
56         @mv ${.TARGET}.tmp ${.TARGET}
57
58 CLEANFILES+=    list.h list.h.tmp
59
60 FILES+= test_empty.gz.uu
61 FILES+= test_empty.lz4.uu
62 FILES+= test_empty.xz.uu
63 FILES+= test_empty.zst.uu
64 FILES+= test_expand.Z.uu
65 FILES+= test_expand.bz2.uu
66 FILES+= test_expand.gz.uu
67 FILES+= test_expand.lz4.uu
68 FILES+= test_expand.plain.uu
69 FILES+= test_expand.xz.uu
70 FILES+= test_expand.zst.uu
71
72 .include <bsd.test.mk>