1# Create an input file. 2RUN: echo "#" > %t.input 3RUN: echo "%t.dir1" >> %t.input 4RUN: echo "2,%t.dir2" >> %t.input 5 6RUN: mkdir -p %t.dir1 7RUN: mkdir -p %t.dir2/subdir 8 9RUN: echo ' ' > %t.dir1/bar 10RUN: echo ' ' > %t.dir1/foo 11RUN: echo ' ' > %t.dir2/bar 12RUN: echo ' ' > %t.dir2/foo 13RUN: echo ' ' > %t.dir2/subdir/baz 14 15RUN: llvm-profdata merge -f %t.input -dump-input-file-list -o /dev/null | FileCheck %s 16RUN: llvm-profdata merge -weighted-input=2,%t.dir2 -dump-input-file-list -o /dev/null %t.dir1 | FileCheck %s 17 18CHECK-DAG: 1,{{.*}}.dir1{{[/\\]}}bar 19CHECK-DAG: 1,{{.*}}.dir1{{[/\\]}}foo 20CHECK-DAG: 2,{{.*}}.dir2{{[/\\]}}bar 21CHECK-DAG: 2,{{.*}}.dir2{{[/\\]}}foo 22CHECK-DAG: 2,{{.*}}.dir2{{[/\\]}}subdir{{[/\\]}}baz 23