summaryrefslogtreecommitdiffstats
path: root/tests/run-fuzzer.sh
blob: 0a86c63939d85f351eae30d32922ec5f3a883983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

# For the license, see the LICENSE file in the root directory.

DIR=${PWD}/$(dirname "$0")
ROOT=${DIR}/..
WORKDIR=$(mktemp -d)

function cleanup()
{
	rm -rf ${WORKDIR}
}

trap "cleanup" QUIT EXIT

pushd $WORKDIR

${DIR}/fuzz $@ ${DIR}/corpus-execute-command
rc=$?

popd

exit $rc