// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : Atari.cs // Author(s) : Natalia Portillo // // 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 . // // ---------------------------------------------------------------------------- // Copyright © 2011-2021 Natalia Portillo // ****************************************************************************/ using System.IO; using Aaru.CommonTypes; using NUnit.Framework; namespace Aaru.Tests.Partitions { [TestFixture] public class Atari : PartitionSchemeTest { public override string DataFolder => Path.Combine(Consts.TEST_FILES_ROOT, "Partitioning schemes", "Atari ST"); public override PartitionTest[] Tests => new[] { new PartitionTest { TestFile = "linux_ahdi.aif", Partitions = new[] { new Partition { Length = 61440, Offset = 512, Sequence = 0, Size = 31457280, Start = 1, Type = "GEM" }, new Partition { Length = 81920, Offset = 31457792, Sequence = 1, Size = 41943040, Start = 61441, Type = "BGM" }, new Partition { Length = 110161, Offset = 73400832, Sequence = 2, Size = 56402432, Start = 143361, Type = "LNX" }, new Partition { Length = 84400, Offset = 129803264, Sequence = 3, Size = 43212800, Start = 253522, Type = "MAC" }, new Partition { Length = 112640, Offset = 173016064, Sequence = 4, Size = 57671680, Start = 337922, Type = "MIX" }, new Partition { Length = 122880, Offset = 230687744, Sequence = 5, Size = 62914560, Start = 450562, Type = "MNX" }, new Partition { Length = 143360, Offset = 293602304, Sequence = 6, Size = 73400320, Start = 573442, Type = "RAW" }, new Partition { Length = 153600, Offset = 367002624, Sequence = 7, Size = 78643200, Start = 716802, Type = "SWP" }, new Partition { Length = 2048, Offset = 445645824, Sequence = 8, Size = 1048576, Start = 870402, Type = "UNX" }, new Partition { Length = 151550, Offset = 446694400, Sequence = 9, Size = 77593600, Start = 872450, Type = "LNX" } } }, new PartitionTest { TestFile = "linux_icd.aif", Partitions = new[] { new Partition { Length = 30720, Offset = 512, Sequence = 0, Size = 15728640, Start = 1, Type = "GEM" }, new Partition { Length = 40960, Offset = 15729152, Sequence = 1, Size = 20971520, Start = 30721, Type = "UNX" }, new Partition { Length = 61440, Offset = 36700672, Sequence = 2, Size = 31457280, Start = 71681, Type = "LNX" }, new Partition { Length = 81920, Offset = 68157952, Sequence = 3, Size = 41943040, Start = 133121, Type = "BGM" }, new Partition { Length = 102400, Offset = 110100992, Sequence = 4, Size = 52428800, Start = 215041, Type = "MAC" }, new Partition { Length = 122880, Offset = 162529792, Sequence = 5, Size = 62914560, Start = 317441, Type = "MIX" }, new Partition { Length = 163840, Offset = 225444352, Sequence = 6, Size = 83886080, Start = 440321, Type = "SWP" }, new Partition { Length = 202752, Offset = 309330432, Sequence = 7, Size = 103809024, Start = 604161, Type = "MNX" }, new Partition { Length = 204800, Offset = 413139456, Sequence = 8, Size = 104857600, Start = 806913, Type = "LNX" } } }, new PartitionTest { TestFile = "tos_1.04.aif", Partitions = new[] { new Partition { Length = 14336, Offset = 1024, Sequence = 0, Size = 7340032, Start = 2, Type = "GEM" }, new Partition { Length = 14336, Offset = 7341056, Sequence = 1, Size = 7340032, Start = 14338, Type = "GEM" }, new Partition { Length = 14336, Offset = 14681088, Sequence = 2, Size = 7340032, Start = 28674, Type = "GEM" }, new Partition { Length = 14334, Offset = 22021120, Sequence = 3, Size = 7339008, Start = 43010, Type = "GEM" } } } }; } }