From f64e2a3b0b701249b02adf2b389bae8576a3441b Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 9 May 2021 14:40:35 +0200 Subject: 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 --- tests/libfstream/Makemodule.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/libfstream/Makemodule.am') 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 -- cgit v1.2.3