Skip to content

Commit

Permalink
Deactive slow test
Browse files Browse the repository at this point in the history
  • Loading branch information
fiddyschmitt committed Apr 7, 2024
1 parent c47b29d commit 3f48e04
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 29 deletions.
32 changes: 18 additions & 14 deletions clonezilla-util_tests/Mount/AsFiles/LuksClonezillaImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ public void luks_ext4_500GB_gz()
return;
}

//todo: Improve speed

//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]
Expand All @@ -65,14 +67,16 @@ public void luks_ext4_500GB_zst()
return;
}

//todo: Improve speed

//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: 18 additions & 14 deletions clonezilla-util_tests/Mount/AsFiles/LuksParcloneImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ public void luks_ext4_500GB_gz()
return;
}

//todo: Improve speed

//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"),
});
//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]
Expand All @@ -65,14 +67,16 @@ public void luks_ext4_500GB_zst()
return;
}

//todo: Improve speed

//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"),
});
//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"),
// });
}
}
}
2 changes: 1 addition & 1 deletion clonezilla-util_tests/Utilities/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static void TestSeeking(Stream rawPartitionStream, Stream outputStream)
.OrderBy(x => Guid.NewGuid())
.Select((range, ix) => new
{
Index = ix,
Index = ix + 1,
Range = range
})
.ToList()
Expand Down

0 comments on commit 3f48e04

Please sign in to comment.