aboutsummaryrefslogtreecommitdiff
path: root/tests/libfstream/Makemodule.am
blob: 65abfc7c3724d2462c82222bfe77d912884001c8 (plain)
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
69
70
71
72
73
74
75
test_get_line_SOURCES = tests/libfstream/get_line.c tests/test.h
test_get_line_LDADD = libfstream.a libcompat.a
test_get_line_CPPFLAGS = $(AM_CPPFLAGS)
test_get_line_CPPFLAGS += -DTESTFILE=$(top_srcdir)/tests/libfstream/get_line.txt

test_xfrm_bzip2_SOURCES = tests/libfstream/uncompress.c tests/test.h
test_xfrm_bzip2_LDADD = libfstream.a libcompat.a $(BZIP2_LIBS) $(ZLIB_LIBS)
test_xfrm_bzip2_LDADD += $(XZ_LIBS) $(ZSTD_LIBS)
test_xfrm_bzip2_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_BZIP2=1

test_xfrm_bzip22_SOURCES = tests/libfstream/uncompress.c tests/test.h
test_xfrm_bzip22_LDADD = libfstream.a libcompat.a $(BZIP2_LIBS) $(ZLIB_LIBS)
test_xfrm_bzip22_LDADD += $(XZ_LIBS) $(ZSTD_LIBS)
test_xfrm_bzip22_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_BZIP22=1

test_xfrm_xz_SOURCES = tests/libfstream/uncompress.c tests/test.h
test_xfrm_xz_LDADD = libfstream.a libcompat.a $(BZIP2_LIBS) $(ZLIB_LIBS)
test_xfrm_xz_LDADD += $(XZ_LIBS) $(ZSTD_LIBS)
test_xfrm_xz_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_XZ=1

test_xfrm_xz2_SOURCES = tests/libfstream/uncompress.c tests/test.h
test_xfrm_xz2_LDADD = libfstream.a libcompat.a $(BZIP2_LIBS) $(ZLIB_LIBS)
test_xfrm_xz2_LDADD += $(XZ_LIBS) $(ZSTD_LIBS)
test_xfrm_xz2_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_XZ2=1

test_xfrm_gzip_SOURCES = tests/libfstream/uncompress.c tests/test.h
test_xfrm_gzip_LDADD = libfstream.a libcompat.a $(BZIP2_LIBS) $(ZLIB_LIBS)
test_xfrm_gzip_LDADD += $(XZ_LIBS) $(ZSTD_LIBS)
test_xfrm_gzip_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_GZIP=1

test_xfrm_zstd_SOURCES = tests/libfstream/uncompress.c tests/test.h
test_xfrm_zstd_LDADD = libfstream.a libcompat.a $(BZIP2_LIBS) $(ZLIB_LIBS)
test_xfrm_zstd_LDADD += $(XZ_LIBS) $(ZSTD_LIBS)
test_xfrm_zstd_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_ZSTD=1

test_xfrm_zstd2_SOURCES = tests/libfstream/uncompress.c tests/test.h
test_xfrm_zstd2_LDADD = libfstream.a libcompat.a $(BZIP2_LIBS) $(ZLIB_LIBS)
test_xfrm_zstd2_LDADD += $(XZ_LIBS) $(ZSTD_LIBS)
test_xfrm_zstd2_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_ZSTD2=1

if WITH_OWN_ZLIB
test_xfrm_bzip2_LDADD += libz.la
test_xfrm_xz_LDADD += libz.la
test_xfrm_gzip_LDADD += libz.la
test_xfrm_zstd_LDADD += libz.la
endif

if BUILD_TOOLS
check_PROGRAMS += test_get_line
TESTS += test_get_line

if WITH_BZIP2
check_PROGRAMS += test_xfrm_bzip2 test_xfrm_bzip22
TESTS += test_xfrm_bzip2 test_xfrm_bzip22
endif

if WITH_XZ
check_PROGRAMS += test_xfrm_xz test_xfrm_xz2
TESTS += test_xfrm_xz test_xfrm_xz2
endif

if WITH_GZIP
check_PROGRAMS += test_xfrm_gzip
TESTS += test_xfrm_gzip
endif

if WITH_ZSTD
if HAVE_ZSTD_STREAM
check_PROGRAMS += test_xfrm_zstd test_xfrm_zstd2
TESTS += test_xfrm_zstd test_xfrm_zstd2
endif
endif
endif

EXTRA_DIST += $(top_srcdir)/tests/libfstream/get_line.txt