Vedant Kumar | cef4360 | 2016-06-07 22:47:31 +0000 | [diff] [blame] | 1 | # Create an input file. |
| 2 | RUN: echo '# comment 1' > %t.input |
| 3 | RUN: echo ' # comment 2' >> %t.input |
Xinliang David Li | 9a1bfcf | 2016-07-20 22:24:52 +0000 | [diff] [blame^] | 4 | RUN: echo " %t.bar" >> %t.input |
| 5 | RUN: echo " %t.baz" >> %t.input |
Vedant Kumar | cef4360 | 2016-06-07 22:47:31 +0000 | [diff] [blame] | 6 | RUN: echo "2,%t.weighted" >> %t.input |
| 7 | |
Vedant Kumar | cef4360 | 2016-06-07 22:47:31 +0000 | [diff] [blame] | 8 | RUN: echo ' ' > %t.weighted |
Xinliang David Li | 9a1bfcf | 2016-07-20 22:24:52 +0000 | [diff] [blame^] | 9 | RUN: echo ' ' > %t.foo |
| 10 | RUN: echo ' ' > %t.bar |
| 11 | RUN: echo ' ' > %t.baz |
Vedant Kumar | cef4360 | 2016-06-07 22:47:31 +0000 | [diff] [blame] | 12 | |
Xinliang David Li | 9a1bfcf | 2016-07-20 22:24:52 +0000 | [diff] [blame^] | 13 | RUN: llvm-profdata merge -f %t.input -dump-input-file-list -o /dev/null %t.foo | FileCheck %s |
| 14 | RUN: llvm-profdata merge -input-files %t.input -dump-input-file-list -o /dev/null %t.foo | FileCheck %s |
Vedant Kumar | cef4360 | 2016-06-07 22:47:31 +0000 | [diff] [blame] | 15 | |
Xinliang David Li | 9a1bfcf | 2016-07-20 22:24:52 +0000 | [diff] [blame^] | 16 | CHECK: 1,{{.*}}.foo |
| 17 | CHECK-NEXT: 1,{{.*}}.bar |
| 18 | CHECK-NEXT: 1,{{.*}}.baz |
Vedant Kumar | cef4360 | 2016-06-07 22:47:31 +0000 | [diff] [blame] | 19 | CHECK-NEXT: 2,{{.*}}.weighted |