summaryrefslogtreecommitdiff
path: root/tests/tiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-02-23 17:31:41 -0500
committerMike Frysinger <vapier@gentoo.org>2017-02-23 17:31:41 -0500
commit00bbb69cc3fd7223e9fc7f01dd3d87c2956de93b (patch)
tree9dc2e61d2257ace0f2a00b0099e7e10e5415a6fe /tests/tiff
parent12a0f039b39b2b502e30509e6e71913e64c70463 (diff)
downloadlibgd-00bbb69cc3fd7223e9fc7f01dd3d87c2956de93b.tar.gz
tests: add more checks for libpng (and other deps)
This fixes #382.
Diffstat (limited to 'tests/tiff')
-rw-r--r--tests/tiff/CMakeLists.txt5
-rw-r--r--tests/tiff/Makemodule.am6
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/tiff/CMakeLists.txt b/tests/tiff/CMakeLists.txt
index 8e542e6..b1ce8a8 100644
--- a/tests/tiff/CMakeLists.txt
+++ b/tests/tiff/CMakeLists.txt
@@ -4,8 +4,13 @@ LIST(APPEND TESTS_FILES
tiff_invalid_read
tiff_null
tiff_dpi
+)
+
+IF(PNG_FOUND)
+LIST(APPEND TESTS_FILES
tiff_read_bw
)
+ENDIF(PNG_FOUND)
ENDIF(TIFF_FOUND)
ADD_GD_TESTS()
diff --git a/tests/tiff/Makemodule.am b/tests/tiff/Makemodule.am
index 2a88d68..a136439 100644
--- a/tests/tiff/Makemodule.am
+++ b/tests/tiff/Makemodule.am
@@ -3,9 +3,13 @@ libgd_test_programs += \
tiff/tiff_dpi \
tiff/tiff_im2im \
tiff/tiff_invalid_read \
- tiff/tiff_null \
+ tiff/tiff_null
+
+if HAVE_LIBPNG
+libgd_test_programs += \
tiff/tiff_read_bw
endif
+endif
EXTRA_DIST += \
tiff/CMakeLists.txt \