Files
Aaru/Aaru.Tests/Partitions/SGI.cs

219 lines
7.0 KiB
C#
Raw Permalink Normal View History

2017-07-27 01:14:39 +01:00
// /***************************************************************************
2020-07-25 02:01:36 +01:00
// Aaru Data Preservation Suite
2017-07-27 01:14:39 +01:00
// ----------------------------------------------------------------------------
//
2017-07-27 01:27:19 +01:00
// Filename : SGI.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
2017-07-27 01:14:39 +01:00
//
2020-07-25 02:01:36 +01:00
// Component : Aaru unit testing.
2017-07-27 01:14:39 +01:00
//
// --[ 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
2017-07-27 01:14:39 +01:00
// ****************************************************************************/
2017-07-27 01:14:39 +01:00
using System.IO;
2020-02-27 00:33:26 +00:00
using Aaru.CommonTypes;
2017-07-27 01:14:39 +01:00
using NUnit.Framework;
namespace Aaru.Tests.Partitions;
2022-03-06 13:29:38 +00:00
[TestFixture]
public class Sgi : PartitionSchemeTest
2017-07-27 01:14:39 +01:00
{
2022-11-13 05:48:58 +00:00
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "SGI");
2024-05-01 04:39:38 +01:00
public override PartitionTest[] Tests =>
[
new()
2020-02-29 18:03:35 +00:00
{
2022-03-06 13:29:38 +00:00
TestFile = "linux.aif",
2024-05-01 04:39:38 +01:00
Partitions =
[
2022-03-06 13:29:38 +00:00
new Partition
{
Length = 40961,
Offset = 0,
Sequence = 0,
Size = 0,
Start = 16065,
Type = "XFS"
},
new Partition
{
Length = 61441,
Offset = 0,
Sequence = 1,
Size = 0,
Start = 64260,
Type = "Linux RAID"
},
new Partition
{
Length = 81921,
Offset = 0,
Sequence = 2,
Size = 0,
Start = 128520,
Type = "Track replacements"
},
new Partition
{
Length = 92161,
Offset = 0,
Sequence = 3,
Size = 0,
Start = 224910,
Type = "Sector replacements"
},
new Partition
{
Length = 102401,
Offset = 0,
Sequence = 4,
Size = 0,
Start = 321300,
Type = "Raw data (swap)"
},
new Partition
{
Length = 30721,
Offset = 0,
Sequence = 5,
Size = 0,
Start = 433755,
Type = "4.2BSD Fast File System"
},
new Partition
{
Length = 71681,
Offset = 0,
Sequence = 6,
Size = 0,
Start = 465885,
Type = "UNIX System V"
},
new Partition
{
Length = 10241,
Offset = 0,
Sequence = 7,
Size = 0,
Start = 546210,
Type = "EFS"
},
new Partition
{
Length = 122881,
Offset = 0,
Sequence = 8,
Size = 0,
Start = 562275,
Type = "Logical volume"
},
new Partition
{
Length = 133121,
Offset = 0,
Sequence = 9,
Size = 0,
Start = 690795,
Type = "Raw logical volume"
},
new Partition
{
Length = 51201,
Offset = 0,
Sequence = 10,
Size = 0,
Start = 835380,
Type = "XFS log device"
},
new Partition
{
Length = 30721,
Offset = 0,
Sequence = 11,
Size = 0,
Start = 899640,
Type = "Linux swap"
},
new Partition
{
Length = 6145,
Offset = 0,
Sequence = 12,
Size = 0,
Start = 931770,
Type = "SGI XVM"
},
new Partition
{
Length = 64260,
Offset = 0,
Sequence = 13,
Size = 0,
Start = 947835,
Type = "Linux"
2017-12-21 02:52:12 +00: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 = "parted.aif",
2024-05-01 04:39:38 +01:00
Partitions =
[
2022-03-06 13:29:38 +00:00
new Partition
{
Length = 22528,
Offset = 0,
Sequence = 0,
Size = 0,
Start = 6144,
Type = "Raw data (swap)"
},
new Partition
{
Length = 67584,
Offset = 0,
Sequence = 1,
Size = 0,
Start = 30720,
Type = "Raw data (swap)"
},
new Partition
{
Length = 94208,
Offset = 0,
Sequence = 2,
Size = 0,
Start = 100352,
Type = "Raw data (swap)"
},
new Partition
{
Length = 36864,
Offset = 0,
Sequence = 3,
Size = 0,
Start = 196608,
Type = "XFS"
2017-12-21 02:52:12 +00: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
];
2017-12-19 20:33:03 +00:00
}