Fix CCache test.sh when CC contains full path

Fixes symbolic link creation.
Also fixes test.sh when SWIG contains a full path.

Closes #1212
This commit is contained in:
William S Fulton 2019-01-21 18:08:30 +00:00
commit 82513bbf8f

View file

@ -451,14 +451,16 @@ swigtests
if test -z "$NOSOFTLINKSTEST"; then
testsuite="link"
ln -s $CCACHE $COMPILER
CCACHE_COMPILE="./$COMPILER"
compilername=`basename $COMPILER`
ln -s $CCACHE ./$compilername
CCACHE_COMPILE="./$compilername"
basetests
rm "./$COMPILER"
ln -s $CCACHE $SWIG
CCACHE_COMPILE="./$SWIG"
rm "./$compilername"
compilername=`basename $SWIG`
ln -s $CCACHE ./$compilername
CCACHE_COMPILE="./$compilername"
swigtests
rm "./$SWIG"
rm "./$compilername"
else
echo "skipping testsuite link"
fi