summaryrefslogtreecommitdiff
path: root/CCache
diff options
context:
space:
mode:
authorBjörn Esser <me@besser82.io>2015-12-06 14:00:54 +0100
committerBjörn Esser <me@besser82.io>2015-12-16 11:07:45 +0100
commit790c72944746ddcd6948daca89ecb4f758ac4493 (patch)
tree9bd9bbaf344c767a22466cdccbf4351c217949af /CCache
parent0c307b8a991e99beb957448b7a98372094213a84 (diff)
downloadswig-790c72944746ddcd6948daca89ecb4f758ac4493.tar.gz
Ignore locally installed ccache when running CCache unit tests
original patch by David Sommerseth <davids@redhat.com>
Diffstat (limited to 'CCache')
-rwxr-xr-xCCache/test.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/CCache/test.sh b/CCache/test.sh
index 6e5d26703..d8640ccaa 100755
--- a/CCache/test.sh
+++ b/CCache/test.sh
@@ -15,6 +15,12 @@ else
SWIG=swig
fi
+# fix: Remove ccache from $PATH if it exists
+# as it will influence the unit tests
+PATH="`echo $PATH | \
+ awk -v RS=: -v ORS=: '/\/usr\/lib(64|)\/ccache(:|)/ {next} {print}' | \
+ sed 's/:*$//'`"
+
CCACHE=../ccache-swig
TESTDIR=test.$$