diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props
index ac5b635962..d696acf0f2 100644
--- a/tests/Directory.Build.props
+++ b/tests/Directory.Build.props
@@ -18,6 +18,7 @@
..\ImageSharp.Tests.ruleset
+ true
diff --git a/tests/Directory.Build.targets b/tests/Directory.Build.targets
index 4e1b9503e1..c05384fcce 100644
--- a/tests/Directory.Build.targets
+++ b/tests/Directory.Build.targets
@@ -21,7 +21,7 @@
-
+
@@ -32,7 +32,7 @@
-
+
diff --git a/tests/ImageSharp.Tests/ImageSharp.Tests.csproj b/tests/ImageSharp.Tests/ImageSharp.Tests.csproj
index c6cf347518..a6197b6009 100644
--- a/tests/ImageSharp.Tests/ImageSharp.Tests.csproj
+++ b/tests/ImageSharp.Tests/ImageSharp.Tests.csproj
@@ -4,7 +4,7 @@
True
SixLabors.ImageSharp.Tests
- AnyCPU;x64;x86
+ AnyCPU;x64;x86;ARM64
SixLabors.ImageSharp.Tests
Debug;Release
diff --git a/tests/ImageSharp.Tests/TestUtilities/ImageComparison/Exceptions/ImageDifferenceIsOverThresholdException.cs b/tests/ImageSharp.Tests/TestUtilities/ImageComparison/Exceptions/ImageDifferenceIsOverThresholdException.cs
index 33b7228aed..5cc6d22695 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ImageComparison/Exceptions/ImageDifferenceIsOverThresholdException.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ImageComparison/Exceptions/ImageDifferenceIsOverThresholdException.cs
@@ -50,7 +50,7 @@ public class ImageDifferenceIsOverThresholdException : ImagesSimilarityException
return "MacOS";
}
- if (TestEnvironment.IsMacOS)
+ if (TestEnvironment.IsLinux)
{
return "Linux";
}
diff --git a/tests/ImageSharp.Tests/TestUtilities/TestEnvironment.cs b/tests/ImageSharp.Tests/TestUtilities/TestEnvironment.cs
index 113429ead7..8818830351 100644
--- a/tests/ImageSharp.Tests/TestUtilities/TestEnvironment.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/TestEnvironment.cs
@@ -117,6 +117,10 @@ public static partial class TestEnvironment
internal static bool IsFramework => NetCoreVersion == null;
+ internal static Architecture OSArchitecture => RuntimeInformation.OSArchitecture;
+
+ internal static Architecture ProcessArchitecture => RuntimeInformation.ProcessArchitecture;
+
///
/// A dummy operation to enforce the execution of the static constructor.
///
diff --git a/tests/ImageSharp.Tests/runtimeconfig.template.json b/tests/ImageSharp.Tests/runtimeconfig.template.json
new file mode 100644
index 0000000000..4201c8a4ab
--- /dev/null
+++ b/tests/ImageSharp.Tests/runtimeconfig.template.json
@@ -0,0 +1,5 @@
+{
+ "configProperties": {
+ "System.Drawing.EnableUnixSupport": true
+ }
+}
\ No newline at end of file