summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-09-25 07:49:50 +0200
committerAndrew Tridgell <tridge@samba.org>2003-09-25 07:49:50 +0200
commitbccd81cefce332b33f5ddbf968c18f68a28888d2 (patch)
tree2484d6ef2b0f99f80541700a4ab5c04a2ff1fe58 /test.sh
parent27f95a9bded2641357901b8648523991720fb008 (diff)
downloadccache-bccd81cefce332b33f5ddbf968c18f68a28888d2.tar.gz
make sure we hash the cpp extension to ensure we don't mistake a .i
for a .ii
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index aca52d4e..4ff1e3e9 100755
--- a/test.sh
+++ b/test.sh
@@ -220,8 +220,17 @@ basetests() {
$CCACHE_COMPILE -c test1.i
checkstat 'cache hit' 10
checkstat 'cache miss' 38
-
+ testname="direct .ii file"
+ mv test1.i test1.ii
+ $CCACHE_COMPILE -c test1.ii
+ checkstat 'cache hit' 10
+ checkstat 'cache miss' 39
+
+ $CCACHE_COMPILE -c test1.ii
+ checkstat 'cache hit' 11
+ checkstat 'cache miss' 39
+
testname="zero-stats"
$CCACHE -z > /dev/null
checkstat 'cache hit' 0