mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Reformat code.
This commit is contained in:
@@ -38,45 +38,33 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class ADFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"adfs_d.adf.lz",
|
||||
"adfs_e.adf.lz",
|
||||
"adfs_f.adf.lz",
|
||||
"adfs_e+.adf.lz",
|
||||
"adfs_f+.adf.lz",
|
||||
"adfs_s.adf.lz",
|
||||
"adfs_m.adf.lz",
|
||||
"adfs_l.adf.lz",
|
||||
"hdd_old.hdf.lz",
|
||||
"hdd_new.hdf.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"adfs_d.adf.lz", "adfs_e.adf.lz", "adfs_f.adf.lz", "adfs_e+.adf.lz", "adfs_f+.adf.lz", "adfs_s.adf.lz",
|
||||
"adfs_m.adf.lz", "adfs_l.adf.lz", "hdd_old.hdf.lz", "hdd_new.hdf.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.ACORN_35_DS_DD,
|
||||
MediaType.ACORN_35_DS_DD,
|
||||
MediaType.ACORN_35_DS_HD,
|
||||
MediaType.ACORN_35_DS_DD,
|
||||
MediaType.ACORN_35_DS_HD,
|
||||
MediaType.ACORN_525_SS_DD_40,
|
||||
MediaType.ACORN_525_SS_DD_80,
|
||||
MediaType.ACORN_525_DS_DD,
|
||||
MediaType.GENERIC_HDD,
|
||||
MediaType.GENERIC_HDD,
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
MediaType.ACORN_35_DS_DD, MediaType.ACORN_35_DS_DD, MediaType.ACORN_35_DS_HD, MediaType.ACORN_35_DS_DD,
|
||||
MediaType.ACORN_35_DS_HD, MediaType.ACORN_525_SS_DD_40, MediaType.ACORN_525_SS_DD_80,
|
||||
MediaType.ACORN_525_DS_DD, MediaType.GENERIC_HDD, MediaType.GENERIC_HDD,
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = { 800, 800, 1600, 800, 1600, 640, 1280, 2560, 78336, 78336 };
|
||||
readonly ulong[] sectors = {800, 800, 1600, 800, 1600, 640, 1280, 2560, 78336, 78336};
|
||||
|
||||
readonly uint[] sectorsize = { 1024, 1024, 1024, 1024, 1024, 256, 256, 256, 256, 256 };
|
||||
readonly uint[] sectorsize = {1024, 1024, 1024, 1024, 1024, 256, 256, 256, 256, 256};
|
||||
|
||||
readonly bool[] bootable = { false, false, false, false, false, false, false, false, false, false };
|
||||
readonly bool[] bootable = {false, false, false, false, false, false, false, false, false, false};
|
||||
|
||||
readonly long[] clusters = { 800, 800, 1600, 800, 1600, 640, 1280, 2560, 78336, 78336 };
|
||||
readonly long[] clusters = {800, 800, 1600, 800, 1600, 640, 1280, 2560, 78336, 78336};
|
||||
|
||||
readonly uint[] clustersize = { 1024, 1024, 1024, 1024, 1024, 256, 256, 256, 256, 256 };
|
||||
readonly uint[] clustersize = {1024, 1024, 1024, 1024, 1024, 256, 256, 256, 256, 256};
|
||||
|
||||
readonly string[] volumename = { "ADFSD", "ADFSE ", null, "ADFSE+ ", null, "$", "$", "$", "VolLablOld", null };
|
||||
readonly string[] volumename =
|
||||
{"ADFSD", "ADFSE ", null, "ADFSE+ ", null, "$", "$", "$", "VolLablOld", null};
|
||||
|
||||
readonly string[] volumeserial = { "3E48", "E13A", null, "1142", null, "F20D", "D6CA", "0CA6", "080E", null };
|
||||
readonly string[] volumeserial = {"3E48", "E13A", null, "1142", null, "F20D", "D6CA", "0CA6", "080E", null};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -109,4 +97,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,37 +38,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AFFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz",};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.CBM_AMIGA_35_DD, MediaType.CBM_AMIGA_35_DD,
|
||||
};
|
||||
readonly MediaType[] mediatypes = {MediaType.CBM_AMIGA_35_DD, MediaType.CBM_AMIGA_35_DD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1760, 1760,
|
||||
};
|
||||
readonly ulong[] sectors = {1760, 1760,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1760, 1760,
|
||||
};
|
||||
readonly long[] clusters = {1760, 1760,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label", "Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A5D9FAE2", "A5DA0CC9",
|
||||
};
|
||||
readonly string[] volumeserial = {"A5D9FAE2", "A5DA0CC9",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -100,4 +84,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AFFS2_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amigaos_4.0.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"amigaos_4.0.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,
|
||||
};
|
||||
readonly ulong[] sectors = {1024128,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
511040,
|
||||
};
|
||||
readonly long[] clusters = {511040,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"611D85E5",
|
||||
};
|
||||
readonly string[] volumeserial = {"611D85E5",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AFFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"aros.vdi.lz","aros_intl.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600,409600,
|
||||
};
|
||||
readonly ulong[] sectors = {409600, 409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
408240,408240,
|
||||
};
|
||||
readonly long[] clusters = {408240, 408240,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A582DCA4","A582BC91",
|
||||
};
|
||||
readonly string[] volumeserial = {"A582DCA4", "A582BC91",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AFFS_MBR_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"aros.vdi.lz","aros_intl.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600,409600,
|
||||
};
|
||||
readonly ulong[] sectors = {409600, 409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
406224,406224,
|
||||
};
|
||||
readonly long[] clusters = {406224, 406224,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A58348CE","A5833CD0",
|
||||
};
|
||||
readonly string[] volumeserial = {"A58348CE", "A5833CD0",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,40 +40,28 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AFFS_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amigaos_3.9.vdi.lz","amigaos_3.9_intl.vdi.lz","aros.vdi.lz","aros_intl.vdi.lz",
|
||||
"amigaos_4.0.vdi.lz","amigaos_4.0_intl.vdi.lz","amigaos_4.0_cache.vdi.lz"
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"amigaos_3.9.vdi.lz", "amigaos_3.9_intl.vdi.lz", "aros.vdi.lz", "aros_intl.vdi.lz", "amigaos_4.0.vdi.lz",
|
||||
"amigaos_4.0_intl.vdi.lz", "amigaos_4.0_cache.vdi.lz"
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,1024128,409600,409600,
|
||||
1024128,1024128,1024128,
|
||||
readonly ulong[] sectors = {1024128, 1024128, 409600, 409600, 1024128, 1024128, 1024128,};
|
||||
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {510032, 510032, 407232, 407232, 511040, 511040, 511040,};
|
||||
|
||||
readonly int[] clustersize = {1024, 1024, 512, 512, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"Volume label", "Volume label", "Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label",
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,512,512,
|
||||
512,512,512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
510032,510032,407232,407232,
|
||||
511040,511040,511040,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,1024,512,512,
|
||||
1024,1024,1024,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Volume label","Volume label",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A56D0F5C","A56D049C","A58307A9","A58304BE",
|
||||
"A56CC7EE","A56CDDC4","A56CC133",
|
||||
};
|
||||
readonly string[] volumeserial =
|
||||
{"A56D0F5C", "A56D049C", "A58307A9", "A58304BE", "A56CC7EE", "A56CDDC4", "A56CC133",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -92,12 +80,14 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
{
|
||||
if(partitions[j].Type == "\"DOS\\1\"" || partitions[j].Type == "\"DOS\\3\"" || partitions[j].Type == "\"DOS\\5\"")
|
||||
if(partitions[j].Type == "\"DOS\\1\"" || partitions[j].Type == "\"DOS\\3\"" ||
|
||||
partitions[j].Type == "\"DOS\\5\"")
|
||||
{
|
||||
part = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -109,4 +99,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,47 +38,30 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz", "scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED,
|
||||
MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
3360, 2400, 1440, 5760,
|
||||
2880,
|
||||
};
|
||||
readonly ulong[] sectors = {3360, 2400, 1440, 5760, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1680, 1200, 720, 2880,
|
||||
1440,
|
||||
};
|
||||
readonly long[] clusters = {1680, 1200, 720, 2880, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"", "", "", "",
|
||||
"",
|
||||
};
|
||||
readonly string[] volumename = {"", "", "", "", "",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
readonly string[] type =
|
||||
{
|
||||
"Acer Fast Filesystem", "Acer Fast Filesystem", "Acer Fast Filesystem", "Acer Fast Filesystem",
|
||||
"Acer Fast Filesystem",
|
||||
};
|
||||
@@ -113,4 +96,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
510048,
|
||||
};
|
||||
readonly long[] clusters = {510048,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"Acer Fast Filesystem",
|
||||
};
|
||||
readonly string[] type = {"Acer Fast Filesystem",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,37 +38,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AOFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz",};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.CBM_AMIGA_35_DD, MediaType.CBM_AMIGA_35_DD,
|
||||
};
|
||||
readonly MediaType[] mediatypes = {MediaType.CBM_AMIGA_35_DD, MediaType.CBM_AMIGA_35_DD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1760, 1760,
|
||||
};
|
||||
readonly ulong[] sectors = {1760, 1760,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1760, 1760,
|
||||
};
|
||||
readonly long[] clusters = {1760, 1760,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label", "Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A5D9FE71", "A5D9F14F",
|
||||
};
|
||||
readonly string[] volumeserial = {"A5D9FE71", "A5D9F14F",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -100,4 +84,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AOFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"aros.vdi.lz","aros_intl.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600,409600,
|
||||
};
|
||||
readonly ulong[] sectors = {409600, 409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
408240,408240,
|
||||
};
|
||||
readonly long[] clusters = {408240, 408240,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A582C90C","A582CE0D",
|
||||
};
|
||||
readonly string[] volumeserial = {"A582C90C", "A582CE0D",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AOFS_MBR_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"aros.vdi.lz","aros_intl.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600,409600,
|
||||
};
|
||||
readonly ulong[] sectors = {409600, 409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
406224,406224,
|
||||
};
|
||||
readonly long[] clusters = {406224, 406224,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A5833C5B","A5833085",
|
||||
};
|
||||
readonly string[] volumeserial = {"A5833C5B", "A5833085",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,20 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class AOFS_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amigaos_3.9.vdi.lz","amigaos_3.9_intl.vdi.lz","aros.vdi.lz","aros_intl.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles =
|
||||
{"amigaos_3.9.vdi.lz", "amigaos_3.9_intl.vdi.lz", "aros.vdi.lz", "aros_intl.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,1024128,409600,409600,
|
||||
};
|
||||
readonly ulong[] sectors = {1024128, 1024128, 409600, 409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,512,512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
510032,510032,407232,407232,
|
||||
};
|
||||
readonly long[] clusters = {510032, 510032, 407232, 407232,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,1024,512,512,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label", "Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A56D13BB","A56D0415","A582F3A0","A5830B06",
|
||||
};
|
||||
readonly string[] volumeserial = {"A56D13BB", "A56D0415", "A582F3A0", "A5830B06",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -85,12 +72,14 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
{
|
||||
if(partitions[j].Type == "\"DOS\\0\"" || partitions[j].Type == "\"DOS\\2\"" || partitions[j].Type == "\"DOS\\4\"")
|
||||
if(partitions[j].Type == "\"DOS\\0\"" || partitions[j].Type == "\"DOS\\2\"" ||
|
||||
partitions[j].Type == "\"DOS\\4\"")
|
||||
{
|
||||
part = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class Atheos_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"syllable_0.6.7.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"syllable_0.6.7.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
4194304,
|
||||
};
|
||||
readonly ulong[] sectors = {4194304,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
2097120,
|
||||
};
|
||||
readonly long[] clusters = {2097120,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,41 +38,23 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class BeFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"beos_r3.1.img.lz", "beos_r4.5.img.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"beos_r3.1.img.lz", "beos_r4.5.img.lz",};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DOS_35_HD, MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes = {MediaType.DOS_35_HD, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
2880, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {2880, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1440, 1440,
|
||||
};
|
||||
readonly long[] clusters = {1440, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null,};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] oemid = {null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -105,4 +87,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class BeFS_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1572864, 1572864,
|
||||
};
|
||||
readonly ulong[] sectors = {1572864, 1572864,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
786336, 786336,
|
||||
};
|
||||
readonly long[] clusters = {786336, 786336,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null,};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null,null,
|
||||
};
|
||||
readonly string[] oemid = {null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class BeFS_GPT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"haiku_hrev51259.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"haiku_hrev51259.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
8388608,
|
||||
};
|
||||
readonly ulong[] sectors = {8388608,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
2096640,
|
||||
};
|
||||
readonly long[] clusters = {2096640,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
2048
|
||||
};
|
||||
readonly int[] clustersize = {2048};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,20 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class BeFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz", "haiku_hrev51259.vdi.lz","syllable_0.6.7.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles =
|
||||
{"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz", "haiku_hrev51259.vdi.lz", "syllable_0.6.7.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1572864, 1572864, 8388608, 2097152,
|
||||
};
|
||||
readonly ulong[] sectors = {1572864, 1572864, 8388608, 2097152,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
786400, 785232, 2096640, 524272,
|
||||
};
|
||||
readonly long[] clusters = {786400, 785232, 2096640, 524272,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 2048, 2048,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 2048, 2048,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label", "Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,null,null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +90,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,42 +38,28 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class COHERENT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"coherentunix_4.2.10_dsdd.img.lz", "coherentunix_4.2.10_dshd.img.lz", "coherentunix_4.2.10_mf2dd.img.lz", "coherentunix_4.2.10_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"coherentunix_4.2.10_dsdd.img.lz", "coherentunix_4.2.10_dshd.img.lz", "coherentunix_4.2.10_mf2dd.img.lz",
|
||||
"coherentunix_4.2.10_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
720, 2400, 1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {720, 2400, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
720, 2400, 1440, 2880,
|
||||
};
|
||||
readonly long[] clusters = {720, 2400, 1440, 2880,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512, 512, 512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512, 512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"noname", "noname", "noname", "noname",
|
||||
};
|
||||
readonly string[] volumename = {"noname", "noname", "noname", "noname",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"Coherent fs", "Coherent fs", "Coherent fs", "Coherent fs",
|
||||
};
|
||||
readonly string[] type = {"Coherent fs", "Coherent fs", "Coherent fs", "Coherent fs",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -105,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class COHERENT_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"coherentunix_4.2.10.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles = {"coherentunix_4.2.10.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
510048,
|
||||
};
|
||||
readonly long[] clusters = {510048,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"Coherent fs",
|
||||
};
|
||||
readonly string[] type = {"Coherent fs",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,50 +38,29 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class DTFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz", "scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED,
|
||||
MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
3360, 2400, 1440, 5760,
|
||||
2880,
|
||||
};
|
||||
readonly ulong[] sectors = {3360, 2400, 1440, 5760, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1680, 1200, 720, 2880,
|
||||
1440,
|
||||
};
|
||||
readonly long[] clusters = {1680, 1200, 720, 2880, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"", "", "", "",
|
||||
"",
|
||||
};
|
||||
readonly string[] volumename = {"", "", "", "", "",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"DTFS", "DTFS", "DTFS", "DTFS",
|
||||
"DTFS",
|
||||
};
|
||||
readonly string[] type = {"DTFS", "DTFS", "DTFS", "DTFS", "DTFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -113,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class DTFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
510048,
|
||||
};
|
||||
readonly long[] clusters = {510048,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"DTFS",
|
||||
};
|
||||
readonly string[] type = {"DTFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,49 +38,32 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class EAFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz", "scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED,
|
||||
MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
3360, 2400, 1440, 5760,
|
||||
2880,
|
||||
};
|
||||
readonly ulong[] sectors = {3360, 2400, 1440, 5760, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1680, 1200, 720, 2880,
|
||||
1440,
|
||||
};
|
||||
readonly long[] clusters = {1680, 1200, 720, 2880, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"", "", "", "",
|
||||
"",
|
||||
};
|
||||
readonly string[] volumename = {"", "", "", "", "",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"Extended Acer Fast Filesystem", "Extended Acer Fast Filesystem", "Extended Acer Fast Filesystem", "Extended Acer Fast Filesystem",
|
||||
"Extended Acer Fast Filesystem",
|
||||
readonly string[] type =
|
||||
{
|
||||
"Extended Acer Fast Filesystem", "Extended Acer Fast Filesystem", "Extended Acer Fast Filesystem",
|
||||
"Extended Acer Fast Filesystem", "Extended Acer Fast Filesystem",
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -113,4 +96,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class EAFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
510048,
|
||||
};
|
||||
readonly long[] clusters = {510048,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"Extended Acer Fast Filesystem",
|
||||
};
|
||||
readonly string[] type = {"Extended Acer Fast Filesystem",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,33 +41,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class F2FS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
32512,
|
||||
};
|
||||
readonly long[] clusters = {32512,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VolumeLabel",
|
||||
};
|
||||
readonly string[] volumename = {"VolumeLabel",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"81bd3a4e-de0c-484c-becc-aaa479b2070a",
|
||||
};
|
||||
readonly string[] volumeserial = {"81bd3a4e-de0c-484c-becc-aaa479b2070a",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -93,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -104,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT12_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
16384,
|
||||
};
|
||||
readonly ulong[] sectors = {16384,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
4076,
|
||||
};
|
||||
readonly long[] clusters = {4076,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
2048,
|
||||
};
|
||||
readonly int[] clustersize = {2048,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL",
|
||||
};
|
||||
readonly string[] volumename = {"VOLUMELABEL",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"32181F09",
|
||||
};
|
||||
readonly string[] volumeserial = {"32181F09",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"BSD 4.4",
|
||||
};
|
||||
readonly string[] oemid = {"BSD 4.4",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT12_GPT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
16384,
|
||||
};
|
||||
readonly ulong[] sectors = {16384,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
4076,
|
||||
};
|
||||
readonly long[] clusters = {4076,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
2048,
|
||||
};
|
||||
readonly int[] clustersize = {2048,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL",
|
||||
};
|
||||
readonly string[] volumename = {"VOLUMELABEL",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"66901F1B",
|
||||
};
|
||||
readonly string[] volumeserial = {"66901F1B",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"BSD 4.4",
|
||||
};
|
||||
readonly string[] oemid = {"BSD 4.4",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,156 +40,88 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT12_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"compaqmsdos331.vdi.lz", "drdos_3.40.vdi.lz", "drdos_3.41.vdi.lz", "drdos_5.00.vdi.lz",
|
||||
"drdos_6.00.vdi.lz", "drdos_7.02.vdi.lz", "drdos_7.03.vdi.lz", "drdos_8.00.vdi.lz",
|
||||
"msdos331.vdi.lz", "msdos401.vdi.lz", "msdos500.vdi.lz", "msdos600.vdi.lz",
|
||||
"msdos620rc1.vdi.lz", "msdos620.vdi.lz", "msdos621.vdi.lz", "msdos622.vdi.lz",
|
||||
"msdos710.vdi.lz", "novelldos_7.00.vdi.lz", "opendos_7.01.vdi.lz", "pcdos2000.vdi.lz",
|
||||
"pcdos200.vdi.lz", "pcdos210.vdi.lz", "pcdos300.vdi.lz", "pcdos310.vdi.lz",
|
||||
"pcdos330.vdi.lz", "pcdos400.vdi.lz", "pcdos500.vdi.lz", "pcdos502.vdi.lz",
|
||||
"pcdos610.vdi.lz", "pcdos630.vdi.lz", "toshibamsdos330.vdi.lz", "toshibamsdos401.vdi.lz",
|
||||
"msos2_1.21.vdi.lz", "msos2_1.30.1.vdi.lz", "multiuserdos_7.22r4.vdi.lz", "os2_1.20.vdi.lz",
|
||||
"os2_1.30.vdi.lz", "os2_6.307.vdi.lz", "os2_6.514.vdi.lz", "os2_6.617.vdi.lz",
|
||||
"os2_8.162.vdi.lz", "os2_9.023.vdi.lz", "ecs.vdi.lz", "macosx_10.11.vdi.lz",
|
||||
"win10.vdi.lz", "win2000.vdi.lz","win95.vdi.lz","win95osr2.1.vdi.lz",
|
||||
"win95osr2.5.vdi.lz","win95osr2.vdi.lz","win98.vdi.lz","win98se.vdi.lz",
|
||||
"winme.vdi.lz","winnt_3.10.vdi.lz","winnt_3.50.vdi.lz","winnt_3.51.vdi.lz",
|
||||
"winnt_4.00.vdi.lz","winvista.vdi.lz","beos_r4.5.vdi.lz","linux.vdi.lz",
|
||||
"freebsd_6.1.vdi.lz","freebsd_7.0.vdi.lz","freebsd_8.2.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"compaqmsdos331.vdi.lz", "drdos_3.40.vdi.lz", "drdos_3.41.vdi.lz", "drdos_5.00.vdi.lz", "drdos_6.00.vdi.lz",
|
||||
"drdos_7.02.vdi.lz", "drdos_7.03.vdi.lz", "drdos_8.00.vdi.lz", "msdos331.vdi.lz", "msdos401.vdi.lz",
|
||||
"msdos500.vdi.lz", "msdos600.vdi.lz", "msdos620rc1.vdi.lz", "msdos620.vdi.lz", "msdos621.vdi.lz",
|
||||
"msdos622.vdi.lz", "msdos710.vdi.lz", "novelldos_7.00.vdi.lz", "opendos_7.01.vdi.lz", "pcdos2000.vdi.lz",
|
||||
"pcdos200.vdi.lz", "pcdos210.vdi.lz", "pcdos300.vdi.lz", "pcdos310.vdi.lz", "pcdos330.vdi.lz",
|
||||
"pcdos400.vdi.lz", "pcdos500.vdi.lz", "pcdos502.vdi.lz", "pcdos610.vdi.lz", "pcdos630.vdi.lz",
|
||||
"toshibamsdos330.vdi.lz", "toshibamsdos401.vdi.lz", "msos2_1.21.vdi.lz", "msos2_1.30.1.vdi.lz",
|
||||
"multiuserdos_7.22r4.vdi.lz", "os2_1.20.vdi.lz", "os2_1.30.vdi.lz", "os2_6.307.vdi.lz", "os2_6.514.vdi.lz",
|
||||
"os2_6.617.vdi.lz", "os2_8.162.vdi.lz", "os2_9.023.vdi.lz", "ecs.vdi.lz", "macosx_10.11.vdi.lz",
|
||||
"win10.vdi.lz", "win2000.vdi.lz", "win95.vdi.lz", "win95osr2.1.vdi.lz", "win95osr2.5.vdi.lz",
|
||||
"win95osr2.vdi.lz", "win98.vdi.lz", "win98se.vdi.lz", "winme.vdi.lz", "winnt_3.10.vdi.lz",
|
||||
"winnt_3.50.vdi.lz", "winnt_3.51.vdi.lz", "winnt_4.00.vdi.lz", "winvista.vdi.lz", "beos_r4.5.vdi.lz",
|
||||
"linux.vdi.lz", "freebsd_6.1.vdi.lz", "freebsd_7.0.vdi.lz", "freebsd_8.2.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
8192, 30720, 28672, 28672,
|
||||
28672, 28672, 28672, 28672,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
16384, 28672, 28672, 32768,
|
||||
32768, 32768, 32768, 32768,
|
||||
32768, 32768, 32768, 32768,
|
||||
32768, 32768, 8192, 8192,
|
||||
16384, 16384, 16384, 16384,
|
||||
16384, 16384, 16384, 16384,
|
||||
16384, 16384, 16384, 16384,
|
||||
16384, 16384, 16384, 16384,
|
||||
16384, 16384, 16384, 16384,
|
||||
16384, 16384, 16384, 16384,
|
||||
16384, 16384, 16384, 16384,
|
||||
16384, 16384, 16384,
|
||||
readonly ulong[] sectors =
|
||||
{
|
||||
8192, 30720, 28672, 28672, 28672, 28672, 28672, 28672, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192,
|
||||
16384, 28672, 28672, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 8192,
|
||||
8192, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384,
|
||||
16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384, 16384,
|
||||
16384, 16384,
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512,
|
||||
readonly uint[] sectorsize =
|
||||
{
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1000, 3654, 3520, 3520,
|
||||
3520, 3520, 3520, 3520,
|
||||
1000, 1000, 1000, 1000,
|
||||
1000, 1000, 1000, 1000,
|
||||
2008, 3520, 3520, 4024,
|
||||
4031, 4031, 4024, 4024,
|
||||
4024, 4024, 4024, 4024,
|
||||
4024, 4024, 1000, 1000,
|
||||
2008, 2008, 2008, 2008,
|
||||
2008, 2008, 2008, 2008,
|
||||
2008, 2008, 1890, 4079,
|
||||
3552, 4088, 2008, 2008,
|
||||
2008, 2008, 2044, 2044,
|
||||
2044, 4016, 2044, 2044,
|
||||
4016, 3072, 2040, 3584,
|
||||
2044, 2044, 2044,
|
||||
readonly long[] clusters =
|
||||
{
|
||||
1000, 3654, 3520, 3520, 3520, 3520, 3520, 3520, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 2008, 3520,
|
||||
3520, 4024, 4031, 4031, 4024, 4024, 4024, 4024, 4024, 4024, 4024, 4024, 1000, 1000, 2008, 2008, 2008, 2008,
|
||||
2008, 2008, 2008, 2008, 2008, 2008, 1890, 4079, 3552, 4088, 2008, 2008, 2008, 2008, 2044, 2044, 2044, 4016,
|
||||
2044, 2044, 4016, 3072, 2040, 3584, 2044, 2044, 2044,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 2048,
|
||||
2048, 2048, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 2048, 4096, 4096,
|
||||
2048, 2048, 4096, 2048,
|
||||
4096, 4096, 4096,
|
||||
readonly int[] clustersize =
|
||||
{
|
||||
4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096, 4096, 4096, 4096, 2048, 2048, 2048, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 2048,
|
||||
4096, 4096, 2048, 2048, 4096, 2048, 4096, 4096, 4096,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
null,null,null,null,
|
||||
null,"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VolumeLabel",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
readonly string[] volumename =
|
||||
{
|
||||
null, "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", null, null, null,
|
||||
null, null, "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VolumeLabel", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,null,null,
|
||||
null,null,null,"1BFB1273",
|
||||
null,"407D1907","345D18FB","332518F4",
|
||||
"395718E9","076718EF","1371181B","23281816",
|
||||
"2F781809",null,null,"294F100F",
|
||||
null,null,null,null,
|
||||
null,"0F340FE4","1A5E0FF9","1D2F0FFE",
|
||||
"076C1004","2C481009",null,"3C2319E8",
|
||||
"66CC3C15","66A54C15",null,"5C578015",
|
||||
"5B845015","5C4BF015","E6B5F414","E6B15414",
|
||||
"E6A41414","E6A39414","E6B0B814","26A21EF4",
|
||||
"74F4921D","C4B64D11","29200D0C","234F0DE4",
|
||||
"074C0DFC","33640D18","0E121460","094C0EED",
|
||||
"38310F02","50489A1B","2CE52101","94313E7E",
|
||||
"BC184FE6","BAD08A1E","00000000","8D418102",
|
||||
"8FC80E0A","34FA0E0B","02140E0B",
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
null, null, null, null, null, null, null, "1BFB1273", null, "407D1907", "345D18FB", "332518F4", "395718E9",
|
||||
"076718EF", "1371181B", "23281816", "2F781809", null, null, "294F100F", null, null, null, null, null,
|
||||
"0F340FE4", "1A5E0FF9", "1D2F0FFE", "076C1004", "2C481009", null, "3C2319E8", "66CC3C15", "66A54C15", null,
|
||||
"5C578015", "5B845015", "5C4BF015", "E6B5F414", "E6B15414", "E6A41414", "E6A39414", "E6B0B814", "26A21EF4",
|
||||
"74F4921D", "C4B64D11", "29200D0C", "234F0DE4", "074C0DFC", "33640D18", "0E121460", "094C0EED", "38310F02",
|
||||
"50489A1B", "2CE52101", "94313E7E", "BC184FE6", "BAD08A1E", "00000000", "8D418102", "8FC80E0A", "34FA0E0B",
|
||||
"02140E0B",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"IBM 3.3", "IBM 3.2", "IBM 3.2", "IBM 3.3",
|
||||
"IBM 3.3", "IBM 3.3", "DRDOS 7", "IBM 5.0",
|
||||
"IBM 3.3", "MSDOS4.0", "MSDOS5.0", "MSDOS5.0",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0",
|
||||
"MSWIN4.1", "IBM 3.3", "IBM 3.3", "IBM 7.0",
|
||||
"IBM 2.0", "IBM 2.0", "IBM 3.0", "IBM 3.1",
|
||||
"IBM 3.3", "IBM 4.0", "IBM 5.0", "IBM 5.0",
|
||||
"IBM 6.0", "IBM 6.0", "T V3.30 ", "T V4.00 ",
|
||||
"IBM 10.2", "IBM 10.2", "IBM 3.2", "IBM 10.2",
|
||||
"IBM 10.2", "IBM 20.0", "IBM 20.0", "IBM 20.0",
|
||||
"IBM 20.0", "IBM 20.0", "IBM 4.50", "BSD 4.4",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSWIN4.0", "MSWIN4.1",
|
||||
"MSWIN4.1", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1",
|
||||
"MSWIN4.1", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0",
|
||||
"MSDOS5.0", "MSDOS5.0", "BeOS ", "mkfs.fat",
|
||||
"BSD 4.4", "BSD 4.4", "BSD4.4 ",
|
||||
readonly string[] oemid =
|
||||
{
|
||||
"IBM 3.3", "IBM 3.2", "IBM 3.2", "IBM 3.3", "IBM 3.3", "IBM 3.3", "DRDOS 7", "IBM 5.0", "IBM 3.3",
|
||||
"MSDOS4.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSWIN4.1", "IBM 3.3",
|
||||
"IBM 3.3", "IBM 7.0", "IBM 2.0", "IBM 2.0", "IBM 3.0", "IBM 3.1", "IBM 3.3", "IBM 4.0", "IBM 5.0",
|
||||
"IBM 5.0", "IBM 6.0", "IBM 6.0", "T V3.30 ", "T V4.00 ", "IBM 10.2", "IBM 10.2", "IBM 3.2", "IBM 10.2",
|
||||
"IBM 10.2", "IBM 20.0", "IBM 20.0", "IBM 20.0", "IBM 20.0", "IBM 20.0", "IBM 4.50", "BSD 4.4", "MSDOS5.0",
|
||||
"MSDOS5.0", "MSWIN4.0", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1", "MSDOS5.0",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "BeOS ", "mkfs.fat", "BSD 4.4", "BSD 4.4", "BSD4.4 ",
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -217,4 +149,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,63 +38,72 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT16
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
"msdos_3.30A_mf2ed.img.lz",
|
||||
// MS-DOS 3.31
|
||||
"msdos_3.31_mf2ed.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
MediaType.DOS_35_ED,
|
||||
// MS-DOS 3.31
|
||||
MediaType.DOS_35_ED,
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
readonly ulong[] sectors =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
5760,
|
||||
// MS-DOS 3.31
|
||||
5760,
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
readonly uint[] sectorsize =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
512,
|
||||
// MS-DOS 3.31
|
||||
512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
readonly long[] clusters =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
5760,
|
||||
// MS-DOS 3.31
|
||||
5760,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
readonly int[] clustersize =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
512,
|
||||
// MS-DOS 3.31
|
||||
512,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
readonly string[] volumename =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
null,
|
||||
// MS-DOS 3.31
|
||||
null,
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
null,
|
||||
// MS-DOS 3.31
|
||||
null,
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
readonly string[] oemid =
|
||||
{
|
||||
// MS-DOS 3.30A
|
||||
"MSDOS3.3",
|
||||
// MS-DOS 3.31
|
||||
@@ -132,4 +141,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT16_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
63995,
|
||||
};
|
||||
readonly long[] clusters = {63995,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
8192,
|
||||
};
|
||||
readonly int[] clustersize = {8192,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL",
|
||||
};
|
||||
readonly string[] volumename = {"VOLUMELABEL",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"063D1F09",
|
||||
};
|
||||
readonly string[] volumeserial = {"063D1F09",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"BSD 4.4",
|
||||
};
|
||||
readonly string[] oemid = {"BSD 4.4",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT16_Atari
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"tos_1.04.vdi.lz","tos_1.04_small.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"tos_1.04.vdi.lz", "tos_1.04_small.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
81920, 16384,
|
||||
};
|
||||
readonly ulong[] sectors = {81920, 16384,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
10239, 8191,
|
||||
};
|
||||
readonly long[] clusters = {10239, 8191,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {4096, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"BA9831", "2019E1",
|
||||
};
|
||||
readonly string[] volumeserial = {"BA9831", "2019E1",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] oemid = {null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT16_GPT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
63995,
|
||||
};
|
||||
readonly long[] clusters = {63995,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
8192,
|
||||
};
|
||||
readonly int[] clustersize = {8192,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL",
|
||||
};
|
||||
readonly string[] volumename = {"VOLUMELABEL",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"2E8A1F1B",
|
||||
};
|
||||
readonly string[] volumeserial = {"2E8A1F1B",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"BSD 4.4",
|
||||
};
|
||||
readonly string[] oemid = {"BSD 4.4",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,156 +40,90 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT16_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"drdos_3.40.vdi.lz", "drdos_3.41.vdi.lz", "drdos_5.00.vdi.lz", "drdos_6.00.vdi.lz",
|
||||
"drdos_7.02.vdi.lz", "drdos_7.03.vdi.lz", "drdos_8.00.vdi.lz", "msdos331.vdi.lz",
|
||||
"msdos401.vdi.lz", "msdos500.vdi.lz", "msdos600.vdi.lz", "msdos620rc1.vdi.lz",
|
||||
"msdos620.vdi.lz", "msdos621.vdi.lz", "msdos622.vdi.lz", "msdos710.vdi.lz",
|
||||
"novelldos_7.00.vdi.lz", "opendos_7.01.vdi.lz", "pcdos2000.vdi.lz", "pcdos400.vdi.lz",
|
||||
"pcdos500.vdi.lz", "pcdos502.vdi.lz", "pcdos610.vdi.lz", "pcdos630.vdi.lz",
|
||||
"msos2_1.21.vdi.lz", "msos2_1.30.1.vdi.lz", "multiuserdos_7.22r4.vdi.lz", "os2_1.20.vdi.lz",
|
||||
"os2_1.30.vdi.lz", "os2_6.307.vdi.lz", "os2_6.514.vdi.lz", "os2_6.617.vdi.lz",
|
||||
"os2_8.162.vdi.lz", "os2_9.023.vdi.lz", "ecs.vdi.lz", "macosx_10.11.vdi.lz",
|
||||
"win10.vdi.lz", "win2000.vdi.lz", "win95osr2.1.vdi.lz", "win95osr2.5.vdi.lz",
|
||||
"win95osr2.vdi.lz", "win95.vdi.lz", "win98se.vdi.lz", "win98.vdi.lz",
|
||||
"winme.vdi.lz", "winnt_3.10.vdi.lz", "winnt_3.50.vdi.lz", "winnt_3.51.vdi.lz",
|
||||
"winnt_4.00.vdi.lz", "winvista.vdi.lz", "beos_r4.5.vdi.lz", "linux.vdi.lz",
|
||||
"amigaos_3.9.vdi.lz","aros.vdi.lz","freebsd_6.1.vdi.lz","freebsd_7.0.vdi.lz",
|
||||
"freebsd_8.2.vdi.lz","macos_7.5.3.vdi.lz","macos_7.5.vdi.lz","macos_7.6.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"drdos_3.40.vdi.lz", "drdos_3.41.vdi.lz", "drdos_5.00.vdi.lz", "drdos_6.00.vdi.lz", "drdos_7.02.vdi.lz",
|
||||
"drdos_7.03.vdi.lz", "drdos_8.00.vdi.lz", "msdos331.vdi.lz", "msdos401.vdi.lz", "msdos500.vdi.lz",
|
||||
"msdos600.vdi.lz", "msdos620rc1.vdi.lz", "msdos620.vdi.lz", "msdos621.vdi.lz", "msdos622.vdi.lz",
|
||||
"msdos710.vdi.lz", "novelldos_7.00.vdi.lz", "opendos_7.01.vdi.lz", "pcdos2000.vdi.lz", "pcdos400.vdi.lz",
|
||||
"pcdos500.vdi.lz", "pcdos502.vdi.lz", "pcdos610.vdi.lz", "pcdos630.vdi.lz", "msos2_1.21.vdi.lz",
|
||||
"msos2_1.30.1.vdi.lz", "multiuserdos_7.22r4.vdi.lz", "os2_1.20.vdi.lz", "os2_1.30.vdi.lz",
|
||||
"os2_6.307.vdi.lz", "os2_6.514.vdi.lz", "os2_6.617.vdi.lz", "os2_8.162.vdi.lz", "os2_9.023.vdi.lz",
|
||||
"ecs.vdi.lz", "macosx_10.11.vdi.lz", "win10.vdi.lz", "win2000.vdi.lz", "win95osr2.1.vdi.lz",
|
||||
"win95osr2.5.vdi.lz", "win95osr2.vdi.lz", "win95.vdi.lz", "win98se.vdi.lz", "win98.vdi.lz", "winme.vdi.lz",
|
||||
"winnt_3.10.vdi.lz", "winnt_3.50.vdi.lz", "winnt_3.51.vdi.lz", "winnt_4.00.vdi.lz", "winvista.vdi.lz",
|
||||
"beos_r4.5.vdi.lz", "linux.vdi.lz", "amigaos_3.9.vdi.lz", "aros.vdi.lz", "freebsd_6.1.vdi.lz",
|
||||
"freebsd_7.0.vdi.lz", "freebsd_8.2.vdi.lz", "macos_7.5.3.vdi.lz", "macos_7.5.vdi.lz", "macos_7.6.vdi.lz",
|
||||
"macos_8.0.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 262144,
|
||||
1024128, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
readonly ulong[] sectors =
|
||||
{
|
||||
1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 262144, 1024128, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000,
|
||||
1024000,
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
readonly uint[] sectorsize =
|
||||
{
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
63882, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63882, 63992,
|
||||
63864, 63252, 63941, 63941,
|
||||
63941, 63941, 63998, 63998,
|
||||
63998, 63941, 63998, 63998,
|
||||
63941, 63616, 63996, 65024,
|
||||
63941, 63882, 63998, 63998,
|
||||
31999, 63941, 63941, 63941,
|
||||
readonly long[] clusters =
|
||||
{
|
||||
63882, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941, 63941,
|
||||
63941, 63941, 63941, 63941, 63882, 63992, 63864, 63252, 63941, 63941, 63941, 63941, 63998, 63998, 63998,
|
||||
63941, 63998, 63998, 63941, 63616, 63996, 65024, 63941, 63882, 63998, 63998, 31999, 63941, 63941, 63941,
|
||||
63941,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 2048,
|
||||
8192, 8192, 8192, 8192,
|
||||
16384, 8192, 8192, 8192,
|
||||
8192,
|
||||
readonly int[] clustersize =
|
||||
{
|
||||
8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192,
|
||||
8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 2048, 8192, 8192,
|
||||
8192, 8192, 16384, 8192, 8192, 8192, 8192,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",null,
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","NO NAME ",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VolumeLabel",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL",
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
null, "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "NO NAME ", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VolumeLabel", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,null,null,
|
||||
null,null,"1BFB0748",null,
|
||||
"217B1909","0C6D18FC","382B18F4","3E2018E9",
|
||||
"0D2418EF","195A181B","27761816","356B1809",
|
||||
null,null,"2272100F","07280FE1",
|
||||
"1F630FF9","18340FFE","3F3F1003","273D1009",
|
||||
"9C162C15","9C1E2C15",null,"5BE66015",
|
||||
"5BE43015","5BEAC015","E6B18414","E6C63414",
|
||||
"1C069414","1C059414","1BE5B814","3EF71EF4",
|
||||
"DAF97911","305637BD","275B0DE4","09650DFC",
|
||||
"38270D18","2E620D0C","0B4F0EED","0E122464",
|
||||
"3B5F0F02","C84CB6F2","D0E9AD4E","C039A2EC",
|
||||
"501F9FA6","9AAA4216","00000000","A132D985",
|
||||
"374D3BD1","52BEA34A","3CF10E0D","C6C30E0D",
|
||||
"44770E0D","27761816","27761816","27761816",
|
||||
"27761816",
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
null, null, null, null, null, null, "1BFB0748", null, "217B1909", "0C6D18FC", "382B18F4", "3E2018E9",
|
||||
"0D2418EF", "195A181B", "27761816", "356B1809", null, null, "2272100F", "07280FE1", "1F630FF9", "18340FFE",
|
||||
"3F3F1003", "273D1009", "9C162C15", "9C1E2C15", null, "5BE66015", "5BE43015", "5BEAC015", "E6B18414",
|
||||
"E6C63414", "1C069414", "1C059414", "1BE5B814", "3EF71EF4", "DAF97911", "305637BD", "275B0DE4", "09650DFC",
|
||||
"38270D18", "2E620D0C", "0B4F0EED", "0E122464", "3B5F0F02", "C84CB6F2", "D0E9AD4E", "C039A2EC", "501F9FA6",
|
||||
"9AAA4216", "00000000", "A132D985", "374D3BD1", "52BEA34A", "3CF10E0D", "C6C30E0D", "44770E0D", "27761816",
|
||||
"27761816", "27761816", "27761816",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"IBM 3.2", "IBM 3.2", "IBM 3.3", "IBM 3.3",
|
||||
"IBM 3.3", "DRDOS 7", "IBM 5.0", "IBM 3.3",
|
||||
"MSDOS4.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSWIN4.1",
|
||||
"IBM 3.3", "IBM 3.3", "IBM 7.0", "IBM 4.0",
|
||||
"IBM 5.0", "IBM 5.0", "IBM 6.0", "IBM 6.0",
|
||||
"IBM 10.2", "IBM 10.2", "IBM 3.2", "IBM 10.2",
|
||||
"IBM 10.2", "IBM 20.0", "IBM 20.0", "IBM 20.0",
|
||||
"IBM 20.0", "IBM 20.0", "IBM 4.50", "BSD 4.4",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSWIN4.1", "MSWIN4.1",
|
||||
"MSWIN4.1", "MSWIN4.0", "MSWIN4.1", "MSWIN4.1",
|
||||
"MSWIN4.1", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0",
|
||||
"MSDOS5.0", "MSDOS5.0", "BeOS ", "mkfs.fat",
|
||||
"CDP 5.0", "MSWIN4.1", "BSD 4.4", "BSD 4.4",
|
||||
"BSD4.4 ", "PCX 2.0 ", "PCX 2.0 ", "PCX 2.0 ",
|
||||
"PCX 2.0 ",
|
||||
readonly string[] oemid =
|
||||
{
|
||||
"IBM 3.2", "IBM 3.2", "IBM 3.3", "IBM 3.3", "IBM 3.3", "DRDOS 7", "IBM 5.0", "IBM 3.3", "MSDOS4.0",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSWIN4.1", "IBM 3.3", "IBM 3.3",
|
||||
"IBM 7.0", "IBM 4.0", "IBM 5.0", "IBM 5.0", "IBM 6.0", "IBM 6.0", "IBM 10.2", "IBM 10.2", "IBM 3.2",
|
||||
"IBM 10.2", "IBM 10.2", "IBM 20.0", "IBM 20.0", "IBM 20.0", "IBM 20.0", "IBM 20.0", "IBM 4.50", "BSD 4.4",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1", "MSWIN4.0", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "MSDOS5.0", "BeOS ", "mkfs.fat", "CDP 5.0", "MSWIN4.1",
|
||||
"BSD 4.4", "BSD 4.4", "BSD4.4 ", "PCX 2.0 ", "PCX 2.0 ", "PCX 2.0 ", "PCX 2.0 ",
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -217,4 +151,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT16_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amigaos_3.9.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"amigaos_3.9.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128
|
||||
};
|
||||
readonly ulong[] sectors = {1024128};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
63689
|
||||
};
|
||||
readonly long[] clusters = {63689};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
8192,
|
||||
};
|
||||
readonly int[] clustersize = {8192,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL"
|
||||
};
|
||||
readonly string[] volumename = {"VOLUMELABEL"};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"374D40D1",
|
||||
};
|
||||
readonly string[] volumeserial = {"374D40D1",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"CDP 5.0",
|
||||
};
|
||||
readonly string[] oemid = {"CDP 5.0",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT32_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
4194304,
|
||||
};
|
||||
readonly ulong[] sectors = {4194304,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
524278,
|
||||
};
|
||||
readonly long[] clusters = {524278,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL",
|
||||
};
|
||||
readonly string[] volumename = {"VOLUMELABEL",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"35BD1F0A",
|
||||
};
|
||||
readonly string[] volumeserial = {"35BD1F0A",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"BSD 4.4",
|
||||
};
|
||||
readonly string[] oemid = {"BSD 4.4",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT32_GPT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
4194304,
|
||||
};
|
||||
readonly ulong[] sectors = {4194304,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
523775,
|
||||
};
|
||||
readonly long[] clusters = {523775,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL",
|
||||
};
|
||||
readonly string[] volumename = {"VOLUMELABEL",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"7ABE1F1B",
|
||||
};
|
||||
readonly string[] volumeserial = {"7ABE1F1B",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"BSD 4.4",
|
||||
};
|
||||
readonly string[] oemid = {"BSD 4.4",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,68 +40,54 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class FAT32_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"drdos_7.03.vdi.lz", "drdos_8.00.vdi.lz", "msdos_7.10.vdi.lz", "macosx_10.11.vdi.lz",
|
||||
"win10.vdi.lz", "win2000.vdi.lz", "win95osr2.1.vdi.lz", "win95osr2.5.vdi.lz",
|
||||
"win95osr2.vdi.lz", "win98se.vdi.lz", "win98.vdi.lz", "winme.vdi.lz",
|
||||
"winvista.vdi.lz", "beos_r4.5.vdi.lz", "linux.vdi.lz","aros.vdi.lz",
|
||||
"freebsd_6.1.vdi.lz","freebsd_7.0.vdi.lz","freebsd_8.2.vdi.lz","freedos_1.2.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"drdos_7.03.vdi.lz", "drdos_8.00.vdi.lz", "msdos_7.10.vdi.lz", "macosx_10.11.vdi.lz", "win10.vdi.lz",
|
||||
"win2000.vdi.lz", "win95osr2.1.vdi.lz", "win95osr2.5.vdi.lz", "win95osr2.vdi.lz", "win98se.vdi.lz",
|
||||
"win98.vdi.lz", "winme.vdi.lz", "winvista.vdi.lz", "beos_r4.5.vdi.lz", "linux.vdi.lz", "aros.vdi.lz",
|
||||
"freebsd_6.1.vdi.lz", "freebsd_7.0.vdi.lz", "freebsd_8.2.vdi.lz", "freedos_1.2.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
8388608, 8388608, 8388608, 4194304,
|
||||
4194304, 8388608, 4194304, 4194304,
|
||||
4194304, 4194304, 4194304, 4194304,
|
||||
4194304, 4194304, 262144, 4194304,
|
||||
4194304, 4194304, 4194304, 8388608,
|
||||
readonly ulong[] sectors =
|
||||
{
|
||||
8388608, 8388608, 8388608, 4194304, 4194304, 8388608, 4194304, 4194304, 4194304, 4194304, 4194304, 4194304,
|
||||
4194304, 4194304, 262144, 4194304, 4194304, 4194304, 4194304, 8388608,
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
readonly uint[] sectorsize =
|
||||
{512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters =
|
||||
{
|
||||
1048233, 1048233, 1048233, 524287, 524016, 1048233, 524152, 524152, 524152, 524112, 524112, 524112, 523520,
|
||||
1048560, 260096, 524160, 524112, 524112, 65514, 1048233,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1048233, 1048233, 1048233, 524287,
|
||||
524016, 1048233, 524152, 524152,
|
||||
524152, 524112, 524112, 524112,
|
||||
523520, 1048560, 260096, 524160,
|
||||
524112, 524112, 65514, 1048233,
|
||||
readonly int[] clustersize =
|
||||
{
|
||||
4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 2048, 512, 4096, 4096, 4096,
|
||||
32768, 4096,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 2048, 512, 4096,
|
||||
4096, 4096, 32768, 4096,
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VolumeLabel", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VolumeLabel","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
"5955996C", "1BFB1A43", "3B331809", "42D51EF1", "48073346", "EC62E6DE", "2A310DE4", "0C140DFC", "3E310D18",
|
||||
"0D3D0EED", "0E131162", "3F500F02", "82EB4C04", "00000000", "B488C502", "5CAC9B4E", "41540E0E", "4E600E0F",
|
||||
"26E20E0F", "3E0C1BE8",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"5955996C","1BFB1A43","3B331809","42D51EF1",
|
||||
"48073346","EC62E6DE","2A310DE4","0C140DFC",
|
||||
"3E310D18","0D3D0EED","0E131162","3F500F02",
|
||||
"82EB4C04","00000000","B488C502","5CAC9B4E",
|
||||
"41540E0E","4E600E0F","26E20E0F","3E0C1BE8",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"DRDOS7.X", "IBM 7.1", "MSWIN4.1", "BSD 4.4",
|
||||
"MSDOS5.0", "MSDOS5.0", "MSWIN4.1", "MSWIN4.1",
|
||||
"MSWIN4.1", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1",
|
||||
"MSDOS5.0", "BeOS ", "mkfs.fat", "MSWIN4.1",
|
||||
"BSD 4.4", "BSD 4.4", "BSD4.4 ", "FRDOS4.1",
|
||||
readonly string[] oemid =
|
||||
{
|
||||
"DRDOS7.X", "IBM 7.1", "MSWIN4.1", "BSD 4.4", "MSDOS5.0", "MSDOS5.0", "MSWIN4.1", "MSWIN4.1", "MSWIN4.1",
|
||||
"MSWIN4.1", "MSWIN4.1", "MSWIN4.1", "MSDOS5.0", "BeOS ", "mkfs.fat", "MSWIN4.1", "BSD 4.4", "BSD 4.4",
|
||||
"BSD4.4 ", "FRDOS4.1",
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -129,4 +115,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,20 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HAMMER_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"dflybsd_3.6.1.vdi.lz","dflybsd_4.0.5.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"dflybsd_3.6.1.vdi.lz", "dflybsd_4.0.5.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
104857600, 104857600,
|
||||
};
|
||||
readonly ulong[] sectors = {104857600, 104857600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
6310, 6310,
|
||||
};
|
||||
readonly long[] clusters = {6310, 6310,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
8388608, 8388608,
|
||||
};
|
||||
readonly int[] clustersize = {8388608, 8388608,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label", "Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"f8e1a8bb-626d-11e7-94b5-0900274691e4","ff4dc664-6276-11e7-983f-090027c41b46",
|
||||
};
|
||||
readonly string[] volumeserial =
|
||||
{"f8e1a8bb-626d-11e7-94b5-0900274691e4", "ff4dc664-6276-11e7-983f-090027c41b46",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +90,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,45 +38,33 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macos_1.1_mf2dd.img.lz","macos_2.0_mf2dd.img.lz","macos_6.0.7_mf2dd.img.lz","nextstep_3.3_mf2hd.img.lz",
|
||||
"openstep_4.0_mf2hd.img.lz","openstep_4.2_mf2hd.img.lz","rhapsody_dr1_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"macos_1.1_mf2dd.img.lz", "macos_2.0_mf2dd.img.lz", "macos_6.0.7_mf2dd.img.lz", "nextstep_3.3_mf2hd.img.lz",
|
||||
"openstep_4.0_mf2hd.img.lz", "openstep_4.2_mf2hd.img.lz", "rhapsody_dr1_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
MediaType.AppleSonyDS, MediaType.AppleSonyDS, MediaType.AppleSonyDS, MediaType.DOS_35_HD,
|
||||
MediaType.DOS_35_HD, MediaType.DOS_35_HD, MediaType.DOS_35_HD,
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1600, 1600, 1600, 2880,
|
||||
2880, 2880, 2880,
|
||||
readonly ulong[] sectors = {1600, 1600, 1600, 2880, 2880, 2880, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {1594, 1594, 1594, 2874, 2874, 2874, 2874,};
|
||||
|
||||
readonly int[] clustersize = {512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"Volume label", "Volume label", "Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label",
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1594, 1594, 1594, 2874,
|
||||
2874, 2874, 2874,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Volume label","Volume label",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null, null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -108,4 +96,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,76 +41,53 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
public class HFSPlus_APM
|
||||
{
|
||||
// Missing Darwin 1.4.1
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz","darwin_1.3.1.vdi.lz","darwin_1.3.1_wrapped.vdi.lz",
|
||||
"darwin_1.4.1_wrapped.vdi.lz","darwin_6.0.2.vdi.lz","darwin_6.0.2_wrapped.vdi.lz",
|
||||
"darwin_8.0.1_journal.vdi.lz","darwin_8.0.1.vdi.lz","darwin_8.0.1_wrapped.vdi.lz","macos_8.1.vdi.lz",
|
||||
"macos_9.0.4.vdi.lz","macos_9.1.vdi.lz","macos_9.2.1.vdi.lz","macos_9.2.2.vdi.lz",
|
||||
"macosx_10.2.vdi.lz","macosx_10.3_journal.vdi.lz","macosx_10.3.vdi.lz","macosx_10.4_journal.vdi.lz",
|
||||
"macosx_10.4.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz", "darwin_1.3.1.vdi.lz", "darwin_1.3.1_wrapped.vdi.lz",
|
||||
"darwin_1.4.1_wrapped.vdi.lz", "darwin_6.0.2.vdi.lz", "darwin_6.0.2_wrapped.vdi.lz",
|
||||
"darwin_8.0.1_journal.vdi.lz", "darwin_8.0.1.vdi.lz", "darwin_8.0.1_wrapped.vdi.lz", "macos_8.1.vdi.lz",
|
||||
"macos_9.0.4.vdi.lz", "macos_9.1.vdi.lz", "macos_9.2.1.vdi.lz", "macos_9.2.2.vdi.lz", "macosx_10.2.vdi.lz",
|
||||
"macosx_10.3_journal.vdi.lz", "macosx_10.3.vdi.lz", "macosx_10.4_journal.vdi.lz", "macosx_10.4.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600, 614400, 819200, 614400,
|
||||
614400, 819200, 614400,
|
||||
1228800, 819200, 614400, 4194304,
|
||||
4194304, 4194304,4194304,4194304,
|
||||
4194304, 2097152, 4194304, 2097152,
|
||||
4194304
|
||||
readonly ulong[] sectors =
|
||||
{
|
||||
409600, 614400, 819200, 614400, 614400, 819200, 614400, 1228800, 819200, 614400, 4194304, 4194304, 4194304,
|
||||
4194304, 4194304, 4194304, 2097152, 4194304, 2097152, 4194304
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
readonly uint[] sectorsize =
|
||||
{512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters =
|
||||
{
|
||||
51190, 76790, 102392, 76774, 76774, 102392, 76774, 153592, 102392, 76774, 524152, 524088, 524088, 524088,
|
||||
524088, 524008, 261884, 491240, 261884, 491240,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
51190, 76790, 102392, 76774,
|
||||
76774, 102392, 76774,
|
||||
153592, 102392, 76774, 524152,
|
||||
524088, 524088, 524088, 524088,
|
||||
524008, 261884, 491240, 261884,
|
||||
491240,
|
||||
readonly int[] clustersize =
|
||||
{
|
||||
4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
|
||||
4096, 4096,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096,
|
||||
readonly string[] volumename =
|
||||
{
|
||||
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
|
||||
null, null,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null, null,
|
||||
null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null,
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
"FA94762D086A18A9", "33D4A309C8E7BD10", null, null, null, null, null, "4D5140EB8F14A385",
|
||||
"0D592249833E2DC4", "AA616146576BD9BC", null, null, null, null, null, "EFA132FFFAC1ADA6",
|
||||
"009D570FFCF8F20B", "17F6F33AB313EE32", "AD5690C093F66FCF", "A7D63854DF76DDE6",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"FA94762D086A18A9","33D4A309C8E7BD10",null,null,
|
||||
null,null,null,
|
||||
"4D5140EB8F14A385","0D592249833E2DC4","AA616146576BD9BC",null,
|
||||
null,null,null,null,
|
||||
"EFA132FFFAC1ADA6","009D570FFCF8F20B","17F6F33AB313EE32","AD5690C093F66FCF",
|
||||
"A7D63854DF76DDE6",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"10.0","HFSJ","10.0","10.0",
|
||||
"10.0","10.0","10.0",
|
||||
"10.0","10.0","10.0","8.10",
|
||||
"8.10","8.10","8.10","8.10",
|
||||
"10.0","HFSJ","10.0","HFSJ",
|
||||
"10.0",
|
||||
readonly string[] oemid =
|
||||
{
|
||||
"10.0", "HFSJ", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "8.10", "8.10", "8.10",
|
||||
"8.10", "8.10", "10.0", "HFSJ", "10.0", "HFSJ", "10.0",
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -136,6 +113,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -148,4 +126,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFSPlus_GPT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600, 614400,
|
||||
};
|
||||
readonly ulong[] sectors = {409600, 614400,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512};
|
||||
|
||||
readonly long[] clusters = {
|
||||
51190, 76790,
|
||||
};
|
||||
readonly long[] clusters = {51190, 76790,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096, 4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"D8C68470046E67BE","FD3CB598F3C6294A",
|
||||
};
|
||||
readonly string[] volumeserial = {"D8C68470046E67BE", "FD3CB598F3C6294A",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"10.0","HFSJ"
|
||||
};
|
||||
readonly string[] oemid = {"10.0", "HFSJ"};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,61 +41,33 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFSPlus_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz", "linux.vdi.lz", "linux_journal.vdi.lz",
|
||||
"darwin_1.3.1.vdi.lz","darwin_1.3.1_wrapped.vdi.lz","darwin_1.4.1.vdi.lz","darwin_1.4.1_wrapped.vdi.lz",
|
||||
"darwin_6.0.2.vdi.lz","darwin_8.0.1_journal.vdi.lz","darwin_8.0.1.vdi.lz",
|
||||
"darwin_8.0.1_wrapped.vdi.lz",
|
||||
"darwin_1.3.1.vdi.lz", "darwin_1.3.1_wrapped.vdi.lz", "darwin_1.4.1.vdi.lz", "darwin_1.4.1_wrapped.vdi.lz",
|
||||
"darwin_6.0.2.vdi.lz", "darwin_8.0.1_journal.vdi.lz", "darwin_8.0.1.vdi.lz", "darwin_8.0.1_wrapped.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
303104, 352256, 262144, 262144,
|
||||
819200, 614400, 819200, 614400,
|
||||
819200, 1228800, 819200,
|
||||
614400,
|
||||
readonly ulong[] sectors =
|
||||
{303104, 352256, 262144, 262144, 819200, 614400, 819200, 614400, 819200, 1228800, 819200, 614400,};
|
||||
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters =
|
||||
{37878, 44021, 32512, 32512, 102178, 76708, 102178, 76708, 102178, 153592, 102392, 76774,};
|
||||
|
||||
readonly int[] clustersize = {4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,};
|
||||
|
||||
readonly string[] volumename = {null, null, null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
"C84F550907D13F50", "016599F88029F73D", null, null, null, null, null, null, null, "F92964F9B3F64ABB",
|
||||
"A8FAC484A0A2B177", "D5D5BF1346AD2B8D",
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512,
|
||||
512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
37878, 44021, 32512, 32512,
|
||||
102178, 76708, 102178, 76708,
|
||||
102178, 153592, 102392,
|
||||
76774,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096, 4096,
|
||||
4096,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null,
|
||||
null,
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"C84F550907D13F50","016599F88029F73D",null,null,
|
||||
null,null,null,null,
|
||||
null,"F92964F9B3F64ABB","A8FAC484A0A2B177",
|
||||
"D5D5BF1346AD2B8D",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"10.0","HFSJ","10.0","10.0",
|
||||
"10.0","10.0","10.0","10.0",
|
||||
"10.0","10.0","10.0",
|
||||
"10.0",
|
||||
};
|
||||
readonly string[] oemid =
|
||||
{"10.0", "HFSJ", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -120,6 +92,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -132,4 +105,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,45 +40,29 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFSX_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz","darwin_8.0.1_journal.vdi.lz","darwin_8.0.1.vdi.lz",
|
||||
"macosx_10.4_journal.vdi.lz","macosx_10.4.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz", "darwin_8.0.1_journal.vdi.lz", "darwin_8.0.1.vdi.lz",
|
||||
"macosx_10.4_journal.vdi.lz", "macosx_10.4.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
819200, 1228800, 1638400, 1433600,
|
||||
4194304, 1024000,
|
||||
readonly ulong[] sectors = {819200, 1228800, 1638400, 1433600, 4194304, 1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {102390, 153590, 204792, 179192, 491290, 127770,};
|
||||
|
||||
readonly int[] clustersize = {4096, 4096, 4096, 4096, 4096, 4096,};
|
||||
|
||||
readonly string[] volumename = {null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
"CC2D56884950D9AE", "7AF1175D8EA7A072", "BB4ABD7E7E2FF5AF", "E2F212D815EF77B5", "5A8C646A5D77EB16",
|
||||
"258C51A750F6A485",
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
102390, 153590, 204792, 179192,
|
||||
491290, 127770,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096,4096, 4096,
|
||||
4096, 4096,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null, null,
|
||||
null, null,
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"CC2D56884950D9AE","7AF1175D8EA7A072","BB4ABD7E7E2FF5AF","E2F212D815EF77B5",
|
||||
"5A8C646A5D77EB16","258C51A750F6A485",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"10.0","HFSJ","10.0","10.0",
|
||||
"HFSJ","10.0",
|
||||
};
|
||||
readonly string[] oemid = {"10.0", "HFSJ", "10.0", "10.0", "HFSJ", "10.0",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -103,6 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -115,4 +100,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFSX_GPT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
819200, 1228800,
|
||||
};
|
||||
readonly ulong[] sectors = {819200, 1228800,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512};
|
||||
|
||||
readonly long[] clusters = {
|
||||
102390, 153590,
|
||||
};
|
||||
readonly long[] clusters = {102390, 153590,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096, 4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"328343989312AE9F","FB98504073464C5C",
|
||||
};
|
||||
readonly string[] volumeserial = {"328343989312AE9F", "FB98504073464C5C",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"10.0","HFSJ"
|
||||
};
|
||||
readonly string[] oemid = {"10.0", "HFSJ"};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,45 +40,26 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFSX_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz", "linux.vdi.lz", "linux_journal.vdi.lz",
|
||||
"darwin_8.0.1_journal.vdi.lz","darwin_8.0.1.vdi.lz",
|
||||
"darwin_8.0.1_journal.vdi.lz", "darwin_8.0.1.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
393216, 409600, 262144, 262144,
|
||||
1638400, 1433600,
|
||||
};
|
||||
readonly ulong[] sectors = {393216, 409600, 262144, 262144, 1638400, 1433600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
49140, 51187, 32512, 32512,
|
||||
204792, 179192,
|
||||
};
|
||||
readonly long[] clusters = {49140, 51187, 32512, 32512, 204792, 179192,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096, 4096, 4096,
|
||||
4096, 4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096, 4096, 4096, 4096, 4096, 4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null, null,
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"C2BCCCE6DE5BC98D","AC54CD78C75CC30F",null,null,
|
||||
"7559DD01BCFADD9A","AEA39CFBBF14C0FF",
|
||||
};
|
||||
readonly string[] volumeserial =
|
||||
{"C2BCCCE6DE5BC98D", "AC54CD78C75CC30F", null, null, "7559DD01BCFADD9A", "AEA39CFBBF14C0FF",};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"10.0","HFSJ","10.0","10.0",
|
||||
"10.0","10.0",
|
||||
};
|
||||
readonly string[] oemid = {"10.0", "HFSJ", "10.0", "10.0", "10.0", "10.0",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -103,6 +84,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -115,4 +97,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,95 +40,59 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFS_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amigaos_3.9.vdi.lz","darwin_1.3.1.vdi.lz","darwin_1.4.1.vdi.lz","darwin_6.0.2.vdi.lz",
|
||||
"darwin_8.0.1.vdi.lz","macos_1.1.vdi.lz","macos_2.0.vdi.lz","macos_6.0.7.vdi.lz",
|
||||
"macos_7.5.3.vdi.lz","macos_7.5.vdi.lz","macos_7.6.vdi.lz","macos_8.0.vdi.lz",
|
||||
"macos_8.1.vdi.lz","macos_9.0.4.vdi.lz","macos_9.1.vdi.lz","macos_9.2.1.vdi.lz",
|
||||
"macos_9.2.2.vdi.lz","macosx_10.2.vdi.lz","macosx_10.3.vdi.lz","macosx_10.4.vdi.lz",
|
||||
"rhapsody_dr1.vdi.lz","d2_driver.vdi.lz","hdt_1.8.vdi.lz","macos_4.2.vdi.lz",
|
||||
"macos_4.3.vdi.lz","macos_6.0.2.vdi.lz","macos_6.0.3.vdi.lz","macos_6.0.4.vdi.lz",
|
||||
"macos_6.0.5.vdi.lz","macos_6.0.8.vdi.lz","macos_6.0.vdi.lz","macos_7.0.vdi.lz",
|
||||
"macos_7.1.1.vdi.lz","parted.vdi.lz","silverlining_2.2.1.vdi.lz","speedtools_3.6.vdi.lz",
|
||||
"vcpformatter_2.1.1.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"amigaos_3.9.vdi.lz", "darwin_1.3.1.vdi.lz", "darwin_1.4.1.vdi.lz", "darwin_6.0.2.vdi.lz",
|
||||
"darwin_8.0.1.vdi.lz", "macos_1.1.vdi.lz", "macos_2.0.vdi.lz", "macos_6.0.7.vdi.lz", "macos_7.5.3.vdi.lz",
|
||||
"macos_7.5.vdi.lz", "macos_7.6.vdi.lz", "macos_8.0.vdi.lz", "macos_8.1.vdi.lz", "macos_9.0.4.vdi.lz",
|
||||
"macos_9.1.vdi.lz", "macos_9.2.1.vdi.lz", "macos_9.2.2.vdi.lz", "macosx_10.2.vdi.lz", "macosx_10.3.vdi.lz",
|
||||
"macosx_10.4.vdi.lz", "rhapsody_dr1.vdi.lz", "d2_driver.vdi.lz", "hdt_1.8.vdi.lz", "macos_4.2.vdi.lz",
|
||||
"macos_4.3.vdi.lz", "macos_6.0.2.vdi.lz", "macos_6.0.3.vdi.lz", "macos_6.0.4.vdi.lz", "macos_6.0.5.vdi.lz",
|
||||
"macos_6.0.8.vdi.lz", "macos_6.0.vdi.lz", "macos_7.0.vdi.lz", "macos_7.1.1.vdi.lz", "parted.vdi.lz",
|
||||
"silverlining_2.2.1.vdi.lz", "speedtools_3.6.vdi.lz", "vcpformatter_2.1.1.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,409600,409600,409600,
|
||||
409600,41820,41820,81648,
|
||||
1024000,1024000,1024000,1024000,
|
||||
1024000,1024000,1024000,1024000,
|
||||
1024000,1024000,1024000,1024000,
|
||||
409600,51200,51200,41820,
|
||||
41820,54840,54840,54840,
|
||||
54840,54840,41820,54840,
|
||||
54840,262144,51200,51200,
|
||||
54840,
|
||||
readonly ulong[] sectors =
|
||||
{
|
||||
1024128, 409600, 409600, 409600, 409600, 41820, 41820, 81648, 1024000, 1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 409600, 51200, 51200, 41820, 41820, 54840,
|
||||
54840, 54840, 54840, 54840, 41820, 54840, 54840, 262144, 51200, 51200, 54840,
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,
|
||||
readonly uint[] sectorsize =
|
||||
{
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
64003,51189,51189,58502,
|
||||
58502,41788,38950,39991,
|
||||
63954,63990,63954,63954,
|
||||
63954,63922,63922,63922,
|
||||
63922,63884,63883,63883,
|
||||
58506,50926,50094,38950,
|
||||
38950,38950,38950,7673,
|
||||
38950,38950,38950,38950,
|
||||
38950,46071,50382,49135,
|
||||
54643,
|
||||
readonly long[] clusters =
|
||||
{
|
||||
64003, 51189, 51189, 58502, 58502, 41788, 38950, 39991, 63954, 63990, 63954, 63954, 63954, 63922, 63922,
|
||||
63922, 63922, 63884, 63883, 63883, 58506, 50926, 50094, 38950, 38950, 38950, 38950, 7673, 38950, 38950,
|
||||
38950, 38950, 38950, 46071, 50382, 49135, 54643,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
8192,4096,4096,3584,
|
||||
3584,512,512,1024,
|
||||
8192,8192,8192,8192,
|
||||
8192,8192,8192,8192,
|
||||
8192,8192,8192,8192,
|
||||
3584,512,512,512,
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
512,1024,512,512,
|
||||
512,
|
||||
readonly int[] clustersize =
|
||||
{
|
||||
8192, 4096, 4096, 3584, 3584, 512, 512, 1024, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192,
|
||||
8192, 8192, 3584, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 1024, 512, 512, 512,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Volume label","Volume label","Test disk",
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label","Untitled","Untitled #1","24 MB Disk",
|
||||
"Volume label",
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"Volume label", "Volume label", "Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label", "Volume label", "Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label", "Volume label", "Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label", "Volume label", "Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label", "Volume label", "Volume label", "Test disk", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label", "Volume label", "Untitled", "Untitled #1", "24 MB Disk", "Volume label",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,null,null,
|
||||
"AAFE1382AF5AA898",null,null,null,
|
||||
null,null,null,null,
|
||||
null,null,null,null,
|
||||
null,"5A7C38B0CAF279C4","FB49083EBD150509","632C0B1DB46FD188",
|
||||
null,null,null,null,
|
||||
null,null,null,null,
|
||||
null,null,null,null,
|
||||
null,null,null,null,
|
||||
null,
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
null, null, null, null, "AAFE1382AF5AA898", null, null, null, null, null, null, null, null, null, null,
|
||||
null, null, "5A7C38B0CAF279C4", "FB49083EBD150509", "632C0B1DB46FD188", null, null, null, null, null, null,
|
||||
null, null, null, null, null, null, null, null, null, null, null,
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -154,6 +118,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -165,4 +130,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,45 +39,25 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFS_CDROM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"toast_3.5.7_hfs_from_volume.iso.lz","toast_3.5.7_iso9660_hfs.iso.lz",
|
||||
"toast_4.1.3_hfs_from_volume.iso.lz","toast_4.1.3_iso9660_hfs.iso.lz",
|
||||
"toast_3.5.7_hfs_from_files.iso.lz","toast_4.1.3_hfs_from_files.iso.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"toast_3.5.7_hfs_from_volume.iso.lz", "toast_3.5.7_iso9660_hfs.iso.lz",
|
||||
"toast_4.1.3_hfs_from_volume.iso.lz", "toast_4.1.3_iso9660_hfs.iso.lz", "toast_3.5.7_hfs_from_files.iso.lz",
|
||||
"toast_4.1.3_hfs_from_files.iso.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
942,1880,
|
||||
943,1882,
|
||||
1509,1529,
|
||||
};
|
||||
readonly ulong[] sectors = {942, 1880, 943, 1882, 1509, 1529,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
2048,2048,
|
||||
2048,2048,
|
||||
2048,2048,
|
||||
};
|
||||
readonly uint[] sectorsize = {2048, 2048, 2048, 2048, 2048, 2048,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
3724,931,
|
||||
931,931,
|
||||
249,249,
|
||||
};
|
||||
readonly long[] clusters = {3724, 931, 931, 931, 249, 249,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,2048,
|
||||
2048,2048,
|
||||
12288,12288,
|
||||
};
|
||||
readonly int[] clustersize = {512, 2048, 2048, 2048, 12288, 12288,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Disk utils","Disk utils","Disk utils",
|
||||
"Disk utils","Disk utils","Disk utils",
|
||||
};
|
||||
readonly string[] volumename =
|
||||
{"Disk utils", "Disk utils", "Disk utils", "Disk utils", "Disk utils", "Disk utils",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,null,
|
||||
null,null,null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -102,6 +82,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -113,4 +94,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,40 +40,23 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz",
|
||||
"darwin_1.3.1.vdi.lz","darwin_1.4.1.vdi.lz","darwin_6.0.2.vdi.lz","darwin_8.0.1.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"linux.vdi.lz", "darwin_1.3.1.vdi.lz", "darwin_1.4.1.vdi.lz", "darwin_6.0.2.vdi.lz", "darwin_8.0.1.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,
|
||||
409600,409600,409600,409600,
|
||||
};
|
||||
readonly ulong[] sectors = {262144, 409600, 409600, 409600, 409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
512,512,512,512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
65018,
|
||||
51145,51145,58452,58502,
|
||||
};
|
||||
readonly long[] clusters = {65018, 51145, 51145, 58452, 58502,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
2048,
|
||||
4096,4096,3584,3584,
|
||||
};
|
||||
readonly int[] clustersize = {2048, 4096, 4096, 3584, 3584,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
};
|
||||
readonly string[] volumename =
|
||||
{"Volume label", "Volume label", "Volume label", "Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
null,null,null,"81FE805D61458753",
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, "81FE805D61458753",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -98,6 +81,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -109,4 +93,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HFS_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amigaos_3.9.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"amigaos_3.9.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128
|
||||
};
|
||||
readonly ulong[] sectors = {1024128};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
63752,
|
||||
};
|
||||
readonly long[] clusters = {63752,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
8192,
|
||||
};
|
||||
readonly int[] clustersize = {8192,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,52 +40,39 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HPFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"ecs.vdi.lz", "msos2_1.21.vdi.lz", "msos2_1.30.1.vdi.lz", "os2_1.20.vdi.lz",
|
||||
"os2_1.30.vdi.lz", "os2_6.307.vdi.lz", "os2_6.514.vdi.lz", "os2_6.617.vdi.lz",
|
||||
"os2_8.162.vdi.lz", "os2_9.023.vdi.lz", "winnt_3.10.vdi.lz", "winnt_3.50.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"ecs.vdi.lz", "msos2_1.21.vdi.lz", "msos2_1.30.1.vdi.lz", "os2_1.20.vdi.lz", "os2_1.30.vdi.lz",
|
||||
"os2_6.307.vdi.lz", "os2_6.514.vdi.lz", "os2_6.617.vdi.lz", "os2_8.162.vdi.lz", "os2_9.023.vdi.lz",
|
||||
"winnt_3.10.vdi.lz", "winnt_3.50.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 262144, 262144,
|
||||
262144, 262144, 262144, 262144
|
||||
readonly ulong[] sectors =
|
||||
{262144, 1024000, 1024000, 1024000, 1024000, 1024000, 262144, 262144, 262144, 262144, 262144, 262144};
|
||||
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512};
|
||||
|
||||
readonly long[] clusters =
|
||||
{261072, 1023056, 1023056, 1023056, 1023056, 1023056, 262016, 262016, 262016, 262016, 262016, 262112,};
|
||||
|
||||
readonly int[] clustersize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
"VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL", "VOLUMELABEL",
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
"2BBBD814", "AC0DDC15", "ABEB2C15", "6C4EE015", "6C406015", "6C49B015", "2BCEB414", "2C157414", "2BF55414",
|
||||
"2BE31414", "E851CB14", "A4EDC29C",
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
261072, 1023056, 1023056, 1023056,
|
||||
1023056, 1023056, 262016, 262016,
|
||||
262016, 262016, 262016, 262112,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
"VOLUMELABEL","VOLUMELABEL","VOLUMELABEL","VOLUMELABEL",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"2BBBD814","AC0DDC15","ABEB2C15","6C4EE015",
|
||||
"6C406015","6C49B015","2BCEB414","2C157414",
|
||||
"2BF55414","2BE31414","E851CB14","A4EDC29C",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"IBM 4.50", "OS2 10.1", "OS2 10.0", "OS2 10.0",
|
||||
"OS2 10.0", "OS2 20.0", "OS2 20.0", "OS2 20.1",
|
||||
"OS2 20.0", "OS2 20.0", "MSDOS5.0", "MSDOS5.0",
|
||||
readonly string[] oemid =
|
||||
{
|
||||
"IBM 4.50", "OS2 10.1", "OS2 10.0", "OS2 10.0", "OS2 10.0", "OS2 20.0", "OS2 20.0", "OS2 20.1", "OS2 20.0",
|
||||
"OS2 20.0", "MSDOS5.0", "MSDOS5.0",
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -113,4 +100,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,50 +38,29 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HTFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz", "scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED,
|
||||
MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
3360, 2400, 1440, 5760,
|
||||
2880,
|
||||
};
|
||||
readonly ulong[] sectors = {3360, 2400, 1440, 5760, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1680, 1200, 720, 2880,
|
||||
1440,
|
||||
};
|
||||
readonly long[] clusters = {1680, 1200, 720, 2880, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"", "", "", "",
|
||||
"",
|
||||
};
|
||||
readonly string[] volumename = {"", "", "", "", "",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"HTFS", "HTFS", "HTFS", "HTFS",
|
||||
"HTFS",
|
||||
};
|
||||
readonly string[] type = {"HTFS", "HTFS", "HTFS", "HTFS", "HTFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -113,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class HTFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
2097152,
|
||||
};
|
||||
readonly ulong[] sectors = {2097152,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1020096,
|
||||
};
|
||||
readonly long[] clusters = {1020096,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"HTFS",
|
||||
};
|
||||
readonly string[] type = {"HTFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,85 +38,78 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class ISO9660
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
// Toast 3.5.7
|
||||
"toast_3.5.7_iso9660_apple.iso.lz", "toast_3.5.7_iso9660_dos_apple.iso.lz", "toast_3.5.7_iso9660_dos.iso.lz", "toast_3.5.7_iso9660_hfs.iso.lz",
|
||||
"toast_3.5.7_iso9660.iso.lz", "toast_3.5.7_iso9660_joliet_apple.iso.lz", "toast_3.5.7_iso9660_joliet.iso.lz", "toast_3.5.7_iso9660_mac_apple.iso.lz",
|
||||
"toast_3.5.7_iso9660_mac.iso.lz", "toast_3.5.7_iso9660_ver_apple.iso.lz", "toast_3.5.7_iso9660_ver_dos_apple.iso.lz", "toast_3.5.7_iso9660_ver_dos.iso.lz",
|
||||
"toast_3.5.7_iso9660_ver.iso.lz", "toast_3.5.7_iso9660_ver_joliet_apple.iso.lz", "toast_3.5.7_iso9660_ver_joliet.iso.lz", "toast_3.5.7_iso9660.iso.lz",
|
||||
"toast_3.5.7_iso9660_apple.iso.lz", "toast_3.5.7_iso9660_dos_apple.iso.lz",
|
||||
"toast_3.5.7_iso9660_dos.iso.lz", "toast_3.5.7_iso9660_hfs.iso.lz", "toast_3.5.7_iso9660.iso.lz",
|
||||
"toast_3.5.7_iso9660_joliet_apple.iso.lz", "toast_3.5.7_iso9660_joliet.iso.lz",
|
||||
"toast_3.5.7_iso9660_mac_apple.iso.lz", "toast_3.5.7_iso9660_mac.iso.lz",
|
||||
"toast_3.5.7_iso9660_ver_apple.iso.lz", "toast_3.5.7_iso9660_ver_dos_apple.iso.lz",
|
||||
"toast_3.5.7_iso9660_ver_dos.iso.lz", "toast_3.5.7_iso9660_ver.iso.lz",
|
||||
"toast_3.5.7_iso9660_ver_joliet_apple.iso.lz", "toast_3.5.7_iso9660_ver_joliet.iso.lz",
|
||||
"toast_3.5.7_iso9660.iso.lz",
|
||||
// Toast 4.1.3
|
||||
"toast_4.1.3_iso9660_hfs.iso.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD,
|
||||
MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD,
|
||||
MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD,
|
||||
MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD,
|
||||
MediaType.CD,
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD,
|
||||
MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD, MediaType.CD,
|
||||
MediaType.CD, MediaType.CD, MediaType.CD,
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
946, 946, 300, 1880,
|
||||
300, 951, 300, 946,
|
||||
300, 946, 946, 300,
|
||||
300, 951, 300, 300,
|
||||
1882,
|
||||
readonly ulong[] sectors =
|
||||
{946, 946, 300, 1880, 300, 951, 300, 946, 300, 946, 946, 300, 300, 951, 300, 300, 1882,};
|
||||
|
||||
readonly uint[] sectorsize =
|
||||
{2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,};
|
||||
|
||||
readonly long[] clusters =
|
||||
{946, 946, 300, 1880, 300, 951, 300, 946, 300, 946, 946, 300, 300, 951, 300, 300, 1882,};
|
||||
|
||||
readonly int[] clustersize =
|
||||
{2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,};
|
||||
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"DISK_UTILS", "DISK_UTILS", "DISK_UTILS", "DISK_UTILS", "DISK_UTILS", "Disk utils", "Disk utils",
|
||||
"Disk utils", "Disk utils", "DISK_UTILS", "DISK_UTILS", "DISK_UTILS", "DISK_UTILS", "Disk utils",
|
||||
"Disk utils", "DISK_UTILS", "DISK_UTILS",
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
2048, 2048, 2048, 2048,
|
||||
2048, 2048, 2048, 2048,
|
||||
2048, 2048, 2048, 2048,
|
||||
2048, 2048, 2048, 2048,
|
||||
2048,
|
||||
readonly string[] volumeserial =
|
||||
{null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] sysid =
|
||||
{
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
946, 946, 300, 1880,
|
||||
300, 951, 300, 946,
|
||||
300, 946, 946, 300,
|
||||
300, 951, 300, 300,
|
||||
1882,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
2048, 2048, 2048, 2048,
|
||||
2048, 2048, 2048, 2048,
|
||||
2048, 2048, 2048, 2048,
|
||||
2048, 2048, 2048, 2048,
|
||||
2048,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"DISK_UTILS", "DISK_UTILS", "DISK_UTILS", "DISK_UTILS",
|
||||
"DISK_UTILS", "Disk utils", "Disk utils", "Disk utils",
|
||||
"Disk utils", "DISK_UTILS", "DISK_UTILS", "DISK_UTILS",
|
||||
"DISK_UTILS", "Disk utils", "Disk utils", "DISK_UTILS",
|
||||
"DISK_UTILS",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
|
||||
readonly string[] sysid = {
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002", "APPLE COMPUTER, INC., TYPE: 0002",
|
||||
"APPLE COMPUTER, INC., TYPE: 0002",
|
||||
};
|
||||
|
||||
readonly string[] appid = {
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY","TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
readonly string[] appid =
|
||||
{
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
"TOAST ISO 9660 BUILDER COPYRIGHT (C) 1997 ADAPTEC, INC. - HAVE A NICE DAY",
|
||||
};
|
||||
|
||||
@@ -152,4 +145,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,20 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class JFS2
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz","linux_caseinsensitive.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz", "linux_caseinsensitive.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144, 262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144, 262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
257632, 257632,
|
||||
};
|
||||
readonly long[] clusters = {257632, 257632,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096, 4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume labe", "Volume labe",
|
||||
};
|
||||
readonly string[] volumename = {"Volume labe", "Volume labe",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"8033b783-0cd1-1645-8ecc-f8f113ad6a47", "d6cd91e9-3899-7e40-8468-baab688ee2e2",
|
||||
};
|
||||
readonly string[] volumeserial =
|
||||
{"8033b783-0cd1-1645-8ecc-f8f113ad6a47", "d6cd91e9-3899-7e40-8468-baab688ee2e2",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +90,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,33 +34,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class LFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"netbsd_1.6.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"netbsd_1.6.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600,
|
||||
};
|
||||
readonly ulong[] sectors = {409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
409600
|
||||
};
|
||||
readonly long[] clusters = {409600};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -98,4 +84,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,52 +38,45 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class LisaFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"166files.dc42.lz", "222files.dc42.lz", "blank2.0.dc42.lz", "blank-disk.dc42.lz", "file-with-a-password.dc42.lz",
|
||||
"tfwdndrc-has-been-erased.dc42.lz", "tfwdndrc-has-been-restored.dc42.lz", "three-empty-folders.dc42.lz",
|
||||
"three-folders-with-differently-named-docs.dc42.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"166files.dc42.lz", "222files.dc42.lz", "blank2.0.dc42.lz", "blank-disk.dc42.lz",
|
||||
"file-with-a-password.dc42.lz", "tfwdndrc-has-been-erased.dc42.lz", "tfwdndrc-has-been-restored.dc42.lz",
|
||||
"three-empty-folders.dc42.lz", "three-folders-with-differently-named-docs.dc42.lz",
|
||||
"three-folders-with-differently-named-docs-root-alphabetical.dc42.lz",
|
||||
"three-folders-with-differently-named-docs-root-chronological.dc42.lz",
|
||||
"three-folders-with-identically-named-docs.dc42.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.AppleSonySS,MediaType.AppleSonySS,MediaType.AppleSonySS,MediaType.AppleSonySS,
|
||||
MediaType.AppleSonySS,MediaType.AppleSonySS,MediaType.AppleSonySS,MediaType.AppleSonySS,
|
||||
MediaType.AppleSonySS,MediaType.AppleSonySS,MediaType.AppleSonySS,MediaType.AppleSonySS,
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
MediaType.AppleSonySS, MediaType.AppleSonySS, MediaType.AppleSonySS, MediaType.AppleSonySS,
|
||||
MediaType.AppleSonySS, MediaType.AppleSonySS, MediaType.AppleSonySS, MediaType.AppleSonySS,
|
||||
MediaType.AppleSonySS, MediaType.AppleSonySS, MediaType.AppleSonySS, MediaType.AppleSonySS,
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800,
|
||||
};
|
||||
readonly ulong[] sectors = {800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
800, 800, 792, 800, 800, 800, 800, 800, 800, 800, 800, 800,
|
||||
};
|
||||
readonly long[] clusters = {800, 800, 792, 800, 800, 800, 800, 800, 800, 800, 800, 800,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"166Files", "222Files", "AOS 4:59 pm 10/02/87", "AOS 3.0",
|
||||
"AOS 3.0", "AOS 3.0", "AOS 3.0", "AOS 3.0",
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"166Files", "222Files", "AOS 4:59 pm 10/02/87", "AOS 3.0", "AOS 3.0", "AOS 3.0", "AOS 3.0", "AOS 3.0",
|
||||
"AOS 3.0", "AOS 3.0", "AOS 3.0", "AOS 3.0",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"A23703A202010663", "A23703A201010663", "A32D261301010663", "A22CB48D01010663",
|
||||
"A22CC3A702010663", "A22CB48D14010663", "A22CB48D14010663", "A22CB48D01010663",
|
||||
"A22CB48D01010663", "A22CB48D01010663", "A22CB48D01010663", "A22CB48D01010663",
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
"A23703A202010663", "A23703A201010663", "A32D261301010663", "A22CB48D01010663", "A22CC3A702010663",
|
||||
"A22CB48D14010663", "A22CB48D14010663", "A22CB48D01010663", "A22CB48D01010663", "A22CB48D01010663",
|
||||
"A22CB48D01010663", "A22CB48D01010663",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null, null, null, null, null, null, null, null, null, null, null, null,
|
||||
};
|
||||
readonly string[] oemid = {null, null, null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -116,4 +109,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,41 +38,23 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class Locus
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"mf2dd.img.lz", "mf2hd.img.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"mf2dd.img.lz", "mf2hd.img.lz",};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes = {MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
180, 360,
|
||||
};
|
||||
readonly long[] clusters = {180, 360,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096, 4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Label", "Label",
|
||||
};
|
||||
readonly string[] volumename = {"Label", "Label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null,};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null, null,
|
||||
};
|
||||
readonly string[] oemid = {null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -105,4 +87,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,45 +38,30 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class MFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macos_0.1_mf1dd.img.lz","macos_0.5_mf1dd.img.lz","macos_1.1_mf1dd.img.lz","macos_2.0_mf1dd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"macos_0.1_mf1dd.img.lz", "macos_0.5_mf1dd.img.lz", "macos_1.1_mf1dd.img.lz", "macos_2.0_mf1dd.img.lz",
|
||||
"macos_6.0.7_mf1dd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
MediaType.AppleSonySS, MediaType.AppleSonySS, MediaType.AppleSonySS, MediaType.AppleSonySS,
|
||||
MediaType.AppleSonySS
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
800, 800, 800, 800,
|
||||
800,
|
||||
};
|
||||
readonly ulong[] sectors = {800, 800, 800, 800, 800,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
391, 391, 391, 391,
|
||||
391,
|
||||
};
|
||||
readonly long[] clusters = {391, 391, 391, 391, 391,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label","Volume label","Volume label","Volume label",
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename =
|
||||
{"Volume label", "Volume label", "Volume label", "Volume label", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null, null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -108,4 +93,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,33 +38,24 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class MINIXv1
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"minix_3.1.2a_dsdd.img.lz","minix_3.1.2a_dshd.img.lz","minix_3.1.2a_mf2dd.img.lz","minix_3.1.2a_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"minix_3.1.2a_dsdd.img.lz", "minix_3.1.2a_dshd.img.lz", "minix_3.1.2a_mf2dd.img.lz",
|
||||
"minix_3.1.2a_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DOS_525_DS_DD_9,MediaType.DOS_525_HD,MediaType.DOS_35_DS_DD_9,MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
720, 2400, 1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {720, 2400, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512};
|
||||
|
||||
readonly long[] clusters = {
|
||||
360, 1200, 720, 1440,
|
||||
};
|
||||
readonly long[] clusters = {360, 1200, 720, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] types = {
|
||||
"Minix 3 v1", "Minix 3 v1", "Minix 3 v1", "Minix 3 v1",
|
||||
};
|
||||
readonly string[] types = {"Minix 3 v1", "Minix 3 v1", "Minix 3 v1", "Minix 3 v1",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -94,4 +85,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,29 +40,17 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class MINIXv1_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz","minix_3.1.2a.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz", "minix_3.1.2a.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,102400,
|
||||
};
|
||||
readonly ulong[] sectors = {262144, 102400,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
65535,50399,
|
||||
};
|
||||
readonly long[] clusters = {65535, 50399,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024,};
|
||||
|
||||
readonly string[] types = {
|
||||
"Minix v1", "Minix 3 v1",
|
||||
};
|
||||
readonly string[] types = {"Minix v1", "Minix 3 v1",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -87,6 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -96,4 +85,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,33 +38,24 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class MINIXv2
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"minix_3.1.2a_dsdd.img.lz","minix_3.1.2a_dshd.img.lz","minix_3.1.2a_mf2dd.img.lz","minix_3.1.2a_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"minix_3.1.2a_dsdd.img.lz", "minix_3.1.2a_dshd.img.lz", "minix_3.1.2a_mf2dd.img.lz",
|
||||
"minix_3.1.2a_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DOS_525_DS_DD_9,MediaType.DOS_525_HD,MediaType.DOS_35_DS_DD_9,MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
720, 2400, 1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {720, 2400, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512};
|
||||
|
||||
readonly long[] clusters = {
|
||||
360, 1200, 720, 1440,
|
||||
};
|
||||
readonly long[] clusters = {360, 1200, 720, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] types = {
|
||||
"Minix 3 v2", "Minix 3 v2", "Minix 3 v2", "Minix 3 v2",
|
||||
};
|
||||
readonly string[] types = {"Minix 3 v2", "Minix 3 v2", "Minix 3 v2", "Minix 3 v2",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -94,4 +85,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,29 +40,17 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class MINIXv2_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"minix_3.1.2a.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"minix_3.1.2a.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
511055,
|
||||
};
|
||||
readonly long[] clusters = {511055,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] types = {
|
||||
"Minix 3 v2",
|
||||
};
|
||||
readonly string[] types = {"Minix 3 v2",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -87,6 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -96,4 +85,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,33 +38,24 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class MINIXv3
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"minix_3.1.2a_dsdd.img.lz","minix_3.1.2a_dshd.img.lz","minix_3.1.2a_mf2dd.img.lz","minix_3.1.2a_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"minix_3.1.2a_dsdd.img.lz", "minix_3.1.2a_dshd.img.lz", "minix_3.1.2a_mf2dd.img.lz",
|
||||
"minix_3.1.2a_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DOS_525_DS_DD_9,MediaType.DOS_525_HD,MediaType.DOS_35_DS_DD_9,MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
720, 2400, 1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {720, 2400, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512};
|
||||
|
||||
readonly long[] clusters = {
|
||||
90, 300, 180, 360,
|
||||
};
|
||||
readonly long[] clusters = {90, 300, 180, 360,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096, 4096, 4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096, 4096, 4096, 4096,};
|
||||
|
||||
readonly string[] types = {
|
||||
"Minix v3", "Minix v3", "Minix v3", "Minix v3",
|
||||
};
|
||||
readonly string[] types = {"Minix v3", "Minix v3", "Minix v3", "Minix v3",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -94,4 +85,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,29 +40,17 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class MINIXv3_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"minix_3.1.2a.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"minix_3.1.2a.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
4194304,
|
||||
};
|
||||
readonly ulong[] sectors = {4194304,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
523151,
|
||||
};
|
||||
readonly long[] clusters = {523151,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] types = {
|
||||
"Minix v3",
|
||||
};
|
||||
readonly string[] types = {"Minix v3",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -87,6 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -96,4 +85,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class NILFS2
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
32512,
|
||||
};
|
||||
readonly long[] clusters = {32512,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"6b1ca79e-7048-a748-93a0-89c74b02cb5a",
|
||||
};
|
||||
readonly string[] volumeserial = {"6b1ca79e-7048-a748-93a0-89c74b02cb5a",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,39 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class NTFS_GPT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"haiku_hrev51259.vdi.lz",
|
||||
readonly string[] testfiles = {"haiku_hrev51259.vdi.lz",};
|
||||
|
||||
};
|
||||
readonly ulong[] sectors = {2097152,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
2097152,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly long[] clusters = {261887,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
261887,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly string[] volumename = {null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {"106DA7693F7F6B3F",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"106DA7693F7F6B3F",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null,
|
||||
};
|
||||
readonly string[] oemid = {null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -97,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -109,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,53 +40,29 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class NTFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"win10.vdi.lz", "win2000.vdi.lz", "winnt_3.10.vdi.lz", "winnt_3.50.vdi.lz",
|
||||
"winnt_3.51.vdi.lz", "winnt_4.00.vdi.lz", "winvista.vdi.lz", "linux.vdi.lz",
|
||||
"haiku_hrev51259.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"win10.vdi.lz", "win2000.vdi.lz", "winnt_3.10.vdi.lz", "winnt_3.50.vdi.lz", "winnt_3.51.vdi.lz",
|
||||
"winnt_4.00.vdi.lz", "winvista.vdi.lz", "linux.vdi.lz", "haiku_hrev51259.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
524288, 2097152, 1024000, 524288,
|
||||
524288, 524288, 524288, 262144,
|
||||
2097152,
|
||||
readonly ulong[] sectors = {524288, 2097152, 1024000, 524288, 524288, 524288, 524288, 262144, 2097152,};
|
||||
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {65263, 1046511, 1023057, 524256, 524256, 524096, 64767, 32511, 261887,};
|
||||
|
||||
readonly int[] clustersize = {4096, 1024, 512, 512, 512, 512, 4096, 4096, 4096,};
|
||||
|
||||
readonly string[] volumename = {null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
"C46C1B3C6C1B28A6", "8070C8EC70C8E9CC", "10CC6AC6CC6AA5A6", "7A14F50014F4BFE5", "24884447884419A6",
|
||||
"822C288D2C287E73", "E20AF54B0AF51D6B", "065BB96B7C1BCFDA", "46EC796749C6FA66",
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
65263, 1046511, 1023057, 524256,
|
||||
524256, 524096, 64767, 32511,
|
||||
261887,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 1024, 512, 512,
|
||||
512, 512, 4096, 4096,
|
||||
4096,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"C46C1B3C6C1B28A6","8070C8EC70C8E9CC","10CC6AC6CC6AA5A6","7A14F50014F4BFE5",
|
||||
"24884447884419A6","822C288D2C287E73","E20AF54B0AF51D6B","065BB96B7C1BCFDA",
|
||||
"46EC796749C6FA66",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
readonly string[] oemid = {null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -113,6 +89,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -125,4 +102,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,33 +34,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class NWFS386
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"netware_3.12.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"netware_3.12.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
104857600,
|
||||
};
|
||||
readonly ulong[] sectors = {104857600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
104856192,
|
||||
};
|
||||
readonly long[] clusters = {104856192,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"UNKNOWN",
|
||||
};
|
||||
readonly string[] volumeserial = {"UNKNOWN",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -98,4 +84,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,33 +34,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class OCFS2
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
104857600,
|
||||
};
|
||||
readonly ulong[] sectors = {104857600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
104856192,
|
||||
};
|
||||
readonly long[] clusters = {104856192,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"UNKNOWN",
|
||||
};
|
||||
readonly string[] volumeserial = {"UNKNOWN",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -98,4 +84,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class PFS3_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"uae.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"uae.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,
|
||||
};
|
||||
readonly ulong[] sectors = {1024128,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1023552,
|
||||
};
|
||||
readonly long[] clusters = {1023552,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"PFS",
|
||||
};
|
||||
readonly string[] volumename = {"PFS",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null,
|
||||
};
|
||||
readonly string[] oemid = {null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,40 +40,27 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class ProDOS_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macos_7.5.3.vdi.lz","macos_7.6.vdi.lz","macos_8.0.vdi.lz","macos_8.1.vdi.lz",
|
||||
"macos_9.0.4.vdi.lz","macos_9.1.vdi.lz","macos_9.2.1.vdi.lz","macos_9.2.2.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"macos_7.5.3.vdi.lz", "macos_7.6.vdi.lz", "macos_8.0.vdi.lz", "macos_8.1.vdi.lz", "macos_9.0.4.vdi.lz",
|
||||
"macos_9.1.vdi.lz", "macos_9.2.1.vdi.lz", "macos_9.2.2.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
49152,49152,49152,49152,
|
||||
49152,49152,49152,49152,
|
||||
readonly ulong[] sectors = {49152, 49152, 49152, 49152, 49152, 49152, 49152, 49152,};
|
||||
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {48438, 48438, 48438, 48438, 46326, 46326, 46326, 46326,};
|
||||
|
||||
readonly int[] clustersize = {512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"VOLUME.LABEL", "VOLUME.LABEL", "VOLUME.LABEL", "VOLUME.LABEL", "VOLUME.LABEL", "VOLUME.LABEL",
|
||||
"VOLUME.LABEL", "VOLUME.LABEL",
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
48438,48438,48438,48438,
|
||||
46326,46326,46326,46326,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,512,512,512,
|
||||
512,512,512,512,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VOLUME.LABEL","VOLUME.LABEL","VOLUME.LABEL","VOLUME.LABEL",
|
||||
"VOLUME.LABEL","VOLUME.LABEL","VOLUME.LABEL","VOLUME.LABEL",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,null,null,
|
||||
null,null,null,null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -98,6 +85,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -109,4 +97,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,29 +38,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class QNX4
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"qnx_4.24_dsdd.img.lz","qnx_4.24_dshd.img.lz","qnx_4.24_mf2dd.img.lz","qnx_4.24_mf2hd.img.lz",
|
||||
};
|
||||
readonly string[] testfiles =
|
||||
{"qnx_4.24_dsdd.img.lz", "qnx_4.24_dshd.img.lz", "qnx_4.24_mf2dd.img.lz", "qnx_4.24_mf2hd.img.lz",};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DOS_525_DS_DD_9,MediaType.DOS_525_HD,MediaType.DOS_35_DS_DD_9,MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
720, 2400, 1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {720, 2400, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
720, 2400, 1440, 2880,
|
||||
};
|
||||
readonly long[] clusters = {720, 2400, 1440, 2880,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512, 512, 512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512, 512, 512,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -90,4 +80,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,25 +40,15 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class QNX4_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"qnx_4.24.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"qnx_4.24.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1023104,
|
||||
};
|
||||
readonly long[] clusters = {1023104,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -83,6 +73,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -92,4 +83,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,38 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class ReFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"win10.vdi.lz",
|
||||
readonly string[] testfiles = {"win10.vdi.lz",};
|
||||
|
||||
};
|
||||
readonly ulong[] sectors = {67108864,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
67108864,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly long[] clusters = {8388096,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
8388096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {"UNKNOWN",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"UNKNOWN",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
null,
|
||||
};
|
||||
readonly string[] oemid = {null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
throw new NotImplementedException("ReFS is not yet implemented");
|
||||
/*
|
||||
@@ -110,4 +94,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,29 +40,17 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class Reiser3
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux_r3.5.vdi.lz", "linux_r3.6.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles = {"linux_r3.5.vdi.lz", "linux_r3.6.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144, 262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144, 262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
32512, 32512,
|
||||
};
|
||||
readonly long[] clusters = {32512, 32512,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096, 4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096, 4096,};
|
||||
|
||||
readonly string[] reiserversion = {
|
||||
"Reiser 3.5 filesystem", "Reiser 3.6 filesystem"
|
||||
};
|
||||
readonly string[] reiserversion = {"Reiser 3.5 filesystem", "Reiser 3.6 filesystem"};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -87,6 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -96,4 +85,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class Reiser4
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
32511,
|
||||
};
|
||||
readonly long[] clusters = {32511,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"b0c1924e-6f10-8c42-b6c5-66a457896460",
|
||||
};
|
||||
readonly string[] volumeserial = {"b0c1924e-6f10-8c42-b6c5-66a457896460",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class SFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"aros.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"aros.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600,
|
||||
};
|
||||
readonly ulong[] sectors = {409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
408240,
|
||||
};
|
||||
readonly long[] clusters = {408240,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class SFS_MBR_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"aros.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"aros.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600,
|
||||
};
|
||||
readonly ulong[] sectors = {409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
406224,
|
||||
};
|
||||
readonly long[] clusters = {406224,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class SFS_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"uae.vdi.lz","aros.vdi.lz","amigaos_4.0.vdi.lz","amigaos_4.0_sfs2.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles = {"uae.vdi.lz", "aros.vdi.lz", "amigaos_4.0.vdi.lz", "amigaos_4.0_sfs2.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,409600,1024128,1024128,
|
||||
};
|
||||
readonly ulong[] sectors = {1024128, 409600, 1024128, 1024128,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,512,512,512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
127000,407232,511040,511040,
|
||||
};
|
||||
readonly long[] clusters = {127000, 407232, 511040, 511040,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
2048,512,1024,1024,
|
||||
};
|
||||
readonly int[] clustersize = {2048, 512, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,null,null,null,
|
||||
};
|
||||
readonly string[] volumename = {null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,null,null,null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,68 +38,34 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class SysV
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amix.adf.lz",
|
||||
"att_unix_svr4v2.1_dsdd.img.lz", "att_unix_svr4v2.1_mf2dd.img.lz", "att_unix_svr4v2.1_mf2hd.img.lz",
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz", "scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"amix.adf.lz", "att_unix_svr4v2.1_dsdd.img.lz", "att_unix_svr4v2.1_mf2dd.img.lz",
|
||||
"att_unix_svr4v2.1_mf2hd.img.lz", "scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.CBM_AMIGA_35_DD,
|
||||
MediaType.DOS_525_DS_DD_9,MediaType.DOS_35_DS_DD_9,MediaType.DOS_35_HD,
|
||||
MediaType.DMF,MediaType.DOS_525_HD,MediaType.DOS_35_DS_DD_9,MediaType.DOS_35_ED,
|
||||
MediaType.DOS_35_HD,
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
MediaType.CBM_AMIGA_35_DD, MediaType.DOS_525_DS_DD_9, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,
|
||||
MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED, MediaType.DOS_35_HD,
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1760,
|
||||
720, 1440, 2880,
|
||||
3360, 2400, 1440, 5760,
|
||||
2880,
|
||||
};
|
||||
readonly ulong[] sectors = {1760, 720, 1440, 2880, 3360, 2400, 1440, 5760, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
880,
|
||||
360, 720, 1440,
|
||||
1680, 1200, 720, 2880,
|
||||
1440,
|
||||
};
|
||||
readonly long[] clusters = {880, 360, 720, 1440, 1680, 1200, 720, 2880, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
1024, 1024, 1024,
|
||||
1024, 1024, 1024, 1024,
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"",
|
||||
"", "", "",
|
||||
"", "", "", "",
|
||||
"",
|
||||
};
|
||||
readonly string[] volumename = {"", "", "", "", "", "", "", "", "",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
null, null, null,
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"SVR4 fs",
|
||||
"SVR4 fs", "SVR4 fs", "SVR4 fs",
|
||||
"SVR4 fs", "SVR4 fs", "SVR4 fs", "SVR4 fs",
|
||||
"SVR4 fs",
|
||||
};
|
||||
readonly string[] type =
|
||||
{"SVR4 fs", "SVR4 fs", "SVR4 fs", "SVR4 fs", "SVR4 fs", "SVR4 fs", "SVR4 fs", "SVR4 fs", "SVR4 fs",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -131,4 +97,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,22 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class SysV_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"att_unix_svr4v2.1.vdi.lz", "att_unix_svr4v2.1_2k.vdi.lz", "scoopenserver_5.0.7hw.vdi.lz"
|
||||
};
|
||||
readonly string[] testfiles =
|
||||
{"att_unix_svr4v2.1.vdi.lz", "att_unix_svr4v2.1_2k.vdi.lz", "scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000, 1024000, 2097152,
|
||||
};
|
||||
readonly ulong[] sectors = {1024000, 1024000, 2097152,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
511056, 255528, 1020096,
|
||||
};
|
||||
readonly long[] clusters = {511056, 255528, 1020096,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 2048, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 2048, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"/usr3", "/usr3", "Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"/usr3", "/usr3", "Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"SVR4 fs", "SVR4 fs", "SVR4 fs",
|
||||
};
|
||||
readonly string[] type = {"SVR4 fs", "SVR4 fs", "SVR4 fs",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +80,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class SysV_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amix.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"amix.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,
|
||||
};
|
||||
readonly ulong[] sectors = {1024128,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
511424,
|
||||
};
|
||||
readonly long[] clusters = {511424,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"",
|
||||
};
|
||||
readonly string[] volumename = {"",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"SVR4 fs",
|
||||
};
|
||||
readonly string[] type = {"SVR4 fs",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,67 +39,59 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UDF
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"1.02/linux.vdi.lz", "1.02/macosx_10.11.vdi.lz", "1.50/linux.vdi.lz", "1.50/macosx_10.11.vdi.lz",
|
||||
"2.00/linux.vdi.lz", "2.00/macosx_10.11.vdi.lz", "2.01/linux.vdi.lz", "2.01/macosx_10.11.vdi.lz",
|
||||
"2.50/linux.vdi.lz", "2.50/macosx_10.11.vdi.lz", "2.60/macosx_10.11.vdi.lz", "1.50/solaris_7.vdi.lz",
|
||||
"1.50/solaris_9.vdi.lz", "2.01/netbsd_7.1.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000, 204800, 1024000, 409600,
|
||||
1024000, 614400, 1024000, 819200,
|
||||
1024000, 1024000, 1228800, 8388608,
|
||||
readonly ulong[] sectors =
|
||||
{
|
||||
1024000, 204800, 1024000, 409600, 1024000, 614400, 1024000, 819200, 1024000, 1024000, 1228800, 8388608,
|
||||
8388608, 8388608,
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1024000, 204800, 1024000, 409600,
|
||||
1024000, 614400, 1024000, 819200,
|
||||
1024000, 1024000, 1228800, 8388608,
|
||||
readonly long[] clusters =
|
||||
{
|
||||
1024000, 204800, 1024000, 409600, 1024000, 614400, 1024000, 819200, 1024000, 1024000, 1228800, 8388608,
|
||||
8388608, 8388608,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512,512,
|
||||
512, 512,
|
||||
readonly int[] clustersize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly string[] udfversion =
|
||||
{
|
||||
"UDF v1.02", "UDF v1.02", "UDF v1.50", "UDF v1.50", "UDF v2.00", "UDF v2.00", "UDF v2.01", "UDF v2.01",
|
||||
"UDF v2.50", "UDF v2.50", "UDF v2.60", "UDF v1.50", "UDF v1.50", "UDF v2.01",
|
||||
};
|
||||
|
||||
readonly string[] udfversion = {
|
||||
"UDF v1.02", "UDF v1.02", "UDF v1.50", "UDF v1.50",
|
||||
"UDF v2.00", "UDF v2.00", "UDF v2.01", "UDF v2.01",
|
||||
"UDF v2.50", "UDF v2.50", "UDF v2.60", "UDF v1.50",
|
||||
"UDF v1.50", "UDF v2.01",
|
||||
readonly string[] volumename =
|
||||
{
|
||||
"Volume label", "Volume label", "Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label", "Volume label", "Volume label", "Volume label", "Volume label", "*NoLabel*", "*NoLabel*",
|
||||
"anonymous",
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label", "Volume label", "Volume label", "Volume label",
|
||||
"Volume label", "Volume label", "Volume label", "*NoLabel*",
|
||||
"*NoLabel*", "anonymous",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"595c5cfa38ce8b66LinuxUDF", "6D02A231 (Mac OS X newfs_udf) UDF Volume Set", "595c5d00c5b3405aLinuxUDF", "4DD0458B (Mac OS X newfs_udf) UDF Volume Set",
|
||||
"595c5d07f4fc8e8dLinuxUDF", "5D91CB4F (Mac OS X newfs_udf) UDF Volume Set", "595c5d0bee60c3bbLinuxUDF", "48847EB3 (Mac OS X newfs_udf) UDF Volume Set",
|
||||
"595c5d0e4f338552LinuxUDF", "709E84A1 (Mac OS X newfs_udf) UDF Volume Set", "78CE3237 (Mac OS X newfs_udf) UDF Volume Set","595EB2A9",
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
"595c5cfa38ce8b66LinuxUDF", "6D02A231 (Mac OS X newfs_udf) UDF Volume Set", "595c5d00c5b3405aLinuxUDF",
|
||||
"4DD0458B (Mac OS X newfs_udf) UDF Volume Set", "595c5d07f4fc8e8dLinuxUDF",
|
||||
"5D91CB4F (Mac OS X newfs_udf) UDF Volume Set", "595c5d0bee60c3bbLinuxUDF",
|
||||
"48847EB3 (Mac OS X newfs_udf) UDF Volume Set", "595c5d0e4f338552LinuxUDF",
|
||||
"709E84A1 (Mac OS X newfs_udf) UDF Volume Set", "78CE3237 (Mac OS X newfs_udf) UDF Volume Set", "595EB2A9",
|
||||
"595EB55A", "7cc94d726669d773",
|
||||
};
|
||||
|
||||
readonly string[] oemid = {
|
||||
"*Linux UDFFS", "*Apple Mac OS X UDF FS", "*Linux UDFFS", "*Apple Mac OS X UDF FS",
|
||||
"*Linux UDFFS", "*Apple Mac OS X UDF FS", "*Linux UDFFS", "*Apple Mac OS X UDF FS",
|
||||
"*Linux UDFFS", "*Apple Mac OS X UDF FS", "*Apple Mac OS X UDF FS","*SUN SOLARIS UDF",
|
||||
"*SUN SOLARIS UDF", "*NetBSD userland UDF",
|
||||
readonly string[] oemid =
|
||||
{
|
||||
"*Linux UDFFS", "*Apple Mac OS X UDF FS", "*Linux UDFFS", "*Apple Mac OS X UDF FS", "*Linux UDFFS",
|
||||
"*Apple Mac OS X UDF FS", "*Linux UDFFS", "*Apple Mac OS X UDF FS", "*Linux UDFFS",
|
||||
"*Apple Mac OS X UDF FS", "*Apple Mac OS X UDF FS", "*SUN SOLARIS UDF", "*SUN SOLARIS UDF",
|
||||
"*NetBSD userland UDF",
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -132,4 +124,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,50 +38,32 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amix_mf2dd.adf.lz","netbsd_1.6_mf2hd.img.lz","att_unix_svr4v2.1_dsdd.img.lz","att_unix_svr4v2.1_dshd.img.lz",
|
||||
"att_unix_svr4v2.1_mf2dd.img.lz","att_unix_svr4v2.1_mf2hd.img.lz","solaris_2.4_mf2dd.img.lz","solaris_2.4_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"amix_mf2dd.adf.lz", "netbsd_1.6_mf2hd.img.lz", "att_unix_svr4v2.1_dsdd.img.lz",
|
||||
"att_unix_svr4v2.1_dshd.img.lz", "att_unix_svr4v2.1_mf2dd.img.lz", "att_unix_svr4v2.1_mf2hd.img.lz",
|
||||
"solaris_2.4_mf2dd.img.lz", "solaris_2.4_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
MediaType.CBM_AMIGA_35_DD, MediaType.DOS_35_HD, MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD,
|
||||
MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD,
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1760, 2880, 720, 2400,
|
||||
1440, 2880, 1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {1760, 2880, 720, 2400, 1440, 2880, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
880, 2880, 360, 1200,
|
||||
720, 1440, 711, 1422,
|
||||
};
|
||||
readonly long[] clusters = {880, 2880, 360, 1200, 720, 1440, 711, 1422,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 512, 1024, 1024,
|
||||
1024, 1024, 1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 512, 1024, 1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
};
|
||||
readonly string[] type = {"UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -113,4 +95,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,53 +40,29 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UFS_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"ffs43/darwin_1.3.1.vdi.lz","ffs43/darwin_1.4.1.vdi.lz","ffs43/darwin_6.0.2.vdi.lz","ffs43/darwin_8.0.1.vdi.lz",
|
||||
"ufs1/darwin_1.3.1.vdi.lz","ufs1/darwin_1.4.1.vdi.lz","ufs1/darwin_6.0.2.vdi.lz","ufs1/darwin_8.0.1.vdi.lz",
|
||||
"ufs1/macosx_10.2.vdi.lz","ufs1/macosx_10.3.vdi.lz","ufs1/macosx_10.4.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"ffs43/darwin_1.3.1.vdi.lz", "ffs43/darwin_1.4.1.vdi.lz", "ffs43/darwin_6.0.2.vdi.lz",
|
||||
"ffs43/darwin_8.0.1.vdi.lz", "ufs1/darwin_1.3.1.vdi.lz", "ufs1/darwin_1.4.1.vdi.lz",
|
||||
"ufs1/darwin_6.0.2.vdi.lz", "ufs1/darwin_8.0.1.vdi.lz", "ufs1/macosx_10.2.vdi.lz",
|
||||
"ufs1/macosx_10.3.vdi.lz", "ufs1/macosx_10.4.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
204800, 204800, 204800, 204800,
|
||||
2097152, 2097152, 2097152,
|
||||
};
|
||||
readonly ulong[] sectors =
|
||||
{1024000, 1024000, 1024000, 1024000, 204800, 204800, 204800, 204800, 2097152, 2097152, 2097152,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
511488, 511488, 511488, 511488,
|
||||
102368, 102368, 102368, 102368,
|
||||
1047660, 1038952, 1038952,
|
||||
};
|
||||
readonly long[] clusters =
|
||||
{511488, 511488, 511488, 511488, 102368, 102368, 102368, 102368, 1047660, 1038952, 1038952,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
1024, 1024, 1024, 1024,
|
||||
1024, 1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS",
|
||||
};
|
||||
readonly string[] type = {"UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -111,6 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -122,4 +99,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,92 +40,61 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"ufs1/linux.vdi.lz", "ufs2/linux.vdi.lz", "ffs43/darwin_1.3.1.vdi.lz", "ffs43/darwin_1.4.1.vdi.lz",
|
||||
"ffs43/darwin_6.0.2.vdi.lz", "ffs43/darwin_8.0.1.vdi.lz", "ffs43/dflybsd_1.2.0.vdi.lz", "ffs43/dflybsd_3.6.1.vdi.lz",
|
||||
"ffs43/dflybsd_4.0.5.vdi.lz", "ffs43/netbsd_1.6.vdi.lz", "ffs43/netbsd_7.1.vdi.lz", "ufs1/darwin_1.3.1.vdi.lz",
|
||||
"ufs1/darwin_1.4.1.vdi.lz", "ufs1/darwin_6.0.2.vdi.lz", "ufs1/darwin_8.0.1.vdi.lz", "ufs1/dflybsd_1.2.0.vdi.lz",
|
||||
"ufs1/dflybsd_3.6.1.vdi.lz", "ufs1/dflybsd_4.0.5.vdi.lz", "ufs1/freebsd_6.1.vdi.lz", "ufs1/freebsd_7.0.vdi.lz",
|
||||
"ufs1/freebsd_8.2.vdi.lz", "ufs1/netbsd_1.6.vdi.lz", "ufs1/netbsd_7.1.vdi.lz", "ufs1/solaris_7.vdi.lz",
|
||||
"ufs1/solaris_9.vdi.lz", "ufs2/freebsd_6.1.vdi.lz", "ufs2/freebsd_7.0.vdi.lz", "ufs2/freebsd_8.2.vdi.lz",
|
||||
"ufs2/netbsd_7.1.vdi.lz",
|
||||
"ffs43/darwin_6.0.2.vdi.lz", "ffs43/darwin_8.0.1.vdi.lz", "ffs43/dflybsd_1.2.0.vdi.lz",
|
||||
"ffs43/dflybsd_3.6.1.vdi.lz", "ffs43/dflybsd_4.0.5.vdi.lz", "ffs43/netbsd_1.6.vdi.lz",
|
||||
"ffs43/netbsd_7.1.vdi.lz", "ufs1/darwin_1.3.1.vdi.lz", "ufs1/darwin_1.4.1.vdi.lz",
|
||||
"ufs1/darwin_6.0.2.vdi.lz", "ufs1/darwin_8.0.1.vdi.lz", "ufs1/dflybsd_1.2.0.vdi.lz",
|
||||
"ufs1/dflybsd_3.6.1.vdi.lz", "ufs1/dflybsd_4.0.5.vdi.lz", "ufs1/freebsd_6.1.vdi.lz",
|
||||
"ufs1/freebsd_7.0.vdi.lz", "ufs1/freebsd_8.2.vdi.lz", "ufs1/netbsd_1.6.vdi.lz", "ufs1/netbsd_7.1.vdi.lz",
|
||||
"ufs1/solaris_7.vdi.lz", "ufs1/solaris_9.vdi.lz", "ufs2/freebsd_6.1.vdi.lz", "ufs2/freebsd_7.0.vdi.lz",
|
||||
"ufs2/freebsd_8.2.vdi.lz", "ufs2/netbsd_7.1.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144, 262144, 1024000, 1024000,
|
||||
1024000, 1024000, 1024000, 1024000,
|
||||
1024000, 1024000, 409600, 204800,
|
||||
204800, 204800, 204800, 2097152,
|
||||
2097152, 2097152, 2097152, 8388608,
|
||||
8388608, 2097152, 1024000, 2097152,
|
||||
2097152, 16777216, 16777216, 16777216,
|
||||
2097152,
|
||||
readonly ulong[] sectors =
|
||||
{
|
||||
262144, 262144, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 1024000, 409600, 204800,
|
||||
204800, 204800, 204800, 2097152, 2097152, 2097152, 2097152, 8388608, 8388608, 2097152, 1024000, 2097152,
|
||||
2097152, 16777216, 16777216, 16777216, 2097152,
|
||||
};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
readonly uint[] sectorsize =
|
||||
{
|
||||
512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
||||
512, 512, 512, 512, 512, 512, 512, 512,
|
||||
};
|
||||
|
||||
readonly long[] clusters = {
|
||||
65024, 65024, 511024, 511024,
|
||||
511024, 511488, 511950, 255470,
|
||||
255470, 511992, 204768, 102280,
|
||||
102280, 102280, 102368, 1048500,
|
||||
523758, 523758, 262138, 1048231,
|
||||
2096462, 524284, 511968, 1038240,
|
||||
1046808, 2096472, 2096472, 4192945,
|
||||
524272,
|
||||
readonly long[] clusters =
|
||||
{
|
||||
65024, 65024, 511024, 511024, 511024, 511488, 511950, 255470, 255470, 511992, 204768, 102280, 102280,
|
||||
102280, 102368, 1048500, 523758, 523758, 262138, 1048231, 2096462, 524284, 511968, 1038240, 1046808,
|
||||
2096472, 2096472, 4192945, 524272,
|
||||
};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
2048, 2048, 1024, 1024,
|
||||
1024, 1024, 1024, 2048,
|
||||
2048, 1024, 1024, 1024,
|
||||
1024, 1024, 1024, 1024,
|
||||
2048, 2048, 4096, 4096,
|
||||
2048, 2048, 1024, 1024,
|
||||
1024, 4096, 4096, 2048,
|
||||
2048,
|
||||
readonly int[] clustersize =
|
||||
{
|
||||
2048, 2048, 1024, 1024, 1024, 1024, 1024, 2048, 2048, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 2048, 2048,
|
||||
4096, 4096, 2048, 2048, 1024, 1024, 1024, 4096, 4096, 2048, 2048,
|
||||
};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, "VolumeLabel", null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, "VolumeLabel", "VolumeLabel", "VolumeLabel",
|
||||
"",
|
||||
readonly string[] volumename =
|
||||
{
|
||||
null, "VolumeLabel", null, null, null, null, null, null, null, null, null, null, null, null, null, null,
|
||||
null, null, null, null, null, null, null, null, null, "VolumeLabel", "VolumeLabel", "VolumeLabel", "",
|
||||
};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null, null, null, null,
|
||||
null,
|
||||
readonly string[] volumeserial =
|
||||
{
|
||||
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
|
||||
null, null, null, null, null, null, null, null, null, null, null,
|
||||
};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS", "UFS2", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS2", "UFS2", "UFS2",
|
||||
"UFS2",
|
||||
readonly string[] type =
|
||||
{
|
||||
"UFS", "UFS2", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS",
|
||||
"UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS2", "UFS2", "UFS2", "UFS2",
|
||||
};
|
||||
|
||||
[Test]
|
||||
@@ -145,13 +114,15 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
{
|
||||
if(partitions[j].Type == "0x63" || partitions[j].Type == "0xA8" || partitions[j].Type == "0xA5" || partitions[j].Type == "0xA9" ||
|
||||
partitions[j].Type == "0x82" || partitions[j].Type == "0x83" || partitions[j].Type == "4.2BSD Fast File System" || partitions[j].Type == "Sun boot")
|
||||
if(partitions[j].Type == "0x63" || partitions[j].Type == "0xA8" || partitions[j].Type == "0xA5" ||
|
||||
partitions[j].Type == "0xA9" || partitions[j].Type == "0x82" || partitions[j].Type == "0x83" ||
|
||||
partitions[j].Type == "4.2BSD Fast File System" || partitions[j].Type == "Sun boot")
|
||||
{
|
||||
part = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -163,4 +134,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,45 +40,25 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UFS_NeXT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"nextstep_3.3.vdi.lz","openstep_4.0.vdi.lz","openstep_4.2.vdi.lz",
|
||||
"rhapsody_dr1.vdi.lz","rhapsody_dr2.vdi.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"nextstep_3.3.vdi.lz", "openstep_4.0.vdi.lz", "openstep_4.2.vdi.lz", "rhapsody_dr1.vdi.lz",
|
||||
"rhapsody_dr2.vdi.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
409600,409600,409600,
|
||||
409600,409600,
|
||||
};
|
||||
readonly ulong[] sectors = {409600, 409600, 409600, 409600, 409600,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512,
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
204640,204640,204640,
|
||||
204640,204464,
|
||||
};
|
||||
readonly long[] clusters = {204640, 204640, 204640, 204640, 204464,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024,
|
||||
1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null, null,
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null,
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS", "UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
};
|
||||
readonly string[] type = {"UFS", "UFS", "UFS", "UFS", "UFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -103,6 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -114,4 +95,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,69 +39,27 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UFS_NeXT_Floppy
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"nextstep_3.3_mf2dd.img.lz","nextstep_3.3_mf2hd.img.lz",
|
||||
"openstep_4.0_mf2dd.img.lz","openstep_4.0_mf2hd.img.lz",
|
||||
"openstep_4.2_mf2dd.img.lz","openstep_4.2_mf2hd.img.lz",
|
||||
"rhapsody_dr1_mf2dd.img.lz","rhapsody_dr1_mf2hd.img.lz",
|
||||
"rhapsody_dr2_mf2dd.img.lz","rhapsody_dr2_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"nextstep_3.3_mf2dd.img.lz", "nextstep_3.3_mf2hd.img.lz", "openstep_4.0_mf2dd.img.lz",
|
||||
"openstep_4.0_mf2hd.img.lz", "openstep_4.2_mf2dd.img.lz", "openstep_4.2_mf2hd.img.lz",
|
||||
"rhapsody_dr1_mf2dd.img.lz", "rhapsody_dr1_mf2hd.img.lz", "rhapsody_dr2_mf2dd.img.lz",
|
||||
"rhapsody_dr2_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1440, 2880,
|
||||
1440, 2880,
|
||||
1440, 2880,
|
||||
1440, 2880,
|
||||
1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {1440, 2880, 1440, 2880, 1440, 2880, 1440, 2880, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
512, 512,
|
||||
512, 512,
|
||||
512, 512,
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
624, 1344,
|
||||
624, 1344,
|
||||
624, 1344,
|
||||
624, 1344,
|
||||
624, 1344,
|
||||
};
|
||||
readonly long[] clusters = {624, 1344, 624, 1344, 624, 1344, 624, 1344, 624, 1344,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024,
|
||||
1024, 1024,
|
||||
1024, 1024,
|
||||
1024, 1024,
|
||||
1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
};
|
||||
readonly string[] type = {"UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -126,6 +84,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -137,4 +96,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UFS_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amix.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"amix.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,
|
||||
};
|
||||
readonly ulong[] sectors = {1024128,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
511424,
|
||||
};
|
||||
readonly long[] clusters = {511424,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS",
|
||||
};
|
||||
readonly string[] type = {"UFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UFS_Suni86
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"solaris_7.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"solaris_7.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
4194304,
|
||||
};
|
||||
readonly ulong[] sectors = {4194304,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
2063376,
|
||||
};
|
||||
readonly long[] clusters = {2063376,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS",
|
||||
};
|
||||
readonly string[] type = {"UFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,40 +38,27 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class unixbfs
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amix_mf2dd.adf.lz","att_unix_svr4v2.1_dsdd.img.lz","att_unix_svr4v2.1_dshd.img.lz","att_unix_svr4v2.1_mf2dd.img.lz",
|
||||
"att_unix_svr4v2.1_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"amix_mf2dd.adf.lz", "att_unix_svr4v2.1_dsdd.img.lz", "att_unix_svr4v2.1_dshd.img.lz",
|
||||
"att_unix_svr4v2.1_mf2dd.img.lz", "att_unix_svr4v2.1_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
readonly MediaType[] mediatypes =
|
||||
{
|
||||
MediaType.CBM_AMIGA_35_DD, MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9,
|
||||
MediaType.DOS_35_HD,
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1760, 720, 2400, 1440,
|
||||
2880,
|
||||
};
|
||||
readonly ulong[] sectors = {1760, 720, 2400, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
1760, 720, 2400, 1440,
|
||||
2880,
|
||||
};
|
||||
readonly long[] clusters = {1760, 720, 2400, 1440, 2880,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Label",null,null,null,
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {"Label", null, null, null, null,};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,29 +40,17 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class unixbfs_mbr
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
260096,
|
||||
};
|
||||
readonly long[] clusters = {260096,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
512,
|
||||
};
|
||||
readonly int[] clustersize = {512,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Label",
|
||||
};
|
||||
readonly string[] volumename = {"Label",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -87,6 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -97,4 +86,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,37 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UNIXBFS_RDB
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"amix.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"amix.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1024128,
|
||||
};
|
||||
readonly ulong[] sectors = {1024128,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
65024,
|
||||
};
|
||||
readonly long[] clusters = {65024,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
2048,
|
||||
};
|
||||
readonly int[] clustersize = {2048,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"UNKNOWN",
|
||||
};
|
||||
readonly string[] volumeserial = {"UNKNOWN",};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS",
|
||||
};
|
||||
readonly string[] type = {"UFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -95,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -106,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,51 +38,29 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class XENIX
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz", "scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"scoopenserver_5.0.7hw_dmf.img.lz", "scoopenserver_5.0.7hw_dshd.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2dd.img.lz", "scoopenserver_5.0.7hw_mf2ed.img.lz",
|
||||
"scoopenserver_5.0.7hw_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly MediaType[] mediatypes = {
|
||||
MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED,
|
||||
MediaType.DOS_35_HD,
|
||||
};
|
||||
readonly MediaType[] mediatypes =
|
||||
{MediaType.DMF, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_ED, MediaType.DOS_35_HD,};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
3360, 2400, 1440, 5760,
|
||||
2880,
|
||||
};
|
||||
readonly ulong[] sectors = {3360, 2400, 1440, 5760, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512, 512,
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
0, 0, 0, 0, 0,
|
||||
1680, 1200, 720, 2880,
|
||||
1440,
|
||||
};
|
||||
readonly long[] clusters = {0, 0, 0, 0, 0, 1680, 1200, 720, 2880, 1440,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024, 1024,
|
||||
1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"", "", "", "",
|
||||
"",
|
||||
};
|
||||
readonly string[] volumename = {"", "", "", "", "",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null, null,
|
||||
null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"XENIX fs", "XENIX fs", "XENIX fs", "XENIX fs",
|
||||
"XENIX fs",
|
||||
};
|
||||
readonly string[] type = {"XENIX fs", "XENIX fs", "XENIX fs", "XENIX fs", "XENIX fs",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -114,4 +92,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,38 +40,21 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class XENIX_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"xenix_2.3.2d.vdi.lz", "xenix_2.3.4h.vdi.lz", "scoopenserver_5.0.7hw.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"xenix_2.3.2d.vdi.lz", "xenix_2.3.4h.vdi.lz", "scoopenserver_5.0.7hw.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
40960, 40960, 2097152,
|
||||
};
|
||||
readonly ulong[] sectors = {40960, 40960, 2097152,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
0, 0, 0,
|
||||
19624, 19624, 19624,
|
||||
};
|
||||
readonly long[] clusters = {0, 0, 0, 19624, 19624, 19624,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"", "", "",
|
||||
};
|
||||
readonly string[] volumename = {"", "", "",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"XENIX fs", "XENIX fs", "XENIX fs",
|
||||
};
|
||||
readonly string[] type = {"XENIX fs", "XENIX fs", "XENIX fs",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -96,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -107,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class XFS_MBR
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1048576,
|
||||
};
|
||||
readonly ulong[] sectors = {1048576,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
130816,
|
||||
};
|
||||
readonly long[] clusters = {130816,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"Volume label",
|
||||
};
|
||||
readonly string[] volumename = {"Volume label",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"230075b7-9834-b44e-a257-982a058311d8",
|
||||
};
|
||||
readonly string[] volumeserial = {"230075b7-9834-b44e-a257-982a058311d8",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,33 +39,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class ZFS
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"netbsd_7.1.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"netbsd_7.1.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
33554432,
|
||||
};
|
||||
readonly ulong[] sectors = {33554432,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
0,
|
||||
};
|
||||
readonly long[] clusters = {0,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
0,
|
||||
};
|
||||
readonly int[] clustersize = {0,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"NetBSD 7.1",
|
||||
};
|
||||
readonly string[] volumename = {"NetBSD 7.1",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"2639895335654686206",
|
||||
};
|
||||
readonly string[] volumeserial = {"2639895335654686206",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -96,4 +82,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,33 +41,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class btrfs
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"linux.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"linux.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
32512,
|
||||
};
|
||||
readonly long[] clusters = {32512,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
"VolumeLabel",
|
||||
};
|
||||
readonly string[] volumename = {"VolumeLabel",};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"a4fc5201-85cc-6840-8a68-998cab9ae897",
|
||||
};
|
||||
readonly string[] volumeserial = {"a4fc5201-85cc-6840-8a68-998cab9ae897",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -93,6 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -104,4 +91,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class exFAT_APM
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
32710,
|
||||
};
|
||||
readonly long[] clusters = {32710,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"595AC82C",
|
||||
};
|
||||
readonly string[] volumeserial = {"595AC82C",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,33 +40,19 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class exFAT_GPT
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"macosx_10.11.vdi.lz",
|
||||
};
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz",};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
262144,
|
||||
};
|
||||
readonly ulong[] sectors = {262144,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
32208,
|
||||
};
|
||||
readonly long[] clusters = {32208,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
4096,
|
||||
};
|
||||
readonly int[] clustersize = {4096,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null,
|
||||
};
|
||||
readonly string[] volumename = {null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
"595ACC39",
|
||||
};
|
||||
readonly string[] volumeserial = {"595ACC39",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -91,6 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
@@ -102,4 +89,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user