From: Joel Rosdahl Date: Sun, 8 Mar 2015 19:53:16 +0000 (+0100) Subject: Add test case for CCACHE_COMPILERCHECK=string: X-Git-Tag: v3.2.2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a7d8c455e5d756d3904032322d6e839217f111f;p=thirdparty%2Fccache.git Add test case for CCACHE_COMPILERCHECK=string: --- diff --git a/test.sh b/test.sh index a865c4991..c4c23001d 100755 --- a/test.sh +++ b/test.sh @@ -455,6 +455,22 @@ EOF checkstat 'cache hit (preprocessed)' 2 checkstat 'cache miss' 1 + testname="compilercheck=string" + $CCACHE -z >/dev/null + backdate compiler.sh + CCACHE_COMPILERCHECK=string:foo $CCACHE ./compiler.sh -c test1.c + checkstat 'cache hit (preprocessed)' 0 + checkstat 'cache miss' 1 + CCACHE_COMPILERCHECK=string:foo $CCACHE ./compiler.sh -c test1.c + checkstat 'cache hit (preprocessed)' 1 + checkstat 'cache miss' 1 + CCACHE_COMPILERCHECK=string:bar $CCACHE ./compiler.sh -c test1.c + checkstat 'cache hit (preprocessed)' 1 + checkstat 'cache miss' 2 + CCACHE_COMPILERCHECK=string:bar $CCACHE ./compiler.sh -c test1.c + checkstat 'cache hit (preprocessed)' 2 + checkstat 'cache miss' 2 + testname="compilercheck=command" $CCACHE -z >/dev/null backdate compiler.sh