From: Joel Rosdahl Date: Thu, 21 Jul 2016 20:34:55 +0000 (+0200) Subject: test: Verify support for caching compilation of assembler files X-Git-Tag: v3.3~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8969a9c59a36f156379a703d0a44cf579bdfaa4;p=thirdparty%2Fccache.git test: Verify support for caching compilation of assembler files --- diff --git a/test.sh b/test.sh index 28f1df819..4975b0ef9 100755 --- 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