diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-05-09 14:40:35 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-05-09 14:41:56 +0200 |
commit | f64e2a3b0b701249b02adf2b389bae8576a3441b (patch) | |
tree | f228748175b639ee01b9182c506909d4b062c57e /tests/libfstream/Makemodule.am | |
parent | cfa417a44111e1801b17aa0ab31fd0368794c034 (diff) |
Add a test case for XZ stream concatenation
A modified version of the libfstream XZ stream uncompress test case
is added that deliberately chops the compressed data up into two
independend XZ streams to test the behaviour where the decompressor
has to read across stream boundaries, like those resulting from
parallel compression.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/libfstream/Makemodule.am')
-rw-r--r-- | tests/libfstream/Makemodule.am | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/libfstream/Makemodule.am b/tests/libfstream/Makemodule.am index 9303a8a..d943686 100644 --- a/tests/libfstream/Makemodule.am +++ b/tests/libfstream/Makemodule.am @@ -13,6 +13,11 @@ 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_XZ=2 + 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) @@ -40,8 +45,8 @@ TESTS += test_xfrm_bzip2 endif if WITH_XZ -check_PROGRAMS += test_xfrm_xz -TESTS += test_xfrm_xz +check_PROGRAMS += test_xfrm_xz test_xfrm_xz2 +TESTS += test_xfrm_xz test_xfrm_xz2 endif if WITH_GZIP |