DEFINE_TEST(test_archive_write_add_filter_by_name_lzip)
{
- test_filter_by_name("lzip", ARCHIVE_FILTER_LZIP, cannot);
+ test_filter_by_name("lzip", ARCHIVE_FILTER_LZIP, canLzip);
}
DEFINE_TEST(test_archive_write_add_filter_by_name_lzma)
{
- test_filter_by_name("lzma", ARCHIVE_FILTER_LZMA, cannot);
+ test_filter_by_name("lzma", ARCHIVE_FILTER_LZMA, canLzma);
}
DEFINE_TEST(test_archive_write_add_filter_by_name_lzop)
DEFINE_TEST(test_archive_write_add_filter_by_name_xz)
{
- test_filter_by_name("xz", ARCHIVE_FILTER_XZ, cannot);
+ test_filter_by_name("xz", ARCHIVE_FILTER_XZ, canXz);
}
DEFINE_TEST(test_archive_write_add_filter_by_name_zstd)
DEFINE_TEST(test_read_truncated_filter_lzip)
{
- test_truncation("lzip", archive_write_add_filter_lzip, 0);
+ test_truncation("lzip", archive_write_add_filter_lzip, canLzip());
}
DEFINE_TEST(test_read_truncated_filter_lzma)
{
- test_truncation("lzma", archive_write_add_filter_lzma, 0);
+ test_truncation("lzma", archive_write_add_filter_lzma, canLzma());
}
DEFINE_TEST(test_read_truncated_filter_lzop)
DEFINE_TEST(test_read_truncated_filter_xz)
{
- test_truncation("xz", archive_write_add_filter_xz, 0);
+ test_truncation("xz", archive_write_add_filter_xz, canXz());
}
static int tested = 0, value = 0;
if (!tested) {
tested = 1;
- if (systemf("lzma %s", redirectArgs) == 0)
+ if (systemf("lzma --help %s", redirectArgs) == 0)
value = 1;
}
return (value);