diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 408e32a..340bc7e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -75,4 +75,6 @@ jobs: working-directory: ${{github.workspace}}/build/test shell: bash # Skipping tests for bass since no audio device - run: QT_QPA_PLATFORM=offscreen ./test ~[bass] ~[noci] + run: | + ln -s ../../test/*.png . + QT_QPA_PLATFORM=offscreen ./test ~[bass] ~[noci] diff --git a/test/missle.png b/test/missle.png new file mode 100644 index 0000000..6f373b4 Binary files /dev/null and b/test/missle.png differ diff --git a/test/snackoo.png b/test/snackoo.png new file mode 100644 index 0000000..31577a3 Binary files /dev/null and b/test/snackoo.png differ diff --git a/test/test_apng.cpp b/test/test_apng.cpp index 93550b5..20c7e92 100644 --- a/test/test_apng.cpp +++ b/test/test_apng.cpp @@ -19,7 +19,7 @@ TEST_CASE("Support APNG Plugin", "[apng]") { REQUIRE(QImageReader::supportedImageFormats().contains("apng")); } -TEST_CASE("Detect png animation", "[apng][noci]") { +TEST_CASE("Detect png animation", "[apng]") { // Required for QPixmap methods int argc = 1; char bin[] = "test"; @@ -51,7 +51,7 @@ TEST_CASE("Detect png animation", "[apng][noci]") { } SECTION("Detect png frame has no animation") { - reader.setFileName("snackoo-frame.png"); + reader.setFileName("missle.png"); reader.setFormat("apng"); REQUIRE(!reader.supportsAnimation()); reader.setFormat("png");