aboutsummaryrefslogtreecommitdiff
path: root/helpers/llvm-lit
blob: 32143fbdea6d7501cfae7898193db13f27d8afa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

# Helper script for running a single LIT test inside the build tree.

if [[ $1 = '' ]]; then
  echo "Syntax: $0 test-dir"
  exit -1
fi
DIR=$1

$LLVM_SRC/utils/lit/lit.py \
  --param build_mode=. \
  -sv \
  --param llvm_site_config=$LLVM_BLD/test/lit.site.cfg \
  --param llvm_unit_site_config=$LLVM_BLD/test/Unit/lit.site.cfg \
  $DIR