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 | fc8c680b891083012eea7d032c5276e7e3fb64e2 (patch) | |
tree | 1cf16a57deb45ab6ca2c772f9989348c2b45a91f /clang/test | |
parent | a46348c51b88c3c60ba4d4e27f07cd09385a0f0e (diff) | |
download | bcm5719-llvm-fc8c680b891083012eea7d032c5276e7e3fb64e2.tar.gz bcm5719-llvm-fc8c680b891083012eea7d032c5276e7e3fb64e2.zip |
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.
llvm-svn: 55871
Diffstat (limited to 'clang/test')
-rwxr-xr-x | clang/test/TestRunner.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/TestRunner.sh b/clang/test/TestRunner.sh index 09b73d2183b..eed956e9920 100755 --- a/clang/test/TestRunner.sh +++ b/clang/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=$? |