mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 06:10:48 +00:00
9faf6091cf
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
14 lines
467 B
Plaintext
14 lines
467 B
Plaintext
## Show that llvm-strings reads every file specified on the command-line.
|
|
## This test uses --print-file-name and --radix to show that the values are
|
|
## updated for the second file.
|
|
|
|
RUN: echo abcd > %t1
|
|
RUN: echo 1234 >> %t1
|
|
RUN: echo defg > %t2
|
|
RUN: llvm-strings --print-file-name --radix=d %t1 %t2 \
|
|
RUN: | FileCheck %s -DFILE1=%t1 -DFILE2=%t2 --implicit-check-not={{.}}
|
|
|
|
CHECK: [[FILE1]]: 0 abcd
|
|
CHECK-NEXT: [[FILE1]]: 5 1234
|
|
CHECK-NEXT: [[FILE2]]: 0 defg
|