Files
Aaru/Aaru.Tests/Images/BlindWrite7.cs

153 lines
5.3 KiB
C#
Raw Normal View History

2021-01-09 03:16:55 +00:00
// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : BlindWrite6.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/>.
//
// ----------------------------------------------------------------------------
2024-12-19 10:45:18 +00:00
// Copyright © 2011-2025 Natalia Portillo
2021-01-09 03:16:55 +00:00
// ****************************************************************************/
using System.IO;
using Aaru.CommonTypes;
using Aaru.CommonTypes.Interfaces;
2021-01-09 03:16:55 +00:00
using NUnit.Framework;
namespace Aaru.Tests.Images;
2022-03-06 13:29:38 +00:00
[TestFixture]
public class BlindWrite7 : OpticalMediaImageTest
2021-01-09 03:16:55 +00:00
{
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Media image formats", "BlindWrite 7");
public override IMediaImage Plugin => new Aaru.Images.BlindWrite5();
2021-01-09 03:16:55 +00:00
2024-05-01 04:39:38 +01:00
public override OpticalImageTestExpected[] Tests =>
[
new()
2021-01-09 03:16:55 +00:00
{
2022-03-06 13:29:38 +00:00
TestFile = "report_cdr.B6T",
MediaType = MediaType.CDR,
Sectors = 254265,
SectorSize = 2048,
2022-03-15 01:37:37 +00:00
Md5 = "86b8a763ef6522fccf97f743d7bf4fa3",
LongMd5 = "a292359cce05849dec1d06ae471ecf9e",
2024-05-01 04:39:38 +01:00
Tracks =
[
2022-03-06 13:29:38 +00:00
new TrackInfoTestExpected
{
2022-03-06 13:29:38 +00:00
Session = 1,
Start = 0,
End = 254264,
Pregap = 150,
Flags = 4,
Number = 1,
2024-05-01 04:39:38 +01:00
FileSystems =
[
2022-03-06 13:29:38 +00:00
new FileSystemTest
2021-07-09 12:38:46 +01:00
{
2022-03-06 13:29:38 +00:00
Clusters = 63562,
ClusterSize = 8192,
Type = "hfs",
2022-03-06 13:29:38 +00:00
VolumeName = "Winpower"
},
new FileSystemTest
{
Clusters = 254265,
ClusterSize = 2048,
Type = "iso9660",
2022-03-06 13:29:38 +00:00
VolumeName = "Winpower"
2021-07-09 12:38:46 +01:00
}
2024-05-01 04:39:38 +01:00
]
}
2024-05-01 04:39:38 +01:00
]
2022-03-06 13:29:38 +00:00
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "report_cdrom.B6T",
MediaType = MediaType.CDROM,
Sectors = 254265,
SectorSize = 2048,
2022-03-15 01:37:37 +00:00
Md5 = "bf4bbec517101d0d6f45d2e4d50cb875",
LongMd5 = "3d3f9cf7d1ba2249b1e7960071e5af46",
2024-05-01 04:39:38 +01:00
Tracks =
[
2022-03-06 13:29:38 +00:00
new TrackInfoTestExpected
{
2022-03-06 13:29:38 +00:00
Session = 1,
Start = 0,
End = 254264,
Pregap = 150,
Flags = 4,
Number = 1,
2024-05-01 04:39:38 +01:00
FileSystems =
[
2022-03-06 13:29:38 +00:00
new FileSystemTest
{
Clusters = 63562,
ClusterSize = 8192,
Type = "hfs",
2022-03-06 13:29:38 +00:00
VolumeName = "Winpower"
},
new FileSystemTest
2021-07-09 12:38:46 +01:00
{
2022-03-06 13:29:38 +00:00
Clusters = 254265,
ClusterSize = 2048,
Type = "iso9660",
2022-03-06 13:29:38 +00:00
VolumeName = "Winpower"
2021-07-09 12:38:46 +01:00
}
2024-05-01 04:39:38 +01:00
]
}
2024-05-01 04:39:38 +01:00
]
2022-03-06 13:29:38 +00:00
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "report_cdrw.B6T",
MediaType = MediaType.CDRW,
Sectors = 308224,
SectorSize = 2048,
2022-03-15 01:37:37 +00:00
Md5 = "1e55aa420ca8f8ea77d5b597c9cfc19b",
LongMd5 = "3af5f943ddb9427d9c63a4ce3b704db9",
2024-05-01 04:39:38 +01:00
Tracks =
[
2022-03-06 13:29:38 +00:00
new TrackInfoTestExpected
{
2022-03-06 13:29:38 +00:00
Session = 1,
Start = 0,
End = 308223,
Pregap = 150,
Flags = 4,
Number = 1,
2024-05-01 04:39:38 +01:00
FileSystems =
[
2022-03-06 13:29:38 +00:00
new FileSystemTest
2021-07-09 12:38:46 +01:00
{
2022-03-06 13:29:38 +00:00
Bootable = true,
Clusters = 308224,
ClusterSize = 2048,
Type = "iso9660",
2022-03-06 13:29:38 +00:00
VolumeName = "ARCH_201901"
2021-07-09 12:38:46 +01:00
}
2024-05-01 04:39:38 +01:00
]
}
2024-05-01 04:39:38 +01:00
]
2022-03-06 13:29:38 +00:00
}
2024-05-01 04:39:38 +01:00
];
2021-01-09 03:16:55 +00:00
}