diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2009-01-06 18:13:57 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2009-01-06 18:13:57 +0000 |
commit | ecd75a5c480d7a29ddbc72fb109c0c4c9b73a329 (patch) | |
tree | ffa72080842b48931f85e1288eba0df97000bc07 /CCache/test.sh | |
parent | 79f7900968e18909a243eeef9ccba60a1112b5c7 (diff) | |
download | swig-ecd75a5c480d7a29ddbc72fb109c0c4c9b73a329.tar.gz |
Fix CCACHE_STRIPC being set when using swig as the compiler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11031 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'CCache/test.sh')
-rwxr-xr-x | CCache/test.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/CCache/test.sh b/CCache/test.sh index 2720462ba..4c735eb87 100755 --- a/CCache/test.sh +++ b/CCache/test.sh @@ -242,6 +242,15 @@ basetests() { checkstat 'cache hit' 10 checkstat 'cache miss' 38 + testname="stripc" # This test might not be portable + CCACHE_STRIPC=1 $CCACHE_COMPILE -c test1.c + checkstat 'cache hit' 10 + checkstat 'cache miss' 39 + + CCACHE_STRIPC=1 $CCACHE_COMPILE -c test1.c + checkstat 'cache hit' 11 + checkstat 'cache miss' 39 + # removed these tests as some compilers (including newer versions of gcc) # determine which language to use based on .ii/.i extension, and C++ may # not be installed @@ -375,6 +384,15 @@ swigtests() { checkstat 'cache hit' 6 checkstat 'cache miss' 6 + testname="stripc" + CCACHE_STRIPC=1 $CCACHE_COMPILE -java -O -O testswig1.i + checkstat 'cache hit' 7 + checkstat 'cache miss' 6 + + CCACHE_STRIPC=1 $CCACHE_COMPILE -java -O -O -O testswig1.i + checkstat 'cache hit' 7 + checkstat 'cache miss' 7 + rm -f testswig1-preproc.i rm -f testswig1.i } |