]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Verify support for caching compilation of assembler files
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 21 Jul 2016 20:34:55 +0000 (22:34 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 21 Jul 2016 20:35:31 +0000 (22:35 +0200)
test.sh

diff --git a/test.sh b/test.sh
index 28f1df8192af84f14fdbfb6df8c8a593edbba8db..4975b0ef92fe2a3b406909cf6eaebae3c9bb9b4b 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -418,6 +418,21 @@ base_tests() {
         fi
     fi
 
+    testname="assembler"
+    $CCACHE -Cz >/dev/null
+    $CCACHE_COMPILE -S test1.c
+    checkstat 'cache hit (preprocessed)' 0
+    checkstat 'cache miss' 1
+    $CCACHE_COMPILE -S test1.c
+    checkstat 'cache hit (preprocessed)' 1
+    checkstat 'cache miss' 1
+    $CCACHE_COMPILE -c test1.s
+    checkstat 'cache hit (preprocessed)' 1
+    checkstat 'cache miss' 2
+    $CCACHE_COMPILE -c test1.s
+    checkstat 'cache hit (preprocessed)' 2
+    checkstat 'cache miss' 2
+
     testname="override path"
     $CCACHE -Cz >/dev/null
     override_path=`pwd`/override_path