#!/usr/bin/env bash # This script helps you run the test-suite with the compiler from $LLVM_BLD. It # assumes virtualenv is already installed. # Any flags passed to the script will be passed down to llvm.py run-test-suite. . llvm-common progdir=$(dirname $0) llvmtool=$progdir/../scripts/llvm.py safe_run verify_env build_dir=$LLVM_BLD env=$LLVM_BLD/../ sandbox=$env/sandbox testsuite=$LLVM_ROOT/repos/test-suite lnt=$LLVM_ROOT/repos/lnt lit=$LLVM_BLD/bin/llvm-lit clang=$LLVM_BLD/bin/clang safe_run python3 $llvmtool setup-test-suite --sandbox $sandbox --lnt $lnt safe_run python3 $llvmtool run-test-suite --sandbox $sandbox \ --test-suite $testsuite --use-lit $lit --cc $clang --cxx $clang++ "$@"