blob: 0374749c61b318bb6ce8a9f4f744af969581a0d3 [file] [log] [blame]
Diana Picusb368cb62018-01-23 16:41:59 +01001#!/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
9progdir=$(dirname $0)
10llvmtool=$progdir/../scripts/llvm.py
11
12safe_run verify_env
13build_dir=$LLVM_BLD
14env=$LLVM_BLD/../
15
16sandbox=$env/sandbox
17testsuite=$LLVM_ROOT/repos/test-suite
18lnt=$LLVM_ROOT/repos/lnt
19lit=$LLVM_BLD/bin/llvm-lit
20clang=$LLVM_BLD/bin/clang
21
Diana Picusf73abbf2018-01-26 07:06:20 +010022safe_run python3 $llvmtool setup-test-suite --sandbox $sandbox --lnt $lnt
Diana Picusb368cb62018-01-23 16:41:59 +010023
24safe_run python3 $llvmtool run-test-suite --sandbox $sandbox \
25 --test-suite $testsuite --use-lit $lit --cc $clang --cxx $clang++ "$@"