Files
Aaru/Aaru.Tests/Partitions/VTOC.cs

194 lines
6.2 KiB
C#
Raw Normal View History

2017-08-02 13:57:04 +01:00
// /***************************************************************************
2020-07-25 02:01:36 +01:00
// Aaru Data Preservation Suite
2017-08-02 13:57:04 +01:00
// ----------------------------------------------------------------------------
//
2017-08-02 13:57:33 +01:00
// Filename : VTOC.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
2017-08-02 13:57:04 +01:00
//
2020-07-25 02:01:36 +01:00
// Component : Aaru unit testing.
2017-08-02 13:57:04 +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-08-02 13:57:04 +01:00
// ****************************************************************************/
2017-08-02 13:57:04 +01:00
using System.IO;
2020-02-27 00:33:26 +00:00
using Aaru.CommonTypes;
2017-08-02 13:57:04 +01:00
using NUnit.Framework;
namespace Aaru.Tests.Partitions;
2022-03-06 13:29:38 +00:00
[TestFixture]
public class Vtoc : PartitionSchemeTest
2017-08-02 13:57:04 +01:00
{
2022-11-13 05:48:58 +00:00
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "UNIX VTOC");
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 = "att_unix_vtoc.aif",
2024-05-01 04:39:38 +01:00
Partitions =
[
2022-03-06 13:29:38 +00:00
new Partition
{
Length = 34,
Offset = 0,
Sequence = 0,
Size = 0,
Start = 1,
Type = "UNIX: Boot"
},
new Partition
{
Length = 1023119,
Offset = 0,
Sequence = 1,
Size = 0,
Start = 1,
Type = "UNIX: Whole disk"
},
new Partition
{
Length = 253,
Offset = 0,
Sequence = 2,
Size = 0,
Start = 63,
Type = "UNIX: Stand"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 3,
Size = 0,
Start = 378,
Type = "UNIX: /usr"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 4,
Size = 0,
Start = 79002,
Type = "UNIX: /usr"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 5,
Size = 0,
Start = 157626,
Type = "UNIX: /usr"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 6,
Size = 0,
Start = 236250,
Type = "UNIX: /usr"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 7,
Size = 0,
Start = 314874,
Type = "UNIX: /usr"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 8,
Size = 0,
Start = 393498,
Type = "UNIX: /usr"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 9,
Size = 0,
Start = 472122,
Type = "UNIX: /usr"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 10,
Size = 0,
Start = 550746,
Type = "UNIX: /usr"
},
new Partition
{
Length = 78624,
Offset = 0,
Sequence = 11,
Size = 0,
Start = 629370,
Type = "UNIX: /usr"
},
new Partition
{
Length = 76608,
Offset = 0,
Sequence = 12,
Size = 0,
Start = 707994,
Type = "UNIX: /usr"
},
new Partition
{
Length = 77616,
Offset = 0,
Sequence = 13,
Size = 0,
Start = 784602,
Type = "UNIX: /usr"
},
new Partition
{
Length = 75600,
Offset = 0,
Sequence = 14,
Size = 0,
Start = 862218,
Type = "UNIX: /usr"
},
new Partition
{
Length = 84672,
Offset = 0,
Sequence = 15,
Size = 0,
Start = 937818,
Type = "UNIX: /usr"
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
}