#!/usr/bin/env bash | |
# Helper script for running a single LIT test inside the build tree. | |
. llvm-common | |
safe_run verify_env | |
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 |