diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2022-08-30 20:34:32 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2022-08-30 22:35:23 +0200 |
commit | 2500957f3a9525f893f5880243a28c21d652f77a (patch) | |
tree | ed078e1445966be7fce91c847c90811a6d67413f /test | |
parent | 98f5fcefc7d2528cc20dd31b351cd073d4be24b4 (diff) | |
download | ccache-2500957f3a9525f893f5880243a28c21d652f77a.tar.gz |
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)
Diffstat (limited to 'test')
-rw-r--r-- | test/suites/secondary_file.bash | 27 |
1 files changed, 0 insertions, 27 deletions
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 @@ -240,33 +240,6 @@ SUITE_secondary_file() { 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" CCACHE_RECACHE=1 $CCACHE_COMPILE -c test.c |