aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkye Deving <76892045+skyedeving@users.noreply.github.com>2021-01-07 04:29:49 -0600
committerSkye Deving <76892045+skyedeving@users.noreply.github.com>2021-01-28 11:05:42 -0600
commitcbdeea00109fa8b7bd052653938ac106514c1133 (patch)
treea90f10fda3699bceb1ea1d9129798dfbebb6a52d
parent760d5861604b63b088943552fb70863952fa060e (diff)
Add test resources in and enable tests
-rw-r--r--.github/workflows/cmake.yml4
-rw-r--r--test/missle.pngbin0 -> 55423 bytes
-rw-r--r--test/snackoo.pngbin0 -> 92034 bytes
-rw-r--r--test/test_apng.cpp4
4 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 408e32af..340bc7ea 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 00000000..6f373b45
--- /dev/null
+++ b/test/missle.png
Binary files differ
diff --git a/test/snackoo.png b/test/snackoo.png
new file mode 100644
index 00000000..31577a31
--- /dev/null
+++ b/test/snackoo.png
Binary files differ
diff --git a/test/test_apng.cpp b/test/test_apng.cpp
index 93550b53..20c7e927 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");