mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-10 04:50:31 -04:00
test(mkdwarfs): add more metadata requirements tests
This commit is contained in:
parent
cd9be29d61
commit
205c2f6630
@ -1081,9 +1081,18 @@ TEST(mkdwarfs_test, output_file_fail_close) {
|
|||||||
EXPECT_THAT(t.err(), ::testing::HasSubstr("failed to close output file"));
|
EXPECT_THAT(t.err(), ::testing::HasSubstr("failed to close output file"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(mkdwarfs_test, compression_cannot_be_used) {
|
TEST(mkdwarfs_test, compression_cannot_be_used_without_category) {
|
||||||
mkdwarfs_tester t;
|
mkdwarfs_tester t;
|
||||||
EXPECT_NE(0, t.run({"-i", "/", "-o", "-", "-C", "flac"}));
|
EXPECT_NE(0, t.run({"-i", "/", "-o", "-", "-C", "flac"}));
|
||||||
EXPECT_THAT(t.err(),
|
EXPECT_THAT(t.err(),
|
||||||
::testing::HasSubstr("cannot be used without a category"));
|
::testing::HasSubstr("cannot be used without a category"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(mkdwarfs_test, compression_cannot_be_used_for_category) {
|
||||||
|
mkdwarfs_tester t;
|
||||||
|
EXPECT_NE(0, t.run({"-i", "/", "-o", "-", "--categorize", "-C",
|
||||||
|
"incompressible::flac"}));
|
||||||
|
EXPECT_THAT(t.err(), ::testing::HasSubstr(
|
||||||
|
"cannot be used for category 'incompressible': "
|
||||||
|
"metadata requirements not met"));
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user