diff options
-rw-r--r-- | compiler-rt/test/profile/Linux/binary-id-debuginfod.c | 6 | ||||
-rw-r--r-- | llvm/test/tools/llvm-debuginfod-find/headers.test | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/compiler-rt/test/profile/Linux/binary-id-debuginfod.c b/compiler-rt/test/profile/Linux/binary-id-debuginfod.c index 62f50e7..86d7945 100644 --- a/compiler-rt/test/profile/Linux/binary-id-debuginfod.c +++ b/compiler-rt/test/profile/Linux/binary-id-debuginfod.c @@ -9,10 +9,12 @@ // RUN: cp %t/libfoo.so %t/buildid/12345678/debuginfo // RUN: cp %t/main %t/buildid/abcd1234/debuginfo // RUN: llvm-profdata merge -o %t/profdata %t/profdir/default_*.profraw -// RUN: env DEBUGINFOD_URLS=file://%t llvm-cov show -instr-profile %t/profdata | FileCheck %s +// RUN: mkdir -p %t/debuginfod-cache +// RUN: env DEBUGINFOD_CACHE_PATH=%t/debuginfod-cache DEBUGINFOD_URLS=file://%t llvm-cov show -instr-profile %t/profdata | FileCheck %s // RUN: echo "bad" > %t/libfoo.so %t/buildid/12345678/debuginfo // RUN: echo "bad" > %t/buildid/abcd1234/debuginfo -// RUN: env DEBUGINFOD_URLS=file://%t llvm-cov show -instr-profile %t/profdata -debuginfod=false %t/main | FileCheck %s --check-prefix=NODEBUGINFOD +// RUN: rm -rf %t/debuginfod-cache/* +// RUN: env DEBUGINFOD_CACHE_PTH=%t/debuginfod-cache DEBUGINFOD_URLS=file://%t llvm-cov show -instr-profile %t/profdata -debuginfod=false %t/main | FileCheck %s --check-prefix=NODEBUGINFOD // CHECK: 1| 1|void foo(void) {} // CHECK: 2| 1|void bar(void) {} diff --git a/llvm/test/tools/llvm-debuginfod-find/headers.test b/llvm/test/tools/llvm-debuginfod-find/headers.test index aaf20d4..c838d9f 100644 --- a/llvm/test/tools/llvm-debuginfod-find/headers.test +++ b/llvm/test/tools/llvm-debuginfod-find/headers.test @@ -1,14 +1,18 @@ REQUIRES: curl +RUN: rm -rf %t +RUN: mkdir -p %t/debuginfod-cache RUN: %python %S/Inputs/capture_req.py llvm-debuginfod-find --debuginfo 0 \ RUN: | FileCheck --check-prefix NO-HEADERS %s -RUN: env DEBUGINFOD_HEADERS_FILE=bad %python %S/Inputs/capture_req.py \ +RUN: env DEBUGINFOD_CACHE=%t/debuginfod-cache DEBUGINFOD_HEADERS_FILE=bad %python %S/Inputs/capture_req.py \ RUN: llvm-debuginfod-find --debuginfo 0 \ RUN: | FileCheck --check-prefix NO-HEADERS %s -RUN: env DEBUGINFOD_HEADERS_FILE=%S/Inputs/headers %python %S/Inputs/capture_req.py \ +RUN: rm -rf %t/debuginfod-cache/* +RUN: env DEBUGINFOD_CACHE=%t/debuginfod-cache DEBUGINFOD_HEADERS_FILE=%S/Inputs/headers %python %S/Inputs/capture_req.py \ RUN: llvm-debuginfod-find --debuginfo 0 \ RUN: | FileCheck --check-prefix HEADERS %s -RUN: env DEBUGINFOD_HEADERS_FILE=%S/Inputs/headers DEBUGINFOD_URLS=fake not llvm-debuginfod-find --debuginfo 0 2>&1 \ +RUN: rm -rf %t/debuginfod-cache/* +RUN: env DEBUGINFOD_CACHE=%t/debuginfod-cache DEBUGINFOD_HEADERS_FILE=%S/Inputs/headers DEBUGINFOD_URLS=fake not llvm-debuginfod-find --debuginfo 0 2>&1 \ RUN: | FileCheck --check-prefix ERR -DHEADER_FILE=%S/Inputs/headers %s NO-HEADERS: Accept: */* |