blob: 4f29e7bea9b8f3b8aab54e41d6c6403bceb89ef5 [file] [log] [blame]
Vedant Kumarcef43602016-06-07 22:47:31 +00001# Create an input file.
2RUN: echo '# comment 1' > %t.input
3RUN: echo ' # comment 2' >> %t.input
Xinliang David Li9a1bfcf2016-07-20 22:24:52 +00004RUN: echo " %t.bar" >> %t.input
5RUN: echo " %t.baz" >> %t.input
Vedant Kumarcef43602016-06-07 22:47:31 +00006RUN: echo "2,%t.weighted" >> %t.input
7
Vedant Kumarcef43602016-06-07 22:47:31 +00008RUN: echo ' ' > %t.weighted
Xinliang David Li9a1bfcf2016-07-20 22:24:52 +00009RUN: echo ' ' > %t.foo
10RUN: echo ' ' > %t.bar
11RUN: echo ' ' > %t.baz
Vedant Kumarcef43602016-06-07 22:47:31 +000012
Xinliang David Li9a1bfcf2016-07-20 22:24:52 +000013RUN: llvm-profdata merge -f %t.input -dump-input-file-list -o /dev/null %t.foo | FileCheck %s
14RUN: llvm-profdata merge -input-files %t.input -dump-input-file-list -o /dev/null %t.foo | FileCheck %s
Vedant Kumarcef43602016-06-07 22:47:31 +000015
Xinliang David Li9a1bfcf2016-07-20 22:24:52 +000016CHECK: 1,{{.*}}.foo
17CHECK-NEXT: 1,{{.*}}.bar
18CHECK-NEXT: 1,{{.*}}.baz
Vedant Kumarcef43602016-06-07 22:47:31 +000019CHECK-NEXT: 2,{{.*}}.weighted