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