Renato Golin | 94cc104 | 2016-04-26 11:02:23 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Helper script for running a single LIT test inside the build tree. |
| 4 | |
Diana Picus | 72189fd | 2016-05-23 19:32:46 +0300 | [diff] [blame] | 5 | . llvm-common |
| 6 | |
| 7 | safe_run verify_env |
| 8 | |
Renato Golin | 94cc104 | 2016-04-26 11:02:23 +0100 | [diff] [blame] | 9 | if [[ $1 = '' ]]; then |
| 10 | echo "Syntax: $0 test-dir" |
| 11 | exit -1 |
| 12 | fi |
| 13 | DIR=$1 |
| 14 | |
| 15 | $LLVM_SRC/utils/lit/lit.py \ |
| 16 | --param build_mode=. \ |
| 17 | -sv \ |
| 18 | --param llvm_site_config=$LLVM_BLD/test/lit.site.cfg \ |
| 19 | --param llvm_unit_site_config=$LLVM_BLD/test/Unit/lit.site.cfg \ |
| 20 | $DIR |