mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
[llvm-ar][test] Add to llvm-ar test coverage
- Added handling of thin archives to symtab.test. - Added handling of newlines to response.test. - 62fa3332c9c1af1e66dfecd40f5b4e78882998b2 exposed behaviour regarding the use of -- on the command line. Added double-hyphen.test to cover this. Differential Revision: https://reviews.llvm.org/D73333
This commit is contained in:
parent
3a864f79c9
commit
3b4c521b04
9
test/tools/llvm-ar/double-hyphen.test
Normal file
9
test/tools/llvm-ar/double-hyphen.test
Normal file
@ -0,0 +1,9 @@
|
||||
## Test the use of "--" on the commandline
|
||||
|
||||
# RUN: echo contents > %t.txt
|
||||
|
||||
# RUN: rm -f %t.ar
|
||||
# RUN: llvm-ar rc -- %t.ar %t.txt 2>&1 | count 0
|
||||
|
||||
# RUN: llvm-ar p %t.ar | FileCheck %s
|
||||
# CHECK: contents
|
@ -17,6 +17,13 @@
|
||||
# RUN: llvm-ar @%t.response3.txt %t.txt
|
||||
# RUN: llvm-ar p %t3.a | FileCheck %s --check-prefix=CONTENTS
|
||||
|
||||
## Newlines
|
||||
# RUN: echo contents > %t.txt
|
||||
# RUN: echo rc %t4.a > %t.newline.txt
|
||||
# RUN: echo %t.txt >> %t.newline.txt
|
||||
# RUN: llvm-ar @%t.newline.txt
|
||||
# RUN: llvm-ar p %t4.a | FileCheck %s --check-prefix=CONTENTS
|
||||
|
||||
# CONTENTS: contents
|
||||
|
||||
## rsp-quoting
|
||||
|
@ -52,6 +52,12 @@
|
||||
# RUN: llvm-nm --print-armap %t-to-no-symtab.a \
|
||||
# RUN: | FileCheck %s --check-prefix=NO-SYMTAB
|
||||
|
||||
## Thin Archive:
|
||||
# RUN: rm -f %t-thin.a
|
||||
# RUN: llvm-ar rcT %t-thin.a %t.o
|
||||
# RUN: llvm-nm --print-armap %t-thin.a \
|
||||
# RUN: | FileCheck %s --check-prefix=SYMTAB
|
||||
|
||||
# SYMTAB: symbol in
|
||||
# NO-SYMTAB-NOT: symbol in
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user