llvm-project/llvm/lib/Fuzzer/fuzzer-test-suite/build-and-test.sh

14 lines
275 B
Bash
Executable File

#!/bin/bash
. $(dirname $0)/common.sh
BUILD=$SCRIPT_DIR/$1/build.sh
TEST=$SCRIPT_DIR/$1/test.sh
[ ! -e $BUILD ] && echo "NO SUCH FILE: $BUILD" && exit 1
[ ! -e $TEST ] && echo "NO SUCH FILE: $TEST" && exit 1
RUNDIR="RUNDIR-$1"
mkdir -p $RUNDIR
cd $RUNDIR
$BUILD && $TEST