mirror of
https://git.proxmox.com/git/libtpms
synced 2025-08-17 19:06:23 +00:00

libtool already provides helper scripts around executables. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
24 lines
301 B
Bash
Executable File
24 lines
301 B
Bash
Executable File
#!/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
|