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