summaryrefslogtreecommitdiff
path: root/test/TestRunner.sh
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-07-25 01:05:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-07-25 01:05:44 +0000
commit5e38073779f6fbb42b81c133fc3c12e49a5ee3b6 (patch)
treee5ca37b9df51592c91058636067da3b65dcbcf2b /test/TestRunner.sh
parentec455e0564e84cfbaae7e706eedfb416871aae76 (diff)
Allow CLANG env variable to override "clang" command in TestRunner.sh
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TestRunner.sh')
-rwxr-xr-xtest/TestRunner.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/TestRunner.sh b/test/TestRunner.sh
index 49a15a46f5..36cec72996 100755
--- a/test/TestRunner.sh
+++ b/test/TestRunner.sh
@@ -41,7 +41,10 @@ grep -q 'RUN:' $FILENAME || (
)
# Run under valgrind if the VG environment variable has been set.
-CLANG="clang"
+CLANG=$CLANG
+if [ "$CLANG" == "" ]; then
+ CLANG="clang"
+fi
if [ -n "$VG" ]; then
rm -f $OUTPUT.vg.*
CLANG="valgrind --leak-check=full --quiet --log-file=$OUTPUT.vg.%p $CLANG"