xref: /llvm-project/llvm/test/tools/llvm-debuginfod-find/local.test (revision eafa0530417e09755b94d0e94afc0f792b98c80d)
1# Test that llvm-debuginfod-find can perform local directory lookups.
2
3# Test depends on POSIX file paths.
4UNSUPPORTED: system-windows
5
6RUN: mkdir -p %t/a/.build-id
7RUN: mkdir -p %t/b/.build-id/00/00000000000000
8RUN: mkdir -p %t/b/.build-id/01/23456789012345.debug
9RUN: mkdir -p %t/b/.build-id/02/22222222222222
10RUN: mkdir -p %t/c/.build-id/
11RUN: llvm-debuginfod-find \
12RUN:   --debug-file-directory %t/a \
13RUN:   --debug-file-directory %t/b \
14RUN:   --debug-file-directory %t/c \
15RUN:   --debuginfo 0123456789012345 > %t.out
16RUN: FileCheck -DT=%t --match-full-lines --implicit-check-not {{.}} %s < %t.out
17
18CHECK: [[T]]/b/.build-id/01/23456789012345.debug
19