Files
Aaru/Aaru.Tests/Filesystems/LisaFS.cs

223 lines
7.4 KiB
C#
Raw Permalink Normal View History

2017-07-05 06:54:50 +01:00
// /***************************************************************************
2020-07-25 02:01:36 +01:00
// Aaru Data Preservation Suite
2017-07-05 06:54:50 +01:00
// ----------------------------------------------------------------------------
//
// Filename : LisaFS.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
2017-07-05 06:54:50 +01:00
//
2020-07-25 02:01:36 +01:00
// Component : Aaru unit testing.
2017-07-05 06:54:50 +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-05 06:54:50 +01:00
// ****************************************************************************/
2017-07-05 06:55:25 +01:00
using System.IO;
2020-02-27 00:33:26 +00:00
using Aaru.CommonTypes;
using Aaru.CommonTypes.Interfaces;
using Aaru.Filesystems;
2017-07-05 06:55:25 +01:00
using NUnit.Framework;
namespace Aaru.Tests.Filesystems;
2022-03-06 13:29:38 +00:00
[TestFixture]
2023-10-04 08:29:56 +01:00
public class LisaFs() : ReadOnlyFilesystemTest("lisafs")
2017-07-05 06:54:50 +01:00
{
2022-11-13 05:48:58 +00:00
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple Lisa filesystem");
2022-03-07 07:36:44 +00:00
public override IFilesystem Plugin => new LisaFS();
public override bool Partitions => false;
2024-05-01 04:39:38 +01:00
public override FileSystemTest[] Tests =>
[
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "166files.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "166Files",
VolumeSerial = "A23703A202010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "222files.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "222Files",
VolumeSerial = "A23703A201010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "blank2.0.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 792,
ClusterSize = 512,
VolumeName = "AOS 4:59 pm 10/02/87",
VolumeSerial = "A32D261301010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "blank-disk.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CB48D01010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "file-with-a-password.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CC3A702010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "tfwdndrc-has-been-erased.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CB48D14010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "tfwdndrc-has-been-restored.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CB48D14010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "three-empty-folders.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CB48D01010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "three-folders-with-differently-named-docs.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CB48D01010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "three-folders-with-differently-named-docs-root-alphabetical.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CB48D01010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "three-folders-with-differently-named-docs-root-chronological.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CB48D01010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "three-folders-with-identically-named-docs.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A22CB48D01010663"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "lisafs1.dc42.lz",
MediaType = MediaType.AppleFileWare,
Sectors = 1702,
SectorSize = 512,
Clusters = 1684,
ClusterSize = 512,
VolumeName = "AOS 4:15 pm 5/06/1983",
VolumeSerial = "9924151E190001E1"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "lisafs2.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 792,
ClusterSize = 512,
VolumeName = "Office System 1 2.0",
VolumeSerial = "9497F10016010D10"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "lisafs3.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "Office System 1 3.0",
VolumeSerial = "9CF9CF89070100A8"
},
new()
2022-03-06 13:29:38 +00:00
{
TestFile = "lisafs3_with_desktop.dc42.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
Clusters = 800,
ClusterSize = 512,
VolumeName = "AOS 3.0",
VolumeSerial = "A4FE1A191F011652"
}
2024-05-01 04:39:38 +01:00
];
2017-12-19 20:33:03 +00:00
}