diff options
| author | Vedant Kumar <vsk@apple.com> | 2016-06-07 22:47:31 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2016-06-07 22:47:31 +0000 |
| commit | cef4360ac42c49a427667dc6b06c50a3a4d7e780 (patch) | |
| tree | 082b5a630a22144f1f5d0486c76bc2e94bd4a7cb /llvm/test/tools | |
| parent | b06294da84dc8b3ba18eea022b6c7b8abf7df7a4 (diff) | |
| download | bcm5719-llvm-cef4360ac42c49a427667dc6b06c50a3a4d7e780.tar.gz bcm5719-llvm-cef4360ac42c49a427667dc6b06c50a3a4d7e780.zip | |
Retry^4 "[llvm-profdata] Add option to ingest filepaths from a file"
Changes since the initial commit:
- Use echo instead of printf. This should side-step the character
escaping issues on Windows.
Differential Revision: http://reviews.llvm.org/D20980
llvm-svn: 272068
Diffstat (limited to 'llvm/test/tools')
| -rw-r--r-- | llvm/test/tools/llvm-profdata/input-filenames.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/input-filenames.test b/llvm/test/tools/llvm-profdata/input-filenames.test new file mode 100644 index 00000000000..da0c47bf82a --- /dev/null +++ b/llvm/test/tools/llvm-profdata/input-filenames.test @@ -0,0 +1,17 @@ +# Create an input file. +RUN: echo '# comment 1' > %t.input +RUN: echo ' # comment 2' >> %t.input +RUN: echo 'bar' >> %t.input +RUN: echo ' baz' >> %t.input +RUN: echo "2,%t.weighted" >> %t.input + +# Create the weighted file, since these actually need to exist. +RUN: echo ' ' > %t.weighted + +RUN: llvm-profdata merge -f %t.input -dump-input-file-list -o /dev/null foo | FileCheck %s +RUN: llvm-profdata merge -input-files %t.input -dump-input-file-list -o /dev/null foo | FileCheck %s + +CHECK: 1,foo +CHECK-NEXT: 1,bar +CHECK-NEXT: 1,baz +CHECK-NEXT: 2,{{.*}}.weighted |

