mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-10 04:50:31 -04:00
Test --export-metadata
dwarfsck option
This commit is contained in:
parent
337660276c
commit
58cb5147d6
@ -230,8 +230,13 @@ TEST(tools, everything) {
|
|||||||
EXPECT_EQ(1, num_hardlinks(mountpoint / "format.sh"));
|
EXPECT_EQ(1, num_hardlinks(mountpoint / "format.sh"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto meta_export = td / "test.meta";
|
||||||
|
|
||||||
run(dwarfsck_bin, image);
|
run(dwarfsck_bin, image);
|
||||||
run(dwarfsck_bin, image, "--check-integrity");
|
run(dwarfsck_bin, image, "--check-integrity");
|
||||||
|
run(dwarfsck_bin, image, "--export-metadata", meta_export);
|
||||||
|
|
||||||
|
EXPECT_GT(std::filesystem::file_size(meta_export), 1000);
|
||||||
|
|
||||||
ASSERT_TRUE(std::filesystem::create_directory(extracted));
|
ASSERT_TRUE(std::filesystem::create_directory(extracted));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user