xref: /llvm-project/llvm/test/tools/llvm-libtool-darwin/dependency-info.test (revision 10f22335f3b7c7b78b54ee6b995f6ed97e4c225d)
1## This test validates the format of the dependency info file
2# RUN: rm -rf %t; mkdir -p %t
3
4# RUN: yaml2obj %S/Inputs/input1.yaml -o %t/foo.o
5# RUN: llvm-libtool-darwin -static -o %t/libfirst.a %t/foo.o -dependency_info %t/simple.dat
6# RUN: %python %S/Inputs/DependencyDump.py %t/simple.dat | FileCheck --check-prefix=SIMPLE %s
7
8# RUN: llvm-libtool-darwin -static -o %t/second.lib %t/foo.o -lfirst -L/missing/directory/without/lib -L%t -dependency_info %t/lib.dat
9# RUN: %python %S/Inputs/DependencyDump.py %t/lib.dat | FileCheck --check-prefix=LIB %s
10
11# SIMPLE: version: llvm-libtool-darwin
12# SIMPLE: input-file: {{.+}}foo.o
13# SIMPLE: output-file: {{.+}}libfirst.a
14
15# LIB: version: llvm-libtool-darwin
16# LIB: input-file: {{.+}}foo.o
17# LIB: input-file: {{.+}}libfirst.a
18# LIB: not-found: {{.+}}missing{{.+}}directory{{.+}}without{{.+}}lib{{.+}}libfirst.a
19# LIB: output-file: {{.+}}second.lib
20