mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-08 11:59:48 -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"));
|
||||
}
|
||||
|
||||
TEST(mkdwarfs_test, compression_cannot_be_used) {
|
||||
TEST(mkdwarfs_test, compression_cannot_be_used_without_category) {
|
||||
mkdwarfs_tester t;
|
||||
EXPECT_NE(0, t.run({"-i", "/", "-o", "-", "-C", "flac"}));
|
||||
EXPECT_THAT(t.err(),
|
||||
::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