brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 66af974 Raw
40 lines · plain
1REQUIRES: curl2UNSUPPORTED: system-windows3 4RUN: rm -rf %t/*5RUN: mkdir -p %t/buildid/01234567890123456RUN: mkdir -p %t/buildid/01234567890123467RUN: echo 'f' > %t/buildid/0123456789012345/debuginfo8RUN: cp %t/buildid/0123456789012345/debuginfo %t/buildid/0123456789012346/debuginfo9RUN: mkdir %t/cache10RUN: env DEBUGINFOD_CACHE_PATH=%t/cache DEBUGINFOD_URLS=file://%t \11RUN:   llvm-debuginfod-find --debuginfo 0123456789012345 > /dev/null12RUN: ls %t/cache | FileCheck --check-prefix=FIRST --match-full-lines --implicit-check-not {{.}} %s13 14# Set policy to discard all but one file.15RUN: env DEBUGINFOD_CACHE_POLICY=prune_interval=0s:cache_size_files=1 \16RUN:     DEBUGINFOD_CACHE_PATH=%t/cache DEBUGINFOD_URLS=file://%t \17RUN:     llvm-debuginfod-find --debuginfo 0123456789012346 > /dev/null18RUN: ls %t/cache | FileCheck --check-prefix=SECOND --match-full-lines --implicit-check-not {{.}} %s19 20# Add the first file back to the cache.21RUN: env DEBUGINFOD_CACHE_PATH=%t/cache DEBUGINFOD_URLS=file://%t \22RUN:     llvm-debuginfod-find --debuginfo 0123456789012345 > /dev/null23RUN: ls %t/cache | FileCheck --check-prefix=BOTH --match-full-lines --implicit-check-not {{.}} %s24 25# An invalid cache policy has no effect.26RUN: env DEBUGINFOD_CACHE_POLICY=invalid:prune_interval=0s:cache_size_files=1 \27RUN:     DEBUGINFOD_CACHE_PATH=%t/cache DEBUGINFOD_URLS=file://%t \28RUN:     llvm-debuginfod-find --debuginfo 0123456789012346 > /dev/null29RUN: ls %t/cache | FileCheck --check-prefix=BOTH --match-full-lines --implicit-check-not {{.}} %s30 31FIRST: llvmcache-1084639932961363073732FIRST: llvmcache.timestamp33 34SECOND: llvmcache-1019235135339862764535SECOND: llvmcache.timestamp36 37BOTH: llvmcache-1019235135339862764538BOTH: llvmcache-1084639932961363073739BOTH: llvmcache.timestamp40