diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-05-09 14:33:35 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-05-09 14:33:35 +0200 |
commit | cfa417a44111e1801b17aa0ab31fd0368794c034 (patch) | |
tree | 33716998e05d422c565eeed4de2a20f597cab34d /tests/libfstream/Makemodule.am | |
parent | ab0b93778426c376436690ba6e54374bf830d213 (diff) |
Add a basic de-compressor stream test
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/libfstream/Makemodule.am')
-rw-r--r-- | tests/libfstream/Makemodule.am | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/libfstream/Makemodule.am b/tests/libfstream/Makemodule.am index bba35f5..9303a8a 100644 --- a/tests/libfstream/Makemodule.am +++ b/tests/libfstream/Makemodule.am @@ -3,9 +3,56 @@ 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_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_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 + +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 +TESTS += test_xfrm_bzip2 +endif + +if WITH_XZ +check_PROGRAMS += test_xfrm_xz +TESTS += test_xfrm_xz +endif + +if WITH_GZIP +check_PROGRAMS += test_xfrm_gzip +TESTS += test_xfrm_gzip +endif + +if WITH_ZSTD +check_PROGRAMS += test_xfrm_zstd +TESTS += test_xfrm_zstd +endif endif EXTRA_DIST += $(top_srcdir)/tests/libfstream/get_line.txt |