blob: 0374749c61b318bb6ce8a9f4f744af969581a0d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/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++ "$@"
|