Lines Matching full:cache
2 ; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o %t2.o
7 ; RUN: rm -Rf %t.cache && mkdir %t.cache
8 ; Create two files that would be removed by cache pruning due to age.
10 ; RUN: touch -t 197001011200 %t.cache/llvmcache-foo %t.cache/foo
11 ; RUN: wasm-ld --thinlto-cache-dir=%t.cache --thinlto-cache-policy prune_after=1h:prune_interval=0s -o %t.wasm %t2.o %t.o
14 ; RUN: ls %t.cache | count 4
17 ; RUN: %python -c "print(' ' * 65536)" > %t.cache/llvmcache-foo
20 ; RUN: wasm-ld --thinlto-cache-dir=%t.cache --thinlto-cache-policy cache_size_bytes=128k:prune_interval=0s -o %t.wasm %t2.o %t.o
21 ; RUN: ls %t.cache | count 5
25 ; RUN: %python -c 'import os,sys,time; t=time.time()-120; os.utime(sys.argv[1],(t,t))' %t.cache/llvmcache-foo
28 ; RUN: wasm-ld --thinlto-cache-dir=%t.cache --thinlto-cache-policy cache_size_bytes=32k:prune_interval=0s -o %t.wasm %t2.o %t.o
29 ; RUN: ls %t.cache | count 4
32 ; RUN: wasm-ld --thinlto-cache-dir=%t.cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_size_files=0:prune_interval=0s -o %t.wasm %t2.o %t.o
33 ; RUN: ls %t.cache | count 4
35 ; Delete everything except for the timestamp, "foo" and one cache file.
36 ; RUN: wasm-ld --thinlto-cache-dir=%t.cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_size_files=1:prune_interval=0s -o %t.wasm %t2.o %t.o
37 ; RUN: ls %t.cache | count 3