]> granicus.if.org Git - clang/commitdiff
skip test if llvm-gcc is requires but not found on the path.
authorNuno Lopes <nunoplopes@sapo.pt>
Sat, 6 Sep 2008 16:42:14 +0000 (16:42 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Sat, 6 Sep 2008 16:42:14 +0000 (16:42 +0000)
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

test/TestRunner.sh

index 09b73d2183b79bb18b4f142cd09df3e8c819d72d..eed956e9920ee7fd0aa65210f2f82d2007a90088 100755 (executable)
@@ -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=$?