From: Joel Rosdahl Date: Sun, 30 May 2010 12:59:55 +0000 (+0200) Subject: Don't try to run tests if the compiler isn't GCC X-Git-Tag: v3.0~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=258bee6250839ff83dfa10f9ed7293fde5447688;p=thirdparty%2Fccache.git Don't try to run tests if the compiler isn't GCC --- diff --git a/test.sh b/test.sh index 0a9dcba8b..9aff0faa3 100755 --- a/test.sh +++ b/test.sh @@ -1305,12 +1305,21 @@ suites="$*" if [ -n "$CC" ]; then COMPILER="$CC" else - COMPILER=cc + COMPILER=gcc fi if [ -z "$CCACHE" ]; then CCACHE=`pwd`/ccache fi +case `$COMPILER --version 2>&1 | head -1` in + gcc*) + ;; + *) + echo "$COMPILER not supported -- not running tests" + exit 0 + ;; +esac + TESTDIR=testdir.$$ rm -rf $TESTDIR mkdir $TESTDIR