Browse Source

Use single test, enable runners

js/color-alpha-handling
James Jackson-South 5 years ago
parent
commit
37b0585feb
  1. 32
      .github/workflows/build-and-test.yml
  2. 42
      tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs

32
.github/workflows/build-and-test.yml

@ -14,26 +14,26 @@ jobs:
strategy:
matrix:
options:
# - os: ubuntu-latest
# framework: netcoreapp3.1
# runtime: -x64
# codecov: false
# - os: windows-latest
# framework: netcoreapp3.1
# runtime: -x64
# codecov: true
- os: ubuntu-latest
framework: netcoreapp3.1
runtime: -x64
codecov: false
- os: windows-latest
framework: netcoreapp3.1
runtime: -x64
codecov: true
- os: windows-latest
framework: netcoreapp2.1
runtime: -x64
codecov: false
# - os: windows-latest
# framework: net472
# runtime: -x64
# codecov: false
# - os: windows-latest
# framework: net472
# runtime: -x86
# codecov: false
- os: windows-latest
framework: net472
runtime: -x64
codecov: false
- os: windows-latest
framework: net472
runtime: -x86
codecov: false
runs-on: ${{matrix.options.os}}
if: "!contains(github.event.head_commit.message, '[skip ci]')"

42
tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs

@ -5,7 +5,6 @@
// #define BENCHMARKING
using System;
using System.Diagnostics;
using SixLabors.ImageSharp.Formats.Jpeg.Components;
using SixLabors.ImageSharp.Tests.Formats.Jpg.Utils;
using SixLabors.ImageSharp.Tests.TestUtilities;
@ -162,52 +161,11 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
// PrintLinearData((Span<int>)mirror);
}
[Fact]
public void TransposeIntoFallback()
{
float[] expected = Create8x8FloatData();
ReferenceImplementations.Transpose8x8(expected);
var source = default(Block8x8F);
source.LoadFrom(Create8x8FloatData());
var dest = default(Block8x8F);
source.TransposeIntoFallback(ref dest);
float[] actual = new float[64];
dest.ScaledCopyTo(actual);
Assert.Equal(expected, actual);
}
#if SUPPORTS_RUNTIME_INTRINSICS
[Fact]
public void TransposeIntoAvx()
{
float[] expected = Create8x8FloatData();
ReferenceImplementations.Transpose8x8(expected);
var source = default(Block8x8F);
source.LoadFrom(Create8x8FloatData());
var dest = default(Block8x8F);
source.TransposeIntoAvx(ref dest);
float[] actual = new float[64];
dest.ScaledCopyTo(actual);
Assert.Equal(expected, actual);
}
#endif
[Fact]
public void TransposeInto()
{
static void RunTest()
{
// Just testing this fails in CI. RemoteExecutor is not working on my machine.
Assert.True(false);
float[] expected = Create8x8FloatData();
ReferenceImplementations.Transpose8x8(expected);

Loading…
Cancel
Save