[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / tools / llvm-debuginfod-find / cache.test
blobeae341f3eb299cdc74ae908ea805ee3df57b8f4d
1 REQUIRES: curl
2 UNSUPPORTED: system-windows
4 RUN: rm -rf %t/*
5 RUN: mkdir -p %t/buildid/012345678901234{5,6}
6 RUN: echo 'f' > %t/buildid/0123456789012345/debuginfo
7 RUN: cp %t/buildid/012345678901234{5,6}/debuginfo
8 RUN: mkdir %t/cache
9 RUN: env DEBUGINFOD_CACHE_PATH=%t/cache DEBUGINFOD_URLS=file://%t \
10 RUN:   llvm-debuginfod-find --debuginfo 0123456789012345 > /dev/null
11 RUN: ls %t/cache | FileCheck --check-prefix=FIRST --match-full-lines --implicit-check-not {{.}} %s
13 # Set policy to discard all but one file.
14 RUN: env DEBUGINFOD_CACHE_POLICY=prune_interval=0s:cache_size_files=1 \
15 RUN:     DEBUGINFOD_CACHE_PATH=%t/cache DEBUGINFOD_URLS=file://%t \
16 RUN:     llvm-debuginfod-find --debuginfo 0123456789012346 > /dev/null
17 RUN: ls %t/cache | FileCheck --check-prefix=SECOND --match-full-lines --implicit-check-not {{.}} %s
19 # Add the first file back to the cache.
20 RUN: env DEBUGINFOD_CACHE_PATH=%t/cache DEBUGINFOD_URLS=file://%t \
21 RUN:     llvm-debuginfod-find --debuginfo 0123456789012345 > /dev/null
22 RUN: ls %t/cache | FileCheck --check-prefix=BOTH --match-full-lines --implicit-check-not {{.}} %s
24 # An invalid cache policy has no effect.
25 RUN: env DEBUGINFOD_CACHE_POLICY=invalid:prune_interval=0s:cache_size_files=1 \
26 RUN:     DEBUGINFOD_CACHE_PATH=%t/cache DEBUGINFOD_URLS=file://%t \
27 RUN:     llvm-debuginfod-find --debuginfo 0123456789012346 > /dev/null
28 RUN: ls %t/cache | FileCheck --check-prefix=BOTH --match-full-lines --implicit-check-not {{.}} %s
30 FIRST: llvmcache-10846399329613630737
31 FIRST: llvmcache.timestamp
33 SECOND: llvmcache-10192351353398627645
34 SECOND: llvmcache.timestamp
36 BOTH: llvmcache-10192351353398627645
37 BOTH: llvmcache-10846399329613630737
38 BOTH: llvmcache.timestamp