summaryrefslogtreecommitdiff
path: root/CCache
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2019-01-21 18:08:30 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2019-01-21 18:08:30 +0000
commit82513bbf8fa31e191a9291453939d9683c119633 (patch)
tree3d67a04c6e92b44bf2d0bcdf980f869f300c4795 /CCache
parentd8478d671d526acc62944d3df949e3243cf9b41c (diff)
downloadswig-82513bbf8fa31e191a9291453939d9683c119633.tar.gz
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
Diffstat (limited to 'CCache')
-rwxr-xr-xCCache/test.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/CCache/test.sh b/CCache/test.sh
index 5b6f92a35..3c44e859c 100755
--- a/CCache/test.sh
+++ b/CCache/test.sh
@@ -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