summaryrefslogtreecommitdiff
path: root/test/runtest.sh
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-08-13 20:59:44 +0100
committerVincent Sanders <vince@kyllikki.org>2016-08-13 20:59:44 +0100
commitf04838b04eda130197c66a5ccccd9b4420557b95 (patch)
treee314cbd9aded5d1bbe239e8c3031271ab8e4da3c /test/runtest.sh
parent091d1a1f15aab463054f637d6830808bbe893af8 (diff)
downloadlibnsbmp-f04838b04eda130197c66a5ccccd9b4420557b95.tar.gz
libnsbmp-f04838b04eda130197c66a5ccccd9b4420557b95.tar.bz2
Add AFL demo bitmap and icon corpus to unit tests
Diffstat (limited to 'test/runtest.sh')
-rwxr-xr-xtest/runtest.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/runtest.sh b/test/runtest.sh
index c3e504c..5ac5a89 100755
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -16,9 +16,15 @@ BMPTESTS="test/bmpsuite/*.bmp"
# netsurf test bitmaps
BMPTESTS="${BMPTESTS} test/bmp/*.bmp"
+# afl bitmap suite
+BMPTESTS="${BMPTESTS} test/afl-bmp/*.bmp"
+
# icon test directories
ICOTESTS="test/icons/*.ico"
+# afl ico suite
+ICOTESTS="${BMPTESTS} test/afl-ico/*.ico"
+
bmpdecode()
{
OUTF=$(basename ${1} .bmp)
@@ -65,7 +71,7 @@ ICOTESTERRC=0
# netsurf test icons
for ICO in $(ls ${ICOTESTS});do
- ICOTESTTOTC=$((BMPTESTTOTC+1))
+ ICOTESTTOTC=$((ICOTESTTOTC+1))
icodecode ${ICO}
ECODE=$?
if [ "${ECODE}" -gt 128 ];then