openjpeg/tests/fuzzers/build_seed_corpus.sh

20 lines
400 B
Bash
Raw Normal View History

2017-07-03 14:14:03 +02:00
#!/bin/bash
set -e
if [ "$OUT" == "" ]; then
echo "OUT env var not defined"
exit 1
fi
SRC_DIR=$(dirname $0)/../..
cd $SRC_DIR/data/input/conformance
rm -f $OUT/opj_decompress_fuzzer_seed_corpus.zip
zip $OUT/opj_decompress_fuzzer_seed_corpus.zip *.jp2 *.j2k
cd $OLDPWD
cd $SRC_DIR/data/input/nonregression/htj2k
zip $OUT/opj_decompress_fuzzer_seed_corpus.zip *.j2k *.jhc *.jph
cd $OLDPWD