mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
1369 lines
44 KiB
C#
1369 lines
44 KiB
C#
// /***************************************************************************
|
|
// Aaru Data Preservation Suite
|
|
// ----------------------------------------------------------------------------
|
|
//
|
|
// Filename : BlindWrite5.cs
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
//
|
|
// Component : Aaru unit testing.
|
|
//
|
|
// --[ License ] --------------------------------------------------------------
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
//
|
|
// ----------------------------------------------------------------------------
|
|
// Copyright © 2011-2023 Natalia Portillo
|
|
// ****************************************************************************/
|
|
|
|
using System.IO;
|
|
using Aaru.CommonTypes;
|
|
using Aaru.CommonTypes.Interfaces;
|
|
using NUnit.Framework;
|
|
|
|
namespace Aaru.Tests.Images;
|
|
|
|
[TestFixture]
|
|
public class BlindWrite5 : OpticalMediaImageTest
|
|
{
|
|
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Media image formats", "BlindWrite 5");
|
|
public override IMediaImage Plugin => new DiscImages.BlindWrite5();
|
|
|
|
public override OpticalImageTestExpected[] Tests => new[]
|
|
{
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "dvdrom.B5T",
|
|
MediaType = MediaType.DVDROM,
|
|
Sectors = 2287072,
|
|
Md5 = "b9b0b4318e6264c405c3f96128901815",
|
|
LongMd5 = "b9b0b4318e6264c405c3f96128901815",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 2287071,
|
|
Pregap = 0,
|
|
Number = 1,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 2287072,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "GuiaRaw"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "gigarec.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 469652,
|
|
Md5 = "e2e967adc0e5c530964ac4eebe8cac47",
|
|
LongMd5 = "1dc7801008110af6b8015aad64d91739",
|
|
SubchannelMd5 = "26c27541d0d55fe9a87f3f7de622466d",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 469651,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 1,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 469652,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "New Volume"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "jaguarcd.B5T",
|
|
MediaType = MediaType.CDDA,
|
|
Sectors = 243587,
|
|
Md5 = "3dd5bd0f7d95a40d411761d69255567a",
|
|
LongMd5 = "3dd5bd0f7d95a40d411761d69255567a",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 16239,
|
|
Pregap = 150,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 27490,
|
|
End = 28236,
|
|
Pregap = 150,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 28237,
|
|
End = 78891,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 78892,
|
|
End = 100053,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 100054,
|
|
End = 133202,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 133203,
|
|
End = 160907,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 160908,
|
|
End = 181465,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 181466,
|
|
End = 202023,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 202024,
|
|
End = 222581,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 222582,
|
|
End = 243139,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 243140,
|
|
End = 243586,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "pcengine.B5T",
|
|
MediaType = MediaType.CD,
|
|
Sectors = 160956,
|
|
Md5 = "4f5165069b3c5f11afe5f59711bd945d",
|
|
LongMd5 = "fd30db9486f67654179c90c8a5052edb",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 3589,
|
|
Pregap = 150,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 3590,
|
|
End = 38463,
|
|
Pregap = 0,
|
|
Flags = 4,
|
|
Number = 2,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 28672,
|
|
ClusterSize = 2048,
|
|
Type = "pcengine"
|
|
}
|
|
}
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 38464,
|
|
End = 47216,
|
|
Pregap = 150,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 47217,
|
|
End = 53500,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 53501,
|
|
End = 61818,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 61819,
|
|
End = 68562,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 68563,
|
|
End = 75396,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 75397,
|
|
End = 83129,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 83130,
|
|
End = 86480,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 86481,
|
|
End = 91266,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 91267,
|
|
End = 99273,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 99274,
|
|
End = 106692,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 106693,
|
|
End = 112237,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 112238,
|
|
End = 120269,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 120270,
|
|
End = 126228,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 126229,
|
|
End = 160955,
|
|
Pregap = 0,
|
|
Flags = 4
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "pcfx.B5T",
|
|
MediaType = MediaType.CD,
|
|
Sectors = 246680,
|
|
Md5 = "c1bc8de499756453d1387542bb32bb4d",
|
|
LongMd5 = "455ec326506d2c5b974c4617c1010796",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 4394,
|
|
Pregap = 150,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 4395,
|
|
End = 4908,
|
|
Pregap = 0,
|
|
Flags = 4,
|
|
Number = 2,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Bootable = true,
|
|
Clusters = 514,
|
|
ClusterSize = 2048,
|
|
Type = "pcfx",
|
|
VolumeName = "同級生2"
|
|
}
|
|
}
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 4909,
|
|
End = 5940,
|
|
Pregap = 0,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 5941,
|
|
End = 42058,
|
|
Pregap = 0,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 42059,
|
|
End = 220644,
|
|
Pregap = 0,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 220645,
|
|
End = 225645,
|
|
Pregap = 150,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 225646,
|
|
End = 235497,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 235498,
|
|
End = 246679,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "report_audiocd.B5T",
|
|
MediaType = MediaType.CDDA,
|
|
Sectors = 247073,
|
|
Md5 = "c09f408a4416634d8ac1c1ffd0ed75a5",
|
|
LongMd5 = "c09f408a4416634d8ac1c1ffd0ed75a5",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 16548,
|
|
Pregap = 150,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 16549,
|
|
End = 30050,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 30051,
|
|
End = 47949,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 47950,
|
|
End = 63313,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 63314,
|
|
End = 78924,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 78925,
|
|
End = 94731,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 94732,
|
|
End = 117124,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 117125,
|
|
End = 136165,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 136166,
|
|
End = 154071,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 154072,
|
|
End = 170750,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 170751,
|
|
End = 186538,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 186539,
|
|
End = 201798,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 201799,
|
|
End = 224448,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 224449,
|
|
End = 247072,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "report_cdr.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 254265,
|
|
Md5 = "65e79ef740833188a0f5be19da14c09d",
|
|
LongMd5 = "47b32c32a6427ad1e6b4b1bd047df716",
|
|
SubchannelMd5 = "f2246afbf3dfbcad5acd2c85134b568e",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 254264,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 1,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 63562,
|
|
ClusterSize = 8192,
|
|
Type = "hfs",
|
|
VolumeName = "Winpower"
|
|
},
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 254265,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "Winpower"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "report_cdrom.B5T",
|
|
MediaType = MediaType.CDROM,
|
|
Sectors = 254265,
|
|
Md5 = "bf4bbec517101d0d6f45d2e4d50cb875",
|
|
LongMd5 = "3d3f9cf7d1ba2249b1e7960071e5af46",
|
|
SubchannelMd5 = "7a01c3f2fe95664ef5726b3ad9597282",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 254264,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 1,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 63562,
|
|
ClusterSize = 8192,
|
|
Type = "hfs",
|
|
VolumeName = "Winpower"
|
|
},
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 254265,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "Winpower"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "report_cdrw_2x.B5T",
|
|
MediaType = MediaType.CDRW,
|
|
Sectors = 308224,
|
|
Md5 = "1e55aa420ca8f8ea77d5b597c9cfc19b",
|
|
LongMd5 = "3af5f943ddb9427d9c63a4ce3b704db9",
|
|
SubchannelMd5 = "6da685990c9b366bf49d556dc3e1db08",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 308223,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 1,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Bootable = true,
|
|
Clusters = 308224,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "ARCH_201901"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_audiocd_cdtext.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 277696,
|
|
Md5 = "7c8fc7bb768cff15d702ac8cd10108d7",
|
|
LongMd5 = "7c8fc7bb768cff15d702ac8cd10108d7",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 29901,
|
|
Pregap = 150,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 29902,
|
|
End = 65183,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 65184,
|
|
End = 78575,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 78576,
|
|
End = 95229,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 95230,
|
|
End = 126296,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 126297,
|
|
End = 155108,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 155109,
|
|
End = 191834,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 191835,
|
|
End = 222925,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 222926,
|
|
End = 243587,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 243588,
|
|
End = 269749,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 269750,
|
|
End = 277695,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_enhancedcd.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 59206,
|
|
Md5 = "3736dbfcb7bf5648e3ac067379087001",
|
|
LongMd5 = "c2dfd5a32678c3ff049c143c98ad36a5",
|
|
SubchannelMd5 = "f486c17d8b43d802e8f00637d4b27de1",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 14404,
|
|
Pregap = 150,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 14405,
|
|
End = 28952,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 40203,
|
|
End = 59205,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 3,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 18853,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "New"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_incd_udf200_finalized.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 350134,
|
|
Md5 = "901e4fe17ea6591b1fd53ba822428ef4",
|
|
LongMd5 = "7b489457540c40037aabcf3f21e0201e",
|
|
SubchannelMd5 = "51f7e060a5d85539bfea0fd7aa3ee107",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 350133,
|
|
Pregap = 150,
|
|
Flags = 7,
|
|
Number = 1,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 600,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "INCD"
|
|
},
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 399371,
|
|
ClusterSize = 2048,
|
|
Type = "udf",
|
|
VolumeName = "InCD",
|
|
VolumeSerial = "40888C15CA13D401InCD"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_multiple_indexes.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 65536,
|
|
Md5 = "1b13a8f8aeb23f0b8bbc68518217e771",
|
|
LongMd5 = "1b13a8f8aeb23f0b8bbc68518217e771",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 4803,
|
|
Pregap = 150,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 4804,
|
|
End = 13874,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 13875,
|
|
End = 41184,
|
|
Pregap = 0,
|
|
Flags = 0
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 41185,
|
|
End = 54988,
|
|
Pregap = 0,
|
|
Flags = 8
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 54989,
|
|
End = 65535,
|
|
Pregap = 0,
|
|
Flags = 1
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_multisession.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 51168,
|
|
Md5 = "e2e19cf38891e67a0829d01842b4052e",
|
|
LongMd5 = "3e646a04eb29a8e0ad892b6ac00ba962",
|
|
SubchannelMd5 = "94c9b99c0ca454bbbb399da2b7e4c86d",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 8132,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 1,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 7876,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "Session 1"
|
|
},
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 8133,
|
|
ClusterSize = 2048,
|
|
Type = "udf",
|
|
VolumeName = "Session 1",
|
|
VolumeSerial = "50958B61AF6A749E"
|
|
}
|
|
}
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 19383,
|
|
End = 25959,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 2,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 6170,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "Session 2"
|
|
},
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 6427,
|
|
ClusterSize = 2048,
|
|
Type = "udf",
|
|
VolumeName = "Session 2",
|
|
VolumeSerial = "50958BBBAF6A7444"
|
|
}
|
|
}
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 3,
|
|
Start = 32710,
|
|
End = 38477,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 3,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 5360,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "Session 3"
|
|
},
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 5618,
|
|
ClusterSize = 2048,
|
|
Type = "udf",
|
|
VolumeName = "Session 3",
|
|
VolumeSerial = "50958C19AF6A73E6"
|
|
}
|
|
}
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 4,
|
|
Start = 45228,
|
|
End = 51167,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 4,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 45796,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "Session 4"
|
|
},
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 5790,
|
|
ClusterSize = 2048,
|
|
Type = "udf",
|
|
VolumeName = "Session 4",
|
|
VolumeSerial = "50958C82AF6A737D"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_videocd.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 48794,
|
|
Md5 = "203a40d27b9bee018705c2df8d15e96d",
|
|
LongMd5 = "a686cade367db0a12fef1d9862f39e1d",
|
|
SubchannelMd5 = "177b666c1fb45c85f5a2bfe690046802",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 1251,
|
|
Pregap = 150,
|
|
Flags = 4,
|
|
Number = 1,
|
|
FileSystems = new[]
|
|
{
|
|
new FileSystemTest
|
|
{
|
|
Clusters = 1102,
|
|
ClusterSize = 2048,
|
|
Type = "iso9660",
|
|
VolumeName = "VIDEOCD"
|
|
}
|
|
}
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 1252,
|
|
End = 48793,
|
|
Pregap = 0,
|
|
Flags = 4
|
|
}
|
|
}
|
|
},
|
|
|
|
#region These test images violate the specifications and are not expected to work yet
|
|
|
|
/*
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_all_tracks_are_track1.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 0,
|
|
MD5 = "UNKNOWN",
|
|
LongMD5 = "UNKNOWN",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 25538,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 25539,
|
|
End = 51077,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_castrated_leadout.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 0,
|
|
MD5 = "UNKNOWN",
|
|
LongMD5 = "UNKNOWN",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 29901,
|
|
Pregap = 150,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 29902,
|
|
End = 65183,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 65184,
|
|
End = 78575,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 78576,
|
|
End = 95229,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 95230,
|
|
End = 126296,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 126297,
|
|
End = 155108,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 155109,
|
|
End = 191834,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 191835,
|
|
End = 222925,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 222926,
|
|
End = 243587,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 243588,
|
|
End = 269749,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 269750,
|
|
End = 1049,
|
|
Pregap = 0,
|
|
Flags = 2
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_data_track_as_audio.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 62385,
|
|
MD5 = "ce3d63e831b4e6191b05ec9ce452ad91",
|
|
LongMD5 = "4bd5511229857ca167b45e607dea12dc",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 25538,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 36789,
|
|
End = 62384,
|
|
Pregap = 150,
|
|
Flags = 2
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_data_track_as_audio_fixed_sub.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 62385,
|
|
MD5 = "ce3d63e831b4e6191b05ec9ce452ad91",
|
|
LongMD5 = "4bd5511229857ca167b45e607dea12dc",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 25538,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 36789,
|
|
End = 62384,
|
|
Pregap = 150,
|
|
Flags = 2
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_disc_starts_at_track2.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 62385,
|
|
MD5 = "25fb1b49726aaac09196ea56490beeb1",
|
|
LongMD5 = "8fd0dbe9085363cc20709f0ca76a373d",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 25538,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 36789,
|
|
End = 62384,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_track1_overlaps_session2.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 0,
|
|
MD5 = "UNKNOWN",
|
|
LongMD5 = "UNKNOWN",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 0,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_track2_inside_session2_leadin.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 62385,
|
|
MD5 = "4e797aa5dedaac71a0e67ebd9ac9d555",
|
|
LongMD5 = "311d641c93a3fe1dfae7deb3a2be28c7",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 25499,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 25500,
|
|
End = 25538,
|
|
Pregap = 0,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 2,
|
|
Start = 36789,
|
|
End = 62384,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
}
|
|
}
|
|
},
|
|
new OpticalImageTestExpected
|
|
{
|
|
TestFile = "test_track2_inside_track1.B5T",
|
|
MediaType = MediaType.CDR,
|
|
Sectors = 0,
|
|
MD5 = "UNKNOWN",
|
|
LongMD5 = "UNKNOWN",
|
|
Tracks = new[]
|
|
{
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 0,
|
|
End = 13349,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 13350,
|
|
End = 25538,
|
|
Pregap = 0,
|
|
Flags = 4
|
|
},
|
|
new TrackInfoTestExpected
|
|
{
|
|
Session = 1,
|
|
Start = 36939,
|
|
End = 62384,
|
|
Pregap = 150,
|
|
Flags = 4
|
|
}
|
|
}
|
|
},
|
|
*/
|
|
|
|
#endregion
|
|
};
|
|
} |