diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-09-06 16:42:14 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-09-06 16:42:14 +0000 |
commit | 8bdd880d6cf73090f9de68d6224a3b62bc61e5f0 (patch) | |
tree | 1698d9ad61efee541fbee792fd368166f375fd5e /test/TestRunner.sh | |
parent | efb6d0dc3eafbcf4f8cd053138bd1abed1dda8d4 (diff) |
skip test if llvm-gcc is requires but not found on the path.
someone with llvm-gcc installed please test if the Codegen/function-attributes.c test isn't skip in your system. thanks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TestRunner.sh')
-rwxr-xr-x | test/TestRunner.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/TestRunner.sh b/test/TestRunner.sh index 09b73d2183..eed956e992 100755 --- a/test/TestRunner.sh +++ b/test/TestRunner.sh @@ -68,6 +68,20 @@ if (grep -q XFAIL $FILENAME); then grep XFAIL $FILENAME fi +if (grep -q "%llvmgcc" $FILENAME); then + if [ -z "$(llvm-gcc --version 2> /dev/null)" ]; then + IS_XFAIL=1 + echo "llvm-gcc not found" + fi +fi + +if (grep -q "%llvmgxx" $FILENAME); then + if [ -z "$(llvm-g++ --version 2> /dev/null)" ]; then + IS_XFAIL=1 + echo "llvm-g++ not found" + fi +fi + /bin/sh $SCRIPT > $OUTPUT 2>&1 SCRIPT_STATUS=$? |