Add test for contents of ShrinkWrap disk images.

This commit is contained in:
2021-07-13 20:05:17 +01:00
parent 6d8d3e7638
commit e953db5a89
6 changed files with 153 additions and 17 deletions

View File

@@ -64,7 +64,15 @@ namespace Aaru.Tests.Images.ShrinkWrap
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
MD5 = "ff419213080574056ebd9adf7bab3d32"
MD5 = "ff419213080574056ebd9adf7bab3d32",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 2880
}
}
},
new BlockImageTestExpected
{
@@ -72,7 +80,15 @@ namespace Aaru.Tests.Images.ShrinkWrap
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
MD5 = "c2be571406cf6353269faa59a4a8c0a4"
MD5 = "c2be571406cf6353269faa59a4a8c0a4",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 1440
}
}
},
new BlockImageTestExpected
{

View File

@@ -81,7 +81,15 @@ namespace Aaru.Tests.Images.ShrinkWrap
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
MD5 = "ff419213080574056ebd9adf7bab3d32"
MD5 = "ff419213080574056ebd9adf7bab3d32",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 2880
}
}
},
new BlockImageTestExpected
{
@@ -89,7 +97,15 @@ namespace Aaru.Tests.Images.ShrinkWrap
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
MD5 = "c2be571406cf6353269faa59a4a8c0a4"
MD5 = "c2be571406cf6353269faa59a4a8c0a4",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 1440
}
}
},
new BlockImageTestExpected
{
@@ -97,7 +113,15 @@ namespace Aaru.Tests.Images.ShrinkWrap
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
MD5 = "92ea7a359957012a682ba126cfdef0ce"
MD5 = "92ea7a359957012a682ba126cfdef0ce",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 3360
}
}
},
new BlockImageTestExpected
{

View File

@@ -81,7 +81,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
MD5 = "ff419213080574056ebd9adf7bab3d32"
MD5 = "ff419213080574056ebd9adf7bab3d32",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 2880
}
}
},
new BlockImageTestExpected
{
@@ -89,7 +97,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
MD5 = "c2be571406cf6353269faa59a4a8c0a4"
MD5 = "c2be571406cf6353269faa59a4a8c0a4",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 1440
}
}
},
new BlockImageTestExpected
{
@@ -97,7 +113,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
MD5 = "92ea7a359957012a682ba126cfdef0ce"
MD5 = "92ea7a359957012a682ba126cfdef0ce",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 3360
}
}
},
new BlockImageTestExpected
{

View File

@@ -81,7 +81,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
MD5 = "ff419213080574056ebd9adf7bab3d32"
MD5 = "ff419213080574056ebd9adf7bab3d32",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 2880
}
}
},
new BlockImageTestExpected
{
@@ -89,7 +97,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
MD5 = "c2be571406cf6353269faa59a4a8c0a4"
MD5 = "c2be571406cf6353269faa59a4a8c0a4",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 1440
}
}
},
new BlockImageTestExpected
{
@@ -97,7 +113,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
MD5 = "92ea7a359957012a682ba126cfdef0ce"
MD5 = "92ea7a359957012a682ba126cfdef0ce",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 3360
}
}
},
new BlockImageTestExpected
{

View File

@@ -81,7 +81,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
MD5 = "ff419213080574056ebd9adf7bab3d32"
MD5 = "ff419213080574056ebd9adf7bab3d32",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 2880
}
}
},
new BlockImageTestExpected
{
@@ -89,7 +97,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
MD5 = "c2be571406cf6353269faa59a4a8c0a4"
MD5 = "c2be571406cf6353269faa59a4a8c0a4",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 1440
}
}
},
new BlockImageTestExpected
{
@@ -97,7 +113,15 @@ namespace Aaru.Tests.Images.ShrinkWrap.NDIF
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
MD5 = "92ea7a359957012a682ba126cfdef0ce"
MD5 = "92ea7a359957012a682ba126cfdef0ce",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 3360
}
}
},
new BlockImageTestExpected
{

View File

@@ -81,7 +81,15 @@ namespace Aaru.Tests.Images.ShrinkWrap
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
MD5 = "ff419213080574056ebd9adf7bab3d32"
MD5 = "ff419213080574056ebd9adf7bab3d32",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 2880
}
}
},
new BlockImageTestExpected
{
@@ -89,7 +97,15 @@ namespace Aaru.Tests.Images.ShrinkWrap
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
MD5 = "c2be571406cf6353269faa59a4a8c0a4"
MD5 = "c2be571406cf6353269faa59a4a8c0a4",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 1440
}
}
},
new BlockImageTestExpected
{
@@ -97,7 +113,15 @@ namespace Aaru.Tests.Images.ShrinkWrap
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
MD5 = "92ea7a359957012a682ba126cfdef0ce"
MD5 = "92ea7a359957012a682ba126cfdef0ce",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 3360
}
}
},
new BlockImageTestExpected
{