fe3b621f05
SUMMARY 1. Enable supporting the write operation of big archive. 2. the first commit come from https://reviews.llvm.org/D104367 3. refactor the first commit and implement writing symbol table. 4. fixed the bugs and add more test cases in the second commit. Reviewers: James Henderson Differential Revision: https://reviews.llvm.org/D123949
18 lines
630 B
Plaintext
18 lines
630 B
Plaintext
Test which operations create an archive and which don't.
|
|
|
|
RUN: touch %t
|
|
RUN: rm -f %t.foo.a
|
|
RUN: not llvm-ar p %t.foo.a %t 2>&1 | FileCheck %s
|
|
RUN: not llvm-ar d %t.foo.a %t 2>&1 | FileCheck %s
|
|
RUN: not llvm-ar m %t.foo.a %t 2>&1 | FileCheck %s
|
|
RUN: not llvm-ar t %t.foo.a %t 2>&1 | FileCheck %s
|
|
RUN: not llvm-ar x %t.foo.a %t 2>&1 | FileCheck %s
|
|
|
|
RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
|
|
RUN: rm -f %t.foo.a
|
|
RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
|
|
RUN: rm -f %t.foo.a
|
|
|
|
CHECK: llvm-ar{{(.exe|.EXE)?}}: error: unable to load '{{[^']+}}.foo.a':
|
|
CREATE: creating {{.*}}.foo.a
|