1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
llvm-mirror/test/tools/llvm-strings/archive-filename.test
James Henderson 9faf6091cf [llvm-strings] Improve testing of llvm-strings
This patch tidies up the llvm-strings testing by:

1. Adding comments to every test.
2. Getting rid of canned input files, and having the tests generate
   them on the fly (this makes the tests self-contained).
3. Adding missing test coverage.
4. Renaming some tests that weren't clear as to their purpose.
5. Adding extra checking of various cases, formatting etc.
6. Removing a test that didn't seem to have any useful purpose for
   testing llvm-strings.

Reviewed by: rupprecht, grimar, MaskRay

Differential Revision: https://reviews.llvm.org/D66015

llvm-svn: 368555
2019-08-12 11:36:11 +00:00

13 lines
455 B
Plaintext

## Show that --print-file-name prints just the archive name for an archive and
## not the member names.
RUN: rm -rf %t && mkdir -p %t
RUN: echo -n abcd > %t/abcd
RUN: llvm-ar --format=gnu crs %t/archive.a %t/abcd
RUN: llvm-strings -f %t/archive.a | FileCheck %s
RUN: llvm-strings --print-file-name %t/archive.a | FileCheck %s
CHECK: archive.a: !<arch>
CHECK: archive.a: abcd/ 0 0 0 644 4 `
CHECK: archive.a: abcd