mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix location of test files.
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Adler32EmptyFile()
|
public void Adler32EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Adler32Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Adler32Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -89,7 +89,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -102,7 +102,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Adler32RandomFile()
|
public void Adler32RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Adler32Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Adler32Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Crc16EmptyFile()
|
public void Crc16EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = CRC16CCITTContext.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = CRC16CCITTContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -89,7 +89,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -102,7 +102,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Crc16RandomFile()
|
public void Crc16RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = CRC16CCITTContext.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = CRC16CCITTContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Crc32EmptyFile()
|
public void Crc32EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc32Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Crc32Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -89,7 +89,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -102,7 +102,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Crc32RandomFile()
|
public void Crc32RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc32Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Crc32Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Crc64EmptyFile()
|
public void Crc64EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc64Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Crc64Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -89,7 +89,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -102,7 +102,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Crc64RandomFile()
|
public void Crc64RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc64Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Crc64Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Md5EmptyFile()
|
public void Md5EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Md5Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Md5Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -89,7 +89,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -102,7 +102,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Md5RandomFile()
|
public void Md5RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Md5Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Md5Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -65,7 +65,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Sha1EmptyFile()
|
public void Sha1EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Sha1Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Sha1Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -91,7 +91,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -104,7 +104,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Sha1RandomFile()
|
public void Sha1RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Sha1Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Sha1Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -65,7 +65,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Sha256EmptyFile()
|
public void Sha256EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Sha256Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Sha256Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -91,7 +91,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -104,7 +104,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Sha256RandomFile()
|
public void Sha256RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Sha256Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Sha256Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -67,7 +67,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Sha384EmptyFile()
|
public void Sha384EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Sha384Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Sha384Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -93,7 +93,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -106,7 +106,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Sha384RandomFile()
|
public void Sha384RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Sha384Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Sha384Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -69,7 +69,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Sha512EmptyFile()
|
public void Sha512EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Sha512Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Sha512Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -95,7 +95,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -108,7 +108,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
[Test]
|
[Test]
|
||||||
public void Sha512RandomFile()
|
public void Sha512RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Sha512Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Sha512Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -59,7 +59,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -76,7 +76,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
@@ -91,7 +91,7 @@ namespace Aaru.Tests.Checksums
|
|||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
|
|
||||||
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
|
||||||
FileAccess.Read);
|
FileAccess.Read);
|
||||||
|
|
||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
|
|||||||
@@ -30,6 +30,6 @@ namespace Aaru.Tests
|
|||||||
{
|
{
|
||||||
internal static class Consts
|
internal static class Consts
|
||||||
{
|
{
|
||||||
public const string TestFilesRoot = "/mnt/DiscImageChef/tests";
|
public const string TestFilesRoot = "/mnt/DiscImageChef";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Devices
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "devices", "jaz", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Device test dumps", "JAZ", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Devices
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "devices", "ls120", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Device test dumps", "LS-120", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Devices
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "devices", "pocketzip", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Device test dumps", "PocketZIP", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
|
|||||||
@@ -92,8 +92,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "adfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Acorn Advanced Disc Filing System",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -85,8 +85,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "affs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Fast File System",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -155,8 +157,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "affs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Fast File System (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -230,8 +234,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "affs_mbr_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Fast File System (MBR+RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -307,8 +313,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "affs_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Fast File System (RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -80,8 +80,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "affs2_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Fast File System 2 (RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "afs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Acer File System", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -168,8 +168,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "afs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Acer File System (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -85,8 +85,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "aofs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Old File System",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -155,8 +157,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "aofs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Old File System (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -229,8 +233,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "aofs_mbr_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Old File System (MBR+RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -303,8 +309,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "aofs_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Amiga Old File System (RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "atheos_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "AtheOS (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "befs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Be File System", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -166,8 +166,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "befs_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Be File System (APM)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -241,8 +243,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "befs_gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Be File System (GPT)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -315,8 +319,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "befs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Be File System (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -91,8 +91,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "coherent", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "COHERENT filesystem",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -166,8 +168,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "coherent_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "COHERENT filesystem (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "dtfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "DTFS", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -167,7 +167,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "dtfs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "DTFS (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "eafs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "EAFS", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -168,7 +168,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "eafs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "EAFS (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "f2fs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "F2FS", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -2594,7 +2594,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat12", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT12", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -2670,7 +2670,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat12_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT12 (APM)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -2750,7 +2750,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat12_gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT12 (GPT)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -2874,7 +2874,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat12_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT12 (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -2948,7 +2948,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat12_human", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT12 (Human68K)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new D88();
|
IMediaImage image = new D88();
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat16", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT16", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -202,7 +202,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat16_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT16 (APM)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -282,7 +282,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat16_atari", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT16 (Atari)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -363,7 +363,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat16_gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT16 (GPT)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -493,7 +493,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat16_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT16 (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -562,7 +562,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat16_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT16 (RDB)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -642,7 +642,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat16_human", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT16 (Human68K)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat32_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT32 (APM)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -165,7 +165,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat32_gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT32 (GPT)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -261,7 +261,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fat32_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "FAT32 (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
[SetUp]
|
[SetUp]
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fatx16", "le", "fatx.img.lz");
|
location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Xbox FAT16", "le", "fatx.img.lz");
|
||||||
filter = new LZip();
|
filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
image = new ZZZRawImage();
|
image = new ZZZRawImage();
|
||||||
@@ -256,7 +256,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
[SetUp]
|
[SetUp]
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fatx16", "be", "microsoft256mb.img.lz");
|
location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Xbox FAT16", "be", "microsoft256mb.img.lz");
|
||||||
filter = new LZip();
|
filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
image = new ZZZRawImage();
|
image = new ZZZRawImage();
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hammer_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "HAMMER (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFS", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -179,7 +179,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfs_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFS (APM)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -255,8 +255,8 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfs_cdrom", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFS (CD-ROM)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -330,7 +330,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFS (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -404,7 +404,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfs_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFS (RDB)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfsplus_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFS+ (APM)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -177,7 +177,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfsplus_gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFS+ (GPT)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -262,7 +262,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfsplus_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFS+ (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfsx_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFSX (APM)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -167,7 +167,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfsx_gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFSX (GPT)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -249,7 +249,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hfsx_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple HFSX (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -90,8 +90,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hpfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "High Performance File System",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -89,8 +89,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hpofs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems",
|
||||||
IFilter filter = new LZip();
|
"High Performance Optical File System", testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -92,8 +92,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "htfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "High Throughtput File System",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -167,8 +169,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "htfs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems",
|
||||||
IFilter filter = new LZip();
|
"High Throughtput File System (MBR)", testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -417,7 +417,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "iso9660", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "ISO9660", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "jfs2", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "JFS2", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
/*
|
/*
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "hammer_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Log-structured File System", testfiles[i]);
|
||||||
Filter filter = new LZip();
|
Filter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
ImagePlugin image = new VDI();
|
ImagePlugin image = new VDI();
|
||||||
|
|||||||
@@ -104,8 +104,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "lisafs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Apple Lisa filesystem",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new DiskCopy42();
|
IMediaImage image = new DiskCopy42();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "locus", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Locus filesystem", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
|
|||||||
@@ -86,8 +86,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "mfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Macintosh File System",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -81,8 +81,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "minixv1", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "MINIX v1 filesystem",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -144,8 +146,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "minixv1_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "MINIX v1 filesystem (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -219,8 +223,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "minixv2", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "MINIX v2 filesystem",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -282,8 +288,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "minixv2_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "MINIX v2 filesystem (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -356,8 +364,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "minixv3", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "MINIX v3 filesystem",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -419,8 +429,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "minixv3_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "MINIX v3 filesystem (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -80,8 +80,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "nilfs2", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems",
|
||||||
IFilter filter = new LZip();
|
"New Implementation of a Log-structured File System 2", testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -85,8 +85,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ntfs_gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "New Technology File System (GPT)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -168,8 +170,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ntfs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "New Technology File System (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
/*
|
/*
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "nwfs386", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "NetWare File System (32-bit)", testfiles[i]);
|
||||||
Filter filter = new LZip();
|
Filter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
ImagePlugin image = new VDI();
|
ImagePlugin image = new VDI();
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
/*
|
/*
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ocfs2", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Oracle Cluster File System 2", testfiles[i]);
|
||||||
Filter filter = new LZip();
|
Filter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
ImagePlugin image = new VDI();
|
ImagePlugin image = new VDI();
|
||||||
|
|||||||
@@ -85,8 +85,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "pfs3", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Professional File System 3",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -82,8 +82,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "prodos_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "ProDOS filesystem (APM)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "qnx4", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "QNX 4 filesystem", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -133,8 +133,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "qnx4_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "QNX 4 filesystem (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -85,8 +85,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "refs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Resilient File System (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -76,8 +76,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "reiser3", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Reiser filesystem v3",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -79,8 +79,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "reiser4", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Reiser filesystem v4",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -80,8 +80,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "sfs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Smart File System (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -154,8 +156,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "sfs_mbr_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Smart File System (MBR+RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -228,8 +232,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "sfs_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Smart File System (RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -94,8 +94,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "s5fs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "System V filesystem",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -169,8 +171,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "s5fs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "System V filesystem (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -249,8 +253,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "s5fs_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "System V filesystem (RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -110,8 +110,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "udf", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Universal Disc Format",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -190,8 +192,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "udf", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Universal Disc Format",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ufs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "UNIX filesystem", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -171,8 +171,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ufs_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "UNIX filesystem (APM)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -267,8 +269,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ufs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "UNIX filesystem (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -354,8 +358,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ufs_next", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "UNIX filesystem (NeXT)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -437,8 +443,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ufs_next", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "UNIX filesystem (NeXT)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -517,8 +525,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ufs_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "UNIX filesystem (RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -596,8 +606,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ufs_suni86", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "UNIX filesystem (SunOS x86)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "unixbfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Boot File System", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -146,8 +146,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "unixbfs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Boot File System (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
@@ -224,8 +226,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "unixbfs_rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Boot File System (RDB)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "xenix", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "XENIX filesystem", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new ZZZRawImage();
|
IMediaImage image = new ZZZRawImage();
|
||||||
@@ -167,8 +167,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "xenix_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "XENIX filesystem (MBR)",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "xfs_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "XFS", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "xia_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Xia filesystem", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -79,8 +79,10 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "zfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "Zettabyte File System",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "btrfs", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "btrfs", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "exfat_apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "exFAT (APM)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -154,7 +154,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "exfat_gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "exFAT (GPT)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
@@ -229,7 +229,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "exfat_mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "exFAT (MBR)", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "filesystems", "ext2", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "ext2", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ namespace Aaru.Tests.Filters
|
|||||||
|
|
||||||
public AppleDoubleDave()
|
public AppleDoubleDave()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "dave", "DOS_720.dmg");
|
location = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "dave", "DOS_720.dmg");
|
||||||
|
|
||||||
sidecar = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "dave", "resource.frk",
|
sidecar = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "dave", "resource.frk",
|
||||||
"DOS_720.dmg");
|
"DOS_720.dmg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ namespace Aaru.Tests.Filters
|
|||||||
|
|
||||||
public AppleDoubleDos()
|
public AppleDoubleDos()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "dos", "DOS_720.dmg");
|
location = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "dos", "DOS_720.dmg");
|
||||||
sidecar = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "dos", "DOS_720.adf");
|
sidecar = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "dos", "DOS_720.adf");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ namespace Aaru.Tests.Filters
|
|||||||
|
|
||||||
public AppleDoubleNetatalk()
|
public AppleDoubleNetatalk()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "netatalk", "DOS_720.dmg");
|
location = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "netatalk", "DOS_720.dmg");
|
||||||
|
|
||||||
sidecar = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "netatalk", ".AppleDouble",
|
sidecar = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "netatalk", ".AppleDouble",
|
||||||
"DOS_720.dmg");
|
"DOS_720.dmg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ namespace Aaru.Tests.Filters
|
|||||||
|
|
||||||
public AppleDoubleOsX()
|
public AppleDoubleOsX()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "osx", "DOS_720.dmg");
|
location = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "osx", "DOS_720.dmg");
|
||||||
sidecar = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "osx", "._DOS_720.dmg");
|
sidecar = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "osx", "._DOS_720.dmg");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ namespace Aaru.Tests.Filters
|
|||||||
|
|
||||||
public AppleDoubleProDos()
|
public AppleDoubleProDos()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "prodos", "DOS_720.dmg");
|
location = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "prodos", "DOS_720.dmg");
|
||||||
sidecar = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "prodos", "R.DOS_720.dmg");
|
sidecar = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "prodos", "R.DOS_720.dmg");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ namespace Aaru.Tests.Filters
|
|||||||
|
|
||||||
public AppleDoubleUnAr()
|
public AppleDoubleUnAr()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "unar", "DOS_720.dmg");
|
location = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "unar", "DOS_720.dmg");
|
||||||
sidecar = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "unar", "DOS_720.dmg.rsrc");
|
sidecar = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "unar", "DOS_720.dmg.rsrc");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ namespace Aaru.Tests.Filters
|
|||||||
|
|
||||||
public AppleDoubleUnix()
|
public AppleDoubleUnix()
|
||||||
{
|
{
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "unix", "DOS_720.dmg");
|
location = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "unix", "DOS_720.dmg");
|
||||||
sidecar = Path.Combine(Consts.TestFilesRoot, "filters", "appledouble", "unix", "%DOS_720.dmg");
|
sidecar = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleDouble", "unix", "%DOS_720.dmg");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace Aaru.Tests.Filters
|
|||||||
const string EXPECTED_RESOURCE = "a972d27c44193a7587b21416c0953cc3";
|
const string EXPECTED_RESOURCE = "a972d27c44193a7587b21416c0953cc3";
|
||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public AppleSingle() => location = Path.Combine(Consts.TestFilesRoot, "filters", "applesingle", "DOS_720.ASF");
|
public AppleSingle() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "AppleSingle", "DOS_720.ASF");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Aaru.Tests.Filters
|
|||||||
};
|
};
|
||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public BZip2() => location = Path.Combine(Consts.TestFilesRoot, "filters", "bzip2.bz2");
|
public BZip2() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "bzip2.bz2");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Aaru.Tests.Filters
|
|||||||
};
|
};
|
||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public GZip() => location = Path.Combine(Consts.TestFilesRoot, "filters", "gzip.gz");
|
public GZip() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "gzip.gz");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Aaru.Tests.Filters
|
|||||||
};
|
};
|
||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public LZip() => location = Path.Combine(Consts.TestFilesRoot, "filters", "lzip.lz");
|
public LZip() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "lzip.lz");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace Aaru.Tests.Filters
|
|||||||
const string EXPECTED_RESOURCE = "a972d27c44193a7587b21416c0953cc3";
|
const string EXPECTED_RESOURCE = "a972d27c44193a7587b21416c0953cc3";
|
||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public MacBinary1() => location = Path.Combine(Consts.TestFilesRoot, "filters", "macbinary", "macbinary1.bin");
|
public MacBinary1() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "MacBinary", "macbinary1.bin");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace Aaru.Tests.Filters
|
|||||||
const string EXPECTED_RESOURCE = "a972d27c44193a7587b21416c0953cc3";
|
const string EXPECTED_RESOURCE = "a972d27c44193a7587b21416c0953cc3";
|
||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public MacBinary2() => location = Path.Combine(Consts.TestFilesRoot, "filters", "macbinary", "macbinary2.bin");
|
public MacBinary2() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "MacBinary", "macbinary2.bin");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace Aaru.Tests.Filters
|
|||||||
const string EXPECTED_RESOURCE = "a972d27c44193a7587b21416c0953cc3";
|
const string EXPECTED_RESOURCE = "a972d27c44193a7587b21416c0953cc3";
|
||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public MacBinary3() => location = Path.Combine(Consts.TestFilesRoot, "filters", "macbinary", "macbinary3.bin");
|
public MacBinary3() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "MacBinary", "macbinary3.bin");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace Aaru.Tests.Filters
|
|||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public PcExchange() =>
|
public PcExchange() =>
|
||||||
location = Path.Combine(Consts.TestFilesRoot, "filters", "pcexchange", "DC6_RW_DOS_720.img");
|
location = Path.Combine(Consts.TestFilesRoot, "Filters", "PC Exchange", "DC6_RW_DOS_720.img");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
@@ -63,7 +63,7 @@ namespace Aaru.Tests.Filters
|
|||||||
[Test]
|
[Test]
|
||||||
public void CheckCorrectFile()
|
public void CheckCorrectFile()
|
||||||
{
|
{
|
||||||
string result = Md5Context.File(Path.Combine(Consts.TestFilesRoot, "filters", "pcexchange", "FINDER.DAT"),
|
string result = Md5Context.File(Path.Combine(Consts.TestFilesRoot, "Filters", "PC Exchange", "FINDER.DAT"),
|
||||||
out _);
|
out _);
|
||||||
|
|
||||||
Assert.AreEqual(EXPECTED_FILE, result);
|
Assert.AreEqual(EXPECTED_FILE, result);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace Aaru.Tests.Filters
|
|||||||
};
|
};
|
||||||
readonly string location;
|
readonly string location;
|
||||||
|
|
||||||
public Xz() => location = Path.Combine(Consts.TestFilesRoot, "filters", "xz.xz");
|
public Xz() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "xz.xz");
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CheckContents()
|
public void CheckContents()
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ namespace Aaru.Tests.Images
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "images", "2mg", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Media image formats", "2mg", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new DiscImages.Apple2Mg();
|
IMediaImage image = new DiscImages.Apple2Mg();
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace Aaru.Tests.Images
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "images", "anex86", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Media image formats", "Anex86", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new DiscImages.Anex86();
|
IMediaImage image = new DiscImages.Anex86();
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ namespace Aaru.Tests.Images
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "images", "ciscopy", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Media image formats", "CisCopy", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new DiscImages.CisCopy();
|
IMediaImage image = new DiscImages.CisCopy();
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ namespace Aaru.Tests.Images
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "images", "copyqm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Media image formats", "CopyQM", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new DiscImages.CopyQm();
|
IMediaImage image = new DiscImages.CopyQm();
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ namespace Aaru.Tests.Images
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "images", "d88", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Media image formats", "D88", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new DiscImages.D88();
|
IMediaImage image = new DiscImages.D88();
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ namespace Aaru.Tests.Images
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "images", "dart", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Media image formats", "DART", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new DiscImages.D88();
|
IMediaImage image = new DiscImages.D88();
|
||||||
|
|||||||
@@ -41,17 +41,19 @@ namespace Aaru.Tests.Images
|
|||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
// Made with DiskCopy 4.2
|
// Made with DiskCopy 4.2
|
||||||
"dc42/mf1dd_hfs.img.lz", "dc42/mf1dd_mfs.img.lz", "dc42/mf2dd_hfs.img.lz", "dc42/mf2dd_mfs.img.lz",
|
"Made by DiskCopy 4.2/mf1dd_hfs.img.lz", "Made by DiskCopy 4.2/mf1dd_mfs.img.lz",
|
||||||
|
"Made by DiskCopy 4.2/mf2dd_hfs.img.lz", "Made by DiskCopy 4.2/mf2dd_mfs.img.lz",
|
||||||
|
|
||||||
// Made with ShrinkWrap 3
|
// Made with ShrinkWrap 3
|
||||||
"shrinkwrap/DiskCopy 4/DC6_RW_HFS_1440.image.lz", "shrinkwrap/DiskCopy 4/DC6_RW_HFS_800.image.lz",
|
"Made by ShrinkWrap 3/DC6_RW_HFS_1440.image.lz", "Made by ShrinkWrap 3/DC6_RW_HFS_800.image.lz",
|
||||||
"shrinkwrap/DiskCopy 4/DOS1440.image.lz", "shrinkwrap/DiskCopy 4/DOS720.image.lz",
|
"Made by ShrinkWrap 3/DOS1440.image.lz", "Made by ShrinkWrap 3/DOS720.image.lz",
|
||||||
"shrinkwrap/DiskCopy 4/PD1440.image.lz", "shrinkwrap/DiskCopy 4/PD800.image.lz",
|
"Made by ShrinkWrap 3/PD1440.image.lz", "Made by ShrinkWrap 3/PD800.image.lz",
|
||||||
|
|
||||||
// Made with DiskImages.framework
|
// Made with DiskImages.framework
|
||||||
"macosx/DC42/DOS_1440.img.lz", "macosx/DC42/DOS_720.img.lz", "macosx/DC42/HFS_1440.img.lz",
|
"Made by Mac OS X/DOS_1440.img.lz", "Made by Mac OS X/DOS_720.img.lz", "Made by Mac OS X/HFS_1440.img.lz",
|
||||||
"macosx/DC42/HFS_800.img.lz", "macosx/DC42/ProDOS_1440.img.lz", "macosx/DC42/ProDOS_800.img.lz",
|
"Made by Mac OS X/HFS_800.img.lz", "Made by Mac OS X/ProDOS_1440.img.lz",
|
||||||
"macosx/DC42/UFS_1440.img.lz", "macosx/DC42/UFS_720.img.lz", "macosx/DC42/UFS_800.img.lz"
|
"Made by Mac OS X/ProDOS_800.img.lz", "Made by Mac OS X/UFS_1440.img.lz", "Made by Mac OS X/UFS_720.img.lz",
|
||||||
|
"Made by Mac OS X/UFS_800.img.lz"
|
||||||
};
|
};
|
||||||
|
|
||||||
readonly ulong[] sectors =
|
readonly ulong[] sectors =
|
||||||
@@ -90,8 +92,10 @@ namespace Aaru.Tests.Images
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "images", "", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Media image formats", "DiskCopy 4.2",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new DiscImages.DiskCopy42();
|
IMediaImage image = new DiscImages.DiskCopy42();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "acorn", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "Acorn", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -1019,8 +1019,10 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "apm", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "Apple Partition Map",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "atari", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "Atari ST", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -225,8 +225,10 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "bsd", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "BSD slices",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -56,8 +56,7 @@ namespace Aaru.Tests.Partitions
|
|||||||
},
|
},
|
||||||
new Partition
|
new Partition
|
||||||
{
|
{
|
||||||
Description = null, Size = 15728640, Name = "Microsoft basic data",
|
Description = null, Size = 15728640, Name = "Microsoft basic data", Type = "Microsoft Basic data",
|
||||||
Type = "Microsoft Basic data",
|
|
||||||
Offset = 11534336, Length = 30720, Sequence = 1, Start = 22528
|
Offset = 11534336, Length = 30720, Sequence = 1, Start = 22528
|
||||||
},
|
},
|
||||||
new Partition
|
new Partition
|
||||||
@@ -109,8 +108,10 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "gpt", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "GUID Partition Table",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -1214,8 +1214,10 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "mbr", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "Master Boot Record",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "minix", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "MINIX", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "pc98", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "PC-98", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new T98();
|
IMediaImage image = new T98();
|
||||||
|
|||||||
@@ -142,8 +142,10 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "rdb", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "Rigid Disk Block",
|
||||||
IFilter filter = new LZip();
|
testfiles[i]);
|
||||||
|
|
||||||
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "sgi", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "SGI", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "sun", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "Sun", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
|
|||||||
@@ -137,8 +137,8 @@ namespace Aaru.Tests.Partitions
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < testfiles.Length; i++)
|
for(int i = 0; i < testfiles.Length; i++)
|
||||||
{
|
{
|
||||||
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "vtoc", testfiles[i]);
|
string location = Path.Combine(Consts.TestFilesRoot, "Partitioning schemes", "UNIX VTOC", testfiles[i]);
|
||||||
IFilter filter = new LZip();
|
IFilter filter = new LZip();
|
||||||
filter.Open(location);
|
filter.Open(location);
|
||||||
IMediaImage image = new Vdi();
|
IMediaImage image = new Vdi();
|
||||||
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user