Browse Source

Fixed old runtimes remote executor tests

pull/1864/head
Dmitry Pentin 4 years ago
parent
commit
364bbbb5f7
  1. 2
      shared-infrastructure
  2. 20
      tests/ImageSharp.Tests/Formats/Jpg/JpegColorConverterTests.cs

2
shared-infrastructure

@ -1 +1 @@
Subproject commit a042aba176cdb840d800c6ed4cfe41a54fb7b1e3 Subproject commit 59ce17f5a4e1f956811133f41add7638e74c2836

20
tests/ImageSharp.Tests/Formats/Jpg/JpegColorConverterTests.cs

@ -24,12 +24,18 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
private const int TestBufferLength = 40; private const int TestBufferLength = 40;
private static readonly ApproximateColorSpaceComparer ColorSpaceComparer = new(epsilon: Precision); #if SUPPORTS_RUNTIME_INTRINSICS
private static readonly HwIntrinsics IntrinsicsConfig = HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX;
#else
private static readonly HwIntrinsics IntrinsicsConfig = HwIntrinsics.AllowAll;
#endif
public static readonly TheoryData<int> Seeds = new() { 1, 2, 3 }; private static readonly ApproximateColorSpaceComparer ColorSpaceComparer = new(epsilon: Precision);
private static readonly ColorSpaceConverter ColorSpaceConverter = new(); private static readonly ColorSpaceConverter ColorSpaceConverter = new();
public static readonly TheoryData<int> Seeds = new() { 1, 2, 3 };
public JpegColorConverterTests(ITestOutputHelper output) public JpegColorConverterTests(ITestOutputHelper output)
{ {
this.Output = output; this.Output = output;
@ -107,7 +113,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
FeatureTestRunner.RunWithHwIntrinsicsFeature( FeatureTestRunner.RunWithHwIntrinsicsFeature(
RunTest, RunTest,
seed, seed,
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX); IntrinsicsConfig);
static void RunTest(string arg) => static void RunTest(string arg) =>
ValidateConversion( ValidateConversion(
@ -144,7 +150,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
FeatureTestRunner.RunWithHwIntrinsicsFeature( FeatureTestRunner.RunWithHwIntrinsicsFeature(
RunTest, RunTest,
seed, seed,
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX); IntrinsicsConfig);
static void RunTest(string arg) => static void RunTest(string arg) =>
ValidateConversion( ValidateConversion(
@ -181,7 +187,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
FeatureTestRunner.RunWithHwIntrinsicsFeature( FeatureTestRunner.RunWithHwIntrinsicsFeature(
RunTest, RunTest,
seed, seed,
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX); IntrinsicsConfig);
static void RunTest(string arg) => static void RunTest(string arg) =>
ValidateConversion( ValidateConversion(
@ -218,7 +224,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
FeatureTestRunner.RunWithHwIntrinsicsFeature( FeatureTestRunner.RunWithHwIntrinsicsFeature(
RunTest, RunTest,
seed, seed,
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX); IntrinsicsConfig);
static void RunTest(string arg) => static void RunTest(string arg) =>
ValidateConversion( ValidateConversion(
@ -255,7 +261,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
FeatureTestRunner.RunWithHwIntrinsicsFeature( FeatureTestRunner.RunWithHwIntrinsicsFeature(
RunTest, RunTest,
seed, seed,
HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX); IntrinsicsConfig);
static void RunTest(string arg) => static void RunTest(string arg) =>
ValidateConversion( ValidateConversion(

Loading…
Cancel
Save