diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 21:41:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 21:41:43 +0000 |
commit | 92cccad89d1c12b39165d5f0ed7ccd2d44965a1a (patch) | |
tree | f59a2764cd8c50959050a428bd8fc935138df750 /tests/run-fuzzer.sh | |
parent | Initial commit. (diff) | |
download | libtpms-8385d72d414b65e621e941ea8ee9872105198dd6.tar.xz libtpms-8385d72d414b65e621e941ea8ee9872105198dd6.zip |
Adding upstream version 0.9.2.upstream/0.9.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | tests/run-fuzzer.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/run-fuzzer.sh b/tests/run-fuzzer.sh new file mode 100755 index 0000000..0a86c63 --- /dev/null +++ b/tests/run-fuzzer.sh @@ -0,0 +1,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 |