archive_read_free(zip_archive);
}
+#endif /* HAVE_BZLIB_H */
DEFINE_TEST(test_write_format_zip_compression_bzip2)
{
+#ifndef HAVE_BZLIB_H
+ skipping("bzip2 is not fully supported on this platform");
+#else /* HAVE_BZLIB_H */
/* Buffer data */
struct archive *a;
char buff[100000];
dumpfile("constructed.zip", buff, used);
verify_bzip2_contents(buff, used);
+#endif /* HAVE_BZLIB_H */
}
-#endif
verify_xz_lzma(buff, used, 14, 0xA);
}
+#endif /* HAVE_LZMA_H */
DEFINE_TEST(test_write_format_zip_compression_lzmaxz)
{
+#ifndef HAVE_LZMA_H
+ skipping("lzma is not fully supported on this platform");
+#else /* HAVE_LZMA_H */
/* Buffer data */
struct archive *a;
char buff[100000];
dumpfile("constructed.zip", buff, used);
verify_xz_contents(buff, used);
+#endif /* HAVE_LZMA_H */
}
-#endif
+
archive_read_free(zip_archive);
}
+#endif /* HAVE_ZSTD_H */
DEFINE_TEST(test_write_format_zip_compression_zstd)
{
+#ifndef HAVE_ZSTD_H
+ skipping("zstd is not fully supported on this platform");
+#else /* HAVE_ZSTD_H */
/* Buffer data */
struct archive *a;
char buff[100000];
dumpfile("constructed.zip", buff, used);
verify_zstd_contents(buff, used);
+#endif /* HAVE_ZSTD_H */
}
-#endif
+