aboutsummaryrefslogtreecommitdiff
path: root/tests/libfstream/uncompress.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-04 12:40:56 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-04 12:41:22 +0200
commit7ee3c177dc58dfc15dc7208a17c8756c99f61429 (patch)
tree649568d6c9d28781685564c563d702f9a2756b83 /tests/libfstream/uncompress.c
parentc1bda682fe831eab6e951e28fb4d9a0757231b55 (diff)
Add a test case for concatenated zstd streams
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/libfstream/uncompress.c')
-rw-r--r--tests/libfstream/uncompress.c44
1 files changed, 43 insertions, 1 deletions
diff --git a/tests/libfstream/uncompress.c b/tests/libfstream/uncompress.c
index 33a9c95..3e4679d 100644
--- a/tests/libfstream/uncompress.c
+++ b/tests/libfstream/uncompress.c
@@ -286,6 +286,48 @@ static sqfs_u8 data_in[] = {
0xcb, 0x0a, 0x0a, 0x69, 0x40, 0xba, 0xb0, 0xc4,
0x2a, 0x9b, 0x1e, 0x0a, 0x51, 0xa6, 0x16, 0x98,
0x76
+#elif defined(TEST_ZSTD2)
+ 0x28, 0xb5, 0x2f, 0xfd, 0x04, 0x58, 0x75, 0x04,
+ 0x00, 0xb2, 0x4c, 0x20, 0x17, 0xa0, 0x25, 0x69,
+ 0x03, 0xf0, 0xb2, 0x37, 0xb1, 0x5e, 0xb9, 0x24,
+ 0x56, 0x5b, 0x52, 0x22, 0x39, 0x01, 0x44, 0x2b,
+ 0x03, 0x55, 0xe3, 0x47, 0x03, 0x12, 0x9a, 0xe1,
+ 0xf0, 0x94, 0x0b, 0xe5, 0xe2, 0xba, 0x7e, 0xfe,
+ 0x9c, 0xc7, 0x61, 0x43, 0xc8, 0xfa, 0xf0, 0x3a,
+ 0xfa, 0x51, 0xaa, 0x50, 0xa6, 0x2d, 0x9a, 0x78,
+ 0xce, 0x2f, 0x61, 0x20,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5e,
+ 0x1d, 0xe7, 0x5e, 0xcd, 0x47, 0x41, 0x80, 0x89,
+ 0x5c, 0xa5, 0x4a, 0x32, 0x26, 0xb3, 0x3d, 0x2b,
+ 0xd5, 0xc0, 0x16, 0xde, 0xfb, 0x65, 0xcd, 0x6a,
+ 0x0c, 0x3f, 0xe7, 0xd6, 0xb2, 0x17, 0x7c, 0x25,
+ 0x35, 0x6b, 0x58, 0xf0, 0x95, 0xb5, 0xf2, 0xe4,
+ 0x4e, 0xf0, 0x34, 0x4f, 0x5f, 0x39, 0xd1, 0x90,
+ 0xf8, 0xb9, 0x59, 0xbe, 0x2e, 0xf9, 0xd4, 0x02,
+ 0x98, 0x50, 0x5a, 0xc2, 0xcf, 0xe1, 0x08, 0x02,
+ 0x00, 0x0f, 0x1e, 0x44, 0x40, 0x79, 0x50, 0x67,
+ 0x3d, 0xd3, 0x35, 0x8f
#endif
};
@@ -306,7 +348,7 @@ static const char orig[] =
#elif defined(TEST_GZIP)
#define COMP_NAME "gzip"
#define COMP_ID FSTREAM_COMPRESSOR_GZIP
-#elif defined(TEST_ZSTD)
+#elif defined(TEST_ZSTD) || defined(TEST_ZSTD2)
#define COMP_NAME "zstd"
#define COMP_ID FSTREAM_COMPRESSOR_ZSTD
#endif