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