Diana Picus | b368cb6 | 2018-01-23 16:41:59 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # This script helps you run the test-suite with the compiler from $LLVM_BLD. It |
| 4 | # assumes virtualenv is already installed. |
| 5 | # Any flags passed to the script will be passed down to llvm.py run-test-suite. |
| 6 | |
| 7 | . llvm-common |
| 8 | |
| 9 | progdir=$(dirname $0) |
| 10 | llvmtool=$progdir/../scripts/llvm.py |
| 11 | |
| 12 | safe_run verify_env |
| 13 | build_dir=$LLVM_BLD |
| 14 | env=$LLVM_BLD/../ |
| 15 | |
| 16 | sandbox=$env/sandbox |
| 17 | testsuite=$LLVM_ROOT/repos/test-suite |
| 18 | lnt=$LLVM_ROOT/repos/lnt |
| 19 | lit=$LLVM_BLD/bin/llvm-lit |
| 20 | clang=$LLVM_BLD/bin/clang |
| 21 | |
Diana Picus | f73abbf | 2018-01-26 07:06:20 +0100 | [diff] [blame^] | 22 | safe_run python3 $llvmtool setup-test-suite --sandbox $sandbox --lnt $lnt |
Diana Picus | b368cb6 | 2018-01-23 16:41:59 +0100 | [diff] [blame] | 23 | |
| 24 | safe_run python3 $llvmtool run-test-suite --sandbox $sandbox \ |
| 25 | --test-suite $testsuite --use-lit $lit --cc $clang --cxx $clang++ "$@" |