[cfe-commits] r55871 - /cfe/trunk/test/TestRunner.sh
Nuno Lopes
nunoplopes at sapo.pt
Sat Sep 6 09:42:17 PDT 2008
Author: nlopes
Date: Sat Sep 6 11:42:14 2008
New Revision: 55871
URL: http://llvm.org/viewvc/llvm-project?rev=55871&view=rev
Log:
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.
Modified:
cfe/trunk/test/TestRunner.sh
Modified: cfe/trunk/test/TestRunner.sh
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/TestRunner.sh?rev=55871&r1=55870&r2=55871&view=diff
==============================================================================
--- cfe/trunk/test/TestRunner.sh (original)
+++ cfe/trunk/test/TestRunner.sh Sat Sep 6 11:42:14 2008
@@ -68,6 +68,20 @@
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=$?
More information about the cfe-commits
mailing list