Use struct to define all expected data for file system tests.

This commit is contained in:
2021-03-01 21:18:02 +00:00
parent 7cacb9bf84
commit 7f3c0081ff
115 changed files with 13070 additions and 8694 deletions

View File

@@ -45,55 +45,48 @@ namespace Aaru.Tests.Filesystems.MINIX.V3
public override IFilesystem _plugin => new MinixFS();
public override bool _partitions => false;
public override string[] _testFiles => new[]
public override FileSystemTest[] Tests => new[]
{
"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"
};
public override MediaType[] _mediaTypes => new[]
{
MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD, MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD
};
public override ulong[] _sectors => new ulong[]
{
720, 2400, 1440, 2880
};
public override uint[] _sectorSize => new uint[]
{
512, 512, 512, 512
};
public override string[] _appId => null;
public override bool[] _bootable => new[]
{
false, false, false, false
};
public override long[] _clusters => new long[]
{
90, 300, 180, 360
};
public override uint[] _clusterSize => new uint[]
{
4096, 4096, 4096, 4096
};
public override string[] _oemId => null;
public override string[] _type => new[]
{
"Minix v3", "Minix v3", "Minix v3", "Minix v3"
};
public override string[] _volumeName => new string[]
{
null, null, null, null
};
public override string[] _volumeSerial => new string[]
{
null, null, null, null
new FileSystemTest
{
TestFile = "minix_3.1.2a_dsdd.img.lz",
MediaType = MediaType.DOS_525_DS_DD_9,
Sectors = 720,
SectorSize = 512,
Clusters = 90,
ClusterSize = 4096,
Type = "Minix v3"
},
new FileSystemTest
{
TestFile = "minix_3.1.2a_dshd.img.lz",
MediaType = MediaType.DOS_525_HD,
Sectors = 2400,
SectorSize = 512,
Clusters = 300,
ClusterSize = 4096,
Type = "Minix v3"
},
new FileSystemTest
{
TestFile = "minix_3.1.2a_mf2dd.img.lz",
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
Clusters = 180,
ClusterSize = 4096,
Type = "Minix v3"
},
new FileSystemTest
{
TestFile = "minix_3.1.2a_mf2hd.img.lz",
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
Clusters = 360,
ClusterSize = 4096,
Type = "Minix v3"
}
};
}
}