1 ## Test extract operation.
4 RUN: rm -rf %t && mkdir -p %t/extracted/
6 # Extracting from an empty archive should not warn or error:
7 RUN: llvm-ar cr %t/empty.a
8 RUN: llvm-ar x %t/empty.a 2>&1 | count 0
10 RUN: echo filea > %t/a.txt
11 RUN: echo fileb > %t/b.txt
12 RUN: llvm-ar rc %t/archive.a %t/a.txt %t/b.txt
15 RUN: cd %t/extracted && llvm-ar x %t/archive.a a.txt
16 RUN: diff %t/a.txt %t/extracted/a.txt
19 RUN: rm %t/extracted/a.txt
20 RUN: cd %t/extracted && llvm-ar x %t/archive.a
21 RUN: diff %t/a.txt %t/extracted/a.txt
22 RUN: diff %t/b.txt %t/extracted/b.txt