summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-strings/length.test
Commit message (Collapse)AuthorAgeFilesLines
* [llvm-strings] Improve testing of llvm-stringsJames Henderson2019-08-121-17/+39
| | | | | | | | | | | | | | | | | | | 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
* test: use separate input file for testSaleem Abdulrasool2016-11-161-4/+4
| | | | | | | Rather than using sed to generate the input and pipe the result to strings, use the static input instead. llvm-svn: 287079
* llvm-strings: support the `-n` optionSaleem Abdulrasool2016-11-151-0/+24
Permit specifying the match length (the `-n` or `--bytes` option). The deprecated `-[length]` form is not supported as an option. This allows the strings tool to display only the specified length strings rather than the hardcoded default length of >= 4. llvm-svn: 286914
OpenPOWER on IntegriCloud