mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01: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
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
## Show that --radix combined with --print-file-name produces correct output.
|
|
|
|
RUN: echo one > %t
|
|
RUN: echo two >> %t
|
|
RUN: echo three >> %t
|
|
RUN: echo four >> %t
|
|
RUN: echo five >> %t
|
|
RUN: echo six >> %t
|
|
RUN: echo seven >> %t
|
|
RUN: echo eight >> %t
|
|
RUN: echo nine >> %t
|
|
RUN: echo ten >> %t
|
|
|
|
RUN: llvm-strings --print-file-name %t \
|
|
RUN: | FileCheck %s --check-prefix CHECK-NONE -DFILE=%t --implicit-check-not={{.}}
|
|
RUN: llvm-strings --print-file-name -t d %t \
|
|
RUN: | FileCheck %s --check-prefix CHECK-DEC --strict-whitespace -DFILE=%t --implicit-check-not={{.}}
|
|
RUN: llvm-strings --print-file-name -t o %t \
|
|
RUN: | FileCheck %s --check-prefix CHECK-OCT --strict-whitespace -DFILE=%t --implicit-check-not={{.}}
|
|
RUN: llvm-strings --print-file-name -t x %t \
|
|
RUN: | FileCheck %s --check-prefix CHECK-HEX --strict-whitespace -DFILE=%t --implicit-check-not={{.}}
|
|
|
|
CHECK-NONE: [[FILE]]: three
|
|
CHECK-NONE: [[FILE]]: four
|
|
CHECK-NONE: [[FILE]]: five
|
|
CHECK-NONE: [[FILE]]: seven
|
|
CHECK-NONE: [[FILE]]: eight
|
|
CHECK-NONE: [[FILE]]: nine
|
|
|
|
CHECK-DEC: [[FILE]]: 8 three
|
|
CHECK-DEC: [[FILE]]: 14 four
|
|
CHECK-DEC: [[FILE]]: 19 five
|
|
CHECK-DEC: [[FILE]]: 28 seven
|
|
CHECK-DEC: [[FILE]]: 34 eight
|
|
CHECK-DEC: [[FILE]]: 40 nine
|
|
|
|
CHECK-OCT: [[FILE]]: 10 three
|
|
CHECK-OCT: [[FILE]]: 16 four
|
|
CHECK-OCT: [[FILE]]: 23 five
|
|
CHECK-OCT: [[FILE]]: 34 seven
|
|
CHECK-OCT: [[FILE]]: 42 eight
|
|
CHECK-OCT: [[FILE]]: 50 nine
|
|
|
|
CHECK-HEX: [[FILE]]: 8 three
|
|
CHECK-HEX: [[FILE]]: e four
|
|
CHECK-HEX: [[FILE]]: 13 five
|
|
CHECK-HEX: [[FILE]]: 1c seven
|
|
CHECK-HEX: [[FILE]]: 22 eight
|
|
CHECK-HEX: [[FILE]]: 28 nine
|