]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add test for -x compiler option.
authorBernhard Bauer <bauerb@google.com>
Mon, 24 May 2010 21:27:38 +0000 (14:27 -0700)
committerBernhard Bauer <bauerb@google.com>
Mon, 24 May 2010 21:27:38 +0000 (14:27 -0700)
test.sh

diff --git a/test.sh b/test.sh
index 7c13ff5fe7d0d1ed68b2e57777ccedf4848c1d24..9f73ad9b5ebaf5219dc5af3da3425466075e68af 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -300,16 +300,21 @@ base_tests() {
     checkstat 'cache hit (preprocessed)' 10
     checkstat 'cache miss' 38
 
+    testname="-x"
+    $CCACHE_COMPILE -x c -c test1.ccc 2> /dev/null
+    checkstat 'cache hit (preprocessed)' 10
+    checkstat 'cache miss' 39
+
     if [ -x /usr/bin/printf ]; then
         /usr/bin/printf 'char foo[] = "\xa3";\n' >cp1250.c
         if CCACHE_DISABLE=1 $COMPILER -c -finput-charset=cp1250 cp1250.c >/dev/null 2>&1; then
             testname="-finput-charset"
             $CCACHE_COMPILE -c -finput-charset=cp1250 cp1250.c
             checkstat 'cache hit (preprocessed)' 10
-            checkstat 'cache miss' 39
+            checkstat 'cache miss' 40
             $CCACHE_COMPILE -c -finput-charset=cp1250 cp1250.c
             checkstat 'cache hit (preprocessed)' 11
-            checkstat 'cache miss' 39
+            checkstat 'cache miss' 40
         fi
     fi