Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
} compressors[] = {
// XZ
{ { 0xFD, '7', 'z', 'X', 'Z', 0x00 }, 6, pakfire_xzfopen, },
+ // ZSTD
+ { { 0x28, 0xb5, 0x2f, 0xfd }, 4, pakfire_zstdfopen, },
+ // End
{ "", 0, NULL, },
};
}
static int test_xfopen(const struct test* t) {
- return read_test(t, pakfire_xfopen, "data/compress/data.xz");
+ ASSERT(read_test(t, pakfire_xfopen, "data/compress/data.xz") == EXIT_SUCCESS);
+ ASSERT(read_test(t, pakfire_xfopen, "data/compress/data.zst") == EXIT_SUCCESS);
+
+ return EXIT_SUCCESS;
}
int main(int argc, char** argv) {