From 2500957f3a9525f893f5880243a28c21d652f77a Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 30 Aug 2022 20:34:32 +0200 Subject: chore: Remove share-hits attribute for secondary storage [1] added a share-hits attribute for secondary storages so that it's possible to avoid sharing hits to primary storage for a specific secondary storage. I believe that nobody needs that level of control -- what one would like is the ability to not use the primary storage at all. Such a feature will be added in a a future commit, but for now the share-hits=false functionality is just in the way, so let's remove it. [1]: 1924ad69cc42336a61ee69d0042de53db2a2a52c (cherry picked from commit fd91ae11db7b49ad26a347f08517b81c7d549153) --- test/suites/secondary_file.bash | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'test') diff --git a/test/suites/secondary_file.bash b/test/suites/secondary_file.bash index 1a688625..e432dd7e 100644 --- a/test/suites/secondary_file.bash +++ b/test/suites/secondary_file.bash @@ -239,33 +239,6 @@ SUITE_secondary_file() { expect_stat secondary_storage_miss 0 expect_file_count 3 '*' secondary # CACHEDIR.TAG + result + manifest - # ------------------------------------------------------------------------- - TEST "Don't share hits" - - $CCACHE_COMPILE -c test.c - expect_stat direct_cache_hit 0 - expect_stat cache_miss 1 - expect_stat files_in_cache 2 - expect_stat primary_storage_hit 0 - expect_stat primary_storage_miss 2 - expect_stat secondary_storage_hit 0 - expect_stat secondary_storage_miss 2 - expect_file_count 3 '*' secondary # CACHEDIR.TAG + result + manifest - - $CCACHE -C >/dev/null - expect_stat files_in_cache 0 - - CCACHE_SECONDARY_STORAGE+="|share-hits=false" - $CCACHE_COMPILE -c test.c - expect_stat direct_cache_hit 1 - expect_stat cache_miss 1 - expect_stat files_in_cache 0 - expect_stat primary_storage_hit 0 - expect_stat primary_storage_miss 4 - expect_stat secondary_storage_hit 2 - expect_stat secondary_storage_miss 2 - expect_file_count 3 '*' secondary # CACHEDIR.TAG + result + manifest - # ------------------------------------------------------------------------- TEST "Recache" -- cgit v1.2.1