Skip to content

Commit

Permalink
Test LUKS partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
fiddyschmitt committed May 14, 2024
1 parent 6f48f7a commit e91bbee
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
28 changes: 14 additions & 14 deletions clonezilla-util_tests/Mount/AsFiles/LuksClonezillaImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ public void luks_ntfs_6GB()
public void luks_ext4_500GB_gz()
{
//500 GB ext4 -> luks -> partclone -> gz
//ConfirmFilesExist(
// Main.ExeUnderTest,
// """mount --input "E:\clonezilla-util-test resources\clonezilla images\2022-08-16-10-img_luks_test_500GB_ext4_gz" --mount L:\ """,
// new[] {
// new FileDetails(@"L:\file1.txt", "bad9425ff652b1bd52b49720abecf0ba"),
// new FileDetails(@"L:\file2.txt", "0f007fde795734c616b558bc6692c06a"),
// });
ConfirmFilesExist(
Main.ExeUnderTest,
"""mount --input "E:\clonezilla-util-test resources\clonezilla images\2022-08-16-10-img_luks_test_500GB_ext4_gz" --mount L:\ """,
new[] {
new FileDetails(@"L:\file1.txt", "bad9425ff652b1bd52b49720abecf0ba"),
new FileDetails(@"L:\file2.txt", "0f007fde795734c616b558bc6692c06a"),
});
}

[TestMethod]
public void luks_ext4_500GB_zst()
{
//500GB ext4 -> luks -> partclone -> zst
//ConfirmFilesExist(
// Main.ExeUnderTest,
// """mount --input "E:\clonezilla-util-test resources\clonezilla images\2022-08-16-09-img_luks_test_500GB_ext4_zst" --mount L:\ """,
// new[] {
// new FileDetails(@"L:\file1.txt", "bad9425ff652b1bd52b49720abecf0ba"),
// new FileDetails(@"L:\file2.txt", "0f007fde795734c616b558bc6692c06a"),
// });
ConfirmFilesExist(
Main.ExeUnderTest,
"""mount --input "E:\clonezilla-util-test resources\clonezilla images\2022-08-16-09-img_luks_test_500GB_ext4_zst" --mount L:\ """,
new[] {
new FileDetails(@"L:\file1.txt", "bad9425ff652b1bd52b49720abecf0ba"),
new FileDetails(@"L:\file2.txt", "0f007fde795734c616b558bc6692c06a"),
});
}
}
}
32 changes: 16 additions & 16 deletions clonezilla-util_tests/Mount/AsFiles/LuksParcloneImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,27 @@ public void luks_ntfs_6GB()
[TestMethod]
public void luks_ext4_500GB_gz()
{
//500 GB ext4 -> luks -> partclone -> gz
//ConfirmFilesExist(
// Main.ExeUnderTest,
// """mount --input "E:\clonezilla-util-test resources\clonezilla images\2022-08-16-10-img_luks_test_500GB_ext4_gz\ocs_luks_OLi.ext4-ptcl-img.gz" --mount L:\ """,
// new[] {
// new FileDetails(@"L:\file1.txt", "bad9425ff652b1bd52b49720abecf0ba"),
// new FileDetails(@"L:\file2.txt", "0f007fde795734c616b558bc6692c06a"),
// });
//500 GB ext4 -> luks->partclone->gz
ConfirmFilesExist(
Main.ExeUnderTest,
"""mount --input "E:\clonezilla-util-test resources\clonezilla images\2022-08-16-10-img_luks_test_500GB_ext4_gz\ocs_luks_OLi.ext4-ptcl-img.gz" --mount L:\ """,
new[] {
new FileDetails(@"L:\file1.txt", "bad9425ff652b1bd52b49720abecf0ba"),
new FileDetails(@"L:\file2.txt", "0f007fde795734c616b558bc6692c06a"),
});
}

[TestMethod]
public void luks_ext4_500GB_zst()
{
//500GB ext4 -> luks -> partclone -> zst
//ConfirmFilesExist(
// Main.ExeUnderTest,
// """mount --input "E:\clonezilla-util-test resources\clonezilla images\2022-08-16-09-img_luks_test_500GB_ext4_zst\ocs_luks_pDw.ext4-ptcl-img.zst" --mount L:\ """,
// new[] {
// new FileDetails(@"L:\file1.txt", "bad9425ff652b1bd52b49720abecf0ba"),
// new FileDetails(@"L:\file2.txt", "0f007fde795734c616b558bc6692c06a"),
// });
//500GB ext4 -> luks->partclone->zst
ConfirmFilesExist(
Main.ExeUnderTest,
"""mount --input "E:\clonezilla-util-test resources\clonezilla images\2022-08-16-09-img_luks_test_500GB_ext4_zst\ocs_luks_pDw.ext4-ptcl-img.zst" --mount L:\ """,
new[] {
new FileDetails(@"L:\file1.txt", "bad9425ff652b1bd52b49720abecf0ba"),
new FileDetails(@"L:\file2.txt", "0f007fde795734c616b558bc6692c06a"),
});
}
}
}

0 comments on commit e91bbee

Please sign in to comment.