summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-08-11 13:17:05 +0100
committerVincent Sanders <vince@kyllikki.org>2016-08-11 13:17:05 +0100
commitb017792feaa0c28ef22d0d60e11612846e8e1db5 (patch)
treefc3e104907e00cb7daefe5918292c563f5f48ff9
parentb0e4d39dc3be430670148262efbc0226b97448a6 (diff)
downloadlibnsbmp-b017792feaa0c28ef22d0d60e11612846e8e1db5.tar.gz
libnsbmp-b017792feaa0c28ef22d0d60e11612846e8e1db5.tar.bz2
add tests for problematic bitmaps
mantis 2446 has a problematic bitmap we can use to test with
-rw-r--r--test/bmp/mantis-2446.bmpbin0 -> 1684 bytes
-rwxr-xr-xtest/runtest.sh7
2 files changed, 7 insertions, 0 deletions
diff --git a/test/bmp/mantis-2446.bmp b/test/bmp/mantis-2446.bmp
new file mode 100644
index 0000000..d1e8886
--- /dev/null
+++ b/test/bmp/mantis-2446.bmp
Binary files differ
diff --git a/test/runtest.sh b/test/runtest.sh
index 4ac3302..23d792e 100755
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -17,10 +17,17 @@ icodecode()
${TEST_PATH}/test_decode_ico ${1} > ${TEST_OUT}/${OUTF}.ppm
}
+# standard bitmap suite
for BMP in $(ls test/bmpsuite/*.bmp);do
bmpdecode ${BMP}
done
+# test bitmaps
+for ICO in $(ls test/bmp/*.bmp);do
+ bmpdecode ${ICO}
+done
+
+# test icons
for ICO in $(ls test/icons/*.ico);do
icodecode ${ICO}
done