aboutsummaryrefslogtreecommitdiff
path: root/helpers/llvm-lit
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/llvm-lit')
-rwxr-xr-xhelpers/llvm-lit16
1 files changed, 16 insertions, 0 deletions
diff --git a/helpers/llvm-lit b/helpers/llvm-lit
new file mode 100755
index 0000000..32143fb
--- /dev/null
+++ b/helpers/llvm-lit
@@ -0,0 +1,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