mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Remove statfs test as it is test elsewhere.
This commit is contained in:
7
.idea/.idea.Aaru/.idea/vcs.xml
generated
7
.idea/.idea.Aaru/.idea/vcs.xml
generated
@@ -5,13 +5,6 @@
|
|||||||
<inspection_tool class="GraziCommit" enabled="true" level="WARNING" enabled_by_default="true" />
|
<inspection_tool class="GraziCommit" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
</profile>
|
</profile>
|
||||||
</component>
|
</component>
|
||||||
<component name="GithubSharedProjectSettings">
|
|
||||||
<option name="branchProtectionPatterns">
|
|
||||||
<list>
|
|
||||||
<option value="master" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/Aaru.Checksums" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/Aaru.Checksums" vcs="Git" />
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using Aaru.CommonTypes;
|
using Aaru.CommonTypes;
|
||||||
using Aaru.CommonTypes.Interfaces;
|
using Aaru.CommonTypes.Interfaces;
|
||||||
using Aaru.CommonTypes.Structs;
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace Aaru.Tests.Filesystems.CPM
|
namespace Aaru.Tests.Filesystems.CPM
|
||||||
@@ -53,16 +52,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
Sectors = 360,
|
Sectors = 360,
|
||||||
SectorSize = 512,
|
SectorSize = 512,
|
||||||
Clusters = 171,
|
Clusters = 171,
|
||||||
ClusterSize = 1024,
|
ClusterSize = 1024
|
||||||
Info = new Aaru.CommonTypes.Structs.FileSystemInfo()
|
|
||||||
{
|
|
||||||
Blocks = 172,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 38,
|
|
||||||
FreeBlocks = 134,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
new FileSystemTest
|
new FileSystemTest
|
||||||
{
|
{
|
||||||
@@ -72,16 +62,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
Sectors = 360,
|
Sectors = 360,
|
||||||
SectorSize = 512,
|
SectorSize = 512,
|
||||||
Clusters = 171,
|
Clusters = 171,
|
||||||
ClusterSize = 1024,
|
ClusterSize = 1024
|
||||||
Info = new Aaru.CommonTypes.Structs.FileSystemInfo()
|
|
||||||
{
|
|
||||||
Blocks = 172,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 64,
|
|
||||||
FreeBlocks = 108,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
new FileSystemTest
|
new FileSystemTest
|
||||||
{
|
{
|
||||||
@@ -92,16 +73,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
Bootable = true,
|
Bootable = true,
|
||||||
Clusters = 171,
|
Clusters = 171,
|
||||||
ClusterSize = 1024
|
ClusterSize = 1024
|
||||||
,
|
},
|
||||||
Info = new Aaru.CommonTypes.Structs.FileSystemInfo()
|
|
||||||
{
|
|
||||||
Blocks = 172,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 38,
|
|
||||||
FreeBlocks = 134,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"
|
|
||||||
}},
|
|
||||||
new FileSystemTest
|
new FileSystemTest
|
||||||
{
|
{
|
||||||
TestFile = "system_files.imd",
|
TestFile = "system_files.imd",
|
||||||
@@ -110,16 +82,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
SectorSize = 512,
|
SectorSize = 512,
|
||||||
Bootable = true,
|
Bootable = true,
|
||||||
Clusters = 171,
|
Clusters = 171,
|
||||||
ClusterSize = 1024,
|
ClusterSize = 1024
|
||||||
Info = new Aaru.CommonTypes.Structs.FileSystemInfo()
|
|
||||||
{
|
|
||||||
Blocks = 172,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 64,
|
|
||||||
FreeBlocks = 108,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using Aaru.CommonTypes;
|
using Aaru.CommonTypes;
|
||||||
using Aaru.CommonTypes.Interfaces;
|
using Aaru.CommonTypes.Interfaces;
|
||||||
using Aaru.CommonTypes.Structs;
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace Aaru.Tests.Filesystems.CPM
|
namespace Aaru.Tests.Filesystems.CPM
|
||||||
@@ -53,13 +52,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
SectorSize = 512,
|
SectorSize = 512,
|
||||||
Bootable = true,
|
Bootable = true,
|
||||||
Clusters = 194,
|
Clusters = 194,
|
||||||
ClusterSize = 1024,
|
ClusterSize = 1024
|
||||||
Info = new Aaru.CommonTypes.Structs.FileSystemInfo(){Blocks = 195,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 38,
|
|
||||||
FreeBlocks = 157,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"}
|
|
||||||
},
|
},
|
||||||
new FileSystemTest
|
new FileSystemTest
|
||||||
{
|
{
|
||||||
@@ -69,13 +62,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
SectorSize = 512,
|
SectorSize = 512,
|
||||||
Bootable = true,
|
Bootable = true,
|
||||||
Clusters = 194,
|
Clusters = 194,
|
||||||
ClusterSize = 1024,
|
ClusterSize = 1024
|
||||||
Info = new Aaru.CommonTypes.Structs.FileSystemInfo(){Blocks = 195,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 38,
|
|
||||||
FreeBlocks = 157,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,15 +53,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
SectorSize = 256,
|
SectorSize = 256,
|
||||||
Bootable = true,
|
Bootable = true,
|
||||||
Clusters = 316,
|
Clusters = 316,
|
||||||
ClusterSize = 2048, Info =new Aaru.CommonTypes.Structs.FileSystemInfo
|
ClusterSize = 2048
|
||||||
{
|
|
||||||
Blocks = 317,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 38,
|
|
||||||
FreeBlocks = 279,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
new FileSystemTest
|
new FileSystemTest
|
||||||
{
|
{
|
||||||
@@ -71,15 +63,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
SectorSize = 256,
|
SectorSize = 256,
|
||||||
Bootable = true,
|
Bootable = true,
|
||||||
Clusters = 316,
|
Clusters = 316,
|
||||||
ClusterSize = 2048, Info =new Aaru.CommonTypes.Structs.FileSystemInfo
|
ClusterSize = 2048
|
||||||
{
|
|
||||||
Blocks = 317,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 128,
|
|
||||||
FreeBlocks = 189,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,15 +52,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
SectorSize = 512,
|
SectorSize = 512,
|
||||||
Bootable = true,
|
Bootable = true,
|
||||||
Clusters = 189,
|
Clusters = 189,
|
||||||
ClusterSize = 1024, Info =new Aaru.CommonTypes.Structs.FileSystemInfo
|
ClusterSize = 1024
|
||||||
{
|
|
||||||
Blocks = 190,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 38,
|
|
||||||
FreeBlocks = 152,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
new FileSystemTest
|
new FileSystemTest
|
||||||
{
|
{
|
||||||
@@ -70,15 +62,7 @@ namespace Aaru.Tests.Filesystems.CPM
|
|||||||
SectorSize = 512,
|
SectorSize = 512,
|
||||||
Bootable = true,
|
Bootable = true,
|
||||||
Clusters = 189,
|
Clusters = 189,
|
||||||
ClusterSize = 1024, Info =new Aaru.CommonTypes.Structs.FileSystemInfo
|
ClusterSize = 1024
|
||||||
{
|
|
||||||
Blocks = 190,
|
|
||||||
FilenameLength = 11,
|
|
||||||
Files = 64,
|
|
||||||
FreeBlocks = 126,
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "CP/M filesystem"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ using Aaru.CommonTypes;
|
|||||||
using Aaru.CommonTypes.Interfaces;
|
using Aaru.CommonTypes.Interfaces;
|
||||||
using Aaru.Filesystems;
|
using Aaru.Filesystems;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using FileSystemInfo = Aaru.CommonTypes.Structs.FileSystemInfo;
|
|
||||||
|
|
||||||
// ReSharper disable StringLiteralTypo
|
// ReSharper disable StringLiteralTypo
|
||||||
|
|
||||||
@@ -57,22 +56,7 @@ namespace Aaru.Tests.Filesystems.FATX
|
|||||||
Clusters = 1960,
|
Clusters = 1960,
|
||||||
ClusterSize = 16384,
|
ClusterSize = 16384,
|
||||||
VolumeName = "Volume láb€l",
|
VolumeName = "Volume láb€l",
|
||||||
VolumeSerial = "4639B7D0",
|
VolumeSerial = "4639B7D0"
|
||||||
Info = new FileSystemInfo
|
|
||||||
{
|
|
||||||
Blocks = 1960,
|
|
||||||
FilenameLength = 42,
|
|
||||||
Files = 0,
|
|
||||||
FreeBlocks = 0,
|
|
||||||
FreeFiles = 0,
|
|
||||||
Type = "Xbox FAT",
|
|
||||||
Id =
|
|
||||||
{
|
|
||||||
IsInt = true,
|
|
||||||
Serial32 = 0x58544146
|
|
||||||
},
|
|
||||||
PluginId = Plugin.Id
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ using Aaru.CommonTypes;
|
|||||||
using Aaru.CommonTypes.Interfaces;
|
using Aaru.CommonTypes.Interfaces;
|
||||||
using Aaru.Filesystems;
|
using Aaru.Filesystems;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using FileSystemInfo = Aaru.CommonTypes.Structs.FileSystemInfo;
|
|
||||||
|
|
||||||
namespace Aaru.Tests.Filesystems.FATX
|
namespace Aaru.Tests.Filesystems.FATX
|
||||||
{
|
{
|
||||||
@@ -56,22 +55,7 @@ namespace Aaru.Tests.Filesystems.FATX
|
|||||||
Clusters = 14848,
|
Clusters = 14848,
|
||||||
ClusterSize = 16384,
|
ClusterSize = 16384,
|
||||||
VolumeName = "",
|
VolumeName = "",
|
||||||
VolumeSerial = "66C2E9D0",
|
VolumeSerial = "66C2E9D0"
|
||||||
Info = new FileSystemInfo
|
|
||||||
{
|
|
||||||
Blocks = 14848,
|
|
||||||
FilenameLength = 42,
|
|
||||||
Files = 0,
|
|
||||||
FreeBlocks = 0,
|
|
||||||
FreeFiles = 0,
|
|
||||||
Id =
|
|
||||||
{
|
|
||||||
IsInt = true,
|
|
||||||
Serial32 = 1481916742
|
|
||||||
},
|
|
||||||
PluginId = Plugin.Id,
|
|
||||||
Type = "Xbox 360 FAT"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ using Newtonsoft.Json;
|
|||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using FileAttributes = Aaru.CommonTypes.Structs.FileAttributes;
|
using FileAttributes = Aaru.CommonTypes.Structs.FileAttributes;
|
||||||
using FileSystemInfo = Aaru.CommonTypes.Structs.FileSystemInfo;
|
|
||||||
|
|
||||||
namespace Aaru.Tests.Filesystems
|
namespace Aaru.Tests.Filesystems
|
||||||
{
|
{
|
||||||
@@ -109,12 +108,6 @@ namespace Aaru.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreEqual(Errno.NoError, ret, $"Unmountable: {testFile}");
|
Assert.AreEqual(Errno.NoError, ret, $"Unmountable: {testFile}");
|
||||||
|
|
||||||
ret = fs.StatFs(out FileSystemInfo stat);
|
|
||||||
|
|
||||||
Assert.AreEqual(Errno.NoError, ret, $"Unexpected error retrieving filesystem stats for {testFile}");
|
|
||||||
|
|
||||||
stat.Should().BeEquivalentTo(test.Info, $"Incorrect filesystem stats for {testFile}");
|
|
||||||
|
|
||||||
var serializer = new JsonSerializer
|
var serializer = new JsonSerializer
|
||||||
{
|
{
|
||||||
Formatting = Formatting.Indented,
|
Formatting = Formatting.Indented,
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ namespace Aaru.Tests
|
|||||||
public Dictionary<string, FileData> Contents;
|
public Dictionary<string, FileData> Contents;
|
||||||
public string ContentsJson;
|
public string ContentsJson;
|
||||||
public Encoding Encoding;
|
public Encoding Encoding;
|
||||||
public FileSystemInfo Info;
|
|
||||||
public string Namespace;
|
public string Namespace;
|
||||||
/// <summary>System or OEM ID</summary>
|
/// <summary>System or OEM ID</summary>
|
||||||
public string SystemId;
|
public string SystemId;
|
||||||
|
|||||||
Reference in New Issue
Block a user