1 ## This test validates the format of the dependency info file
2 # RUN: rm -rf %t; mkdir -p %t
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
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
11 # SIMPLE: version: llvm-libtool-darwin
12 # SIMPLE: input-file: {{.+}}foo.o
13 # SIMPLE: output-file: {{.+}}libfirst.a
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