aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-profdata/input-wildcard.test
blob: f2c46c962a8170aa82b6a73d35f67563369c6406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This test verifies that llvm-profdata will do wildcard expansion on its
# arguments. The expansion is done by Windows-specific support in InitLLVM, so
# we only expect this to work on Windows hosts.
# REQUIRES: system-windows

# Create two files to glob.
RUN: echo '# empty profile 1' >  %t.prof1.proftxt
RUN: echo '# empty profile 2' >> %t.prof2.proftxt

# Prevent LIT itself from globbing by quoting the wildcard argument.
RUN: llvm-profdata merge "%t.*.proftxt" -dump-input-file-list -o /dev/null | FileCheck %s

# Verify that llvm-profdata expanded the wildcard argument.
CHECK: 1,{{.*}}.prof1.proftxt
CHECK-NEXT: 1,{{.*}}.prof2.proftxt