From d8969a9c59a36f156379a703d0a44cf579bdfaa4 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 21 Jul 2016 22:34:55 +0200 Subject: [PATCH] test: Verify support for caching compilation of assembler files --- test.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.47.2