aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fuzz_thumbnail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fuzz_thumbnail.sh')
-rwxr-xr-xsrc/plugins/fuzz_thumbnail.sh39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/plugins/fuzz_thumbnail.sh b/src/plugins/fuzz_thumbnail.sh
deleted file mode 100755
index 3de22c3..0000000
--- a/src/plugins/fuzz_thumbnail.sh
+++ /dev/null
@@ -1,39 +0,0 @@
1#!/bin/sh
2
3ZZSTARTSEED=0
4ZZSTOPSEED=100
5
6# fallbacks for direct, non-"make check" usage
7if test x"$testdatadir" = x""
8then
9 testdatadir=../../test
10fi
11if test x"$bindir" = x""
12then
13 bindir=`grep "^prefix = " ./Makefile | cut -d ' ' -f 3`
14 bindir="$bindir/bin"
15fi
16
17
18for file in $testdatadir/*.bmp $testdatadir/*.gif $testdatadir/*.png $testdatadir/*.ppm
19do
20 if test -f "$file"
21 then
22 tmpfile=`mktemp extractortmp.XXXXXX` || exit 1
23 seed=$ZZSTARTSEED
24 trap "echo $tmpfile caused SIGSEGV ; exit 1" SEGV
25 while [ $seed -lt $ZZSTOPSEED ]
26 do
27# echo "file $file seed $seed"
28 zzuf -c -s $seed cat "$file" > "$tmpfile"
29 if ! "$bindir/extract" -n -l thumbnailffmpeg:thumbnailqt:thumbnailgtk "$tmpfile" > /dev/null
30 then
31 echo "$tmpfile caused error exit"
32 exit 1
33 fi
34 seed=`expr $seed + 1`
35 done
36 rm -f "$tmpfile"
37 fi
38done
39