aboutsummaryrefslogtreecommitdiff
path: root/tests/runtest/test_suite-profile.shtest
blob: e0576b083c4ccfa7fd9e42a5a8b1fd489803eebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Check importing profiles
# RUN: rm -rf %t.SANDBOX
# RUN: lnt runtest test-suite \
# RUN:     --sandbox %t.SANDBOX \
# RUN:     --no-timestamp \
# RUN:     --test-suite %S/Inputs/test-suite-cmake \
# RUN:     --cc %{shared_inputs}/FakeCompilers/clang-r154331 \
# RUN:     --use-cmake %S/Inputs/test-suite-cmake/fake-cmake \
# RUN:     --use-make %S/Inputs/test-suite-cmake/fake-make \
# RUN:     --use-lit %S/Inputs/test-suite-cmake/fake-lit-profile \
# RUN:     --use-perf=all \
# RUN:     -j2 \
# RUN:     --exec-multisample=2 \
# RUN:     --verbose \
# RUN:     --commit 1 \
# RUN:     > %t.log 2> %t.err
# RUN: FileCheck --check-prefix CHECK-USE-PERF-ALL < %t.err %s
# CHECK-USE-PERF-ALL: Configuring with {
# CHECK-USE-PERF-ALL:   TEST_SUITE_USE_PERF: 'ON'
# Verify that tests get run sequentially when perf profile gathering is enabled:
# CHECK-USE-PERF-ALL: Overriding -j 2 to -j 1
# CHECK-USE-PERF-ALL: fake-lit-profile -v -j 1 {{.*--param profile=perf}}
# Verify that lit gets invoked twice (--exec-multisample=2), but on the second
# run, no perf profile is gathered:
# CHECK-USE-PERF-ALL: fake-lit-profile -v -j 2
# CHECK-USE-PERF-ALL-NOT: --param profile=perf
# CHECK-USE-PERF-ALL: Importing 1 profiles with
# CHECK-USE-PERF-ALL: Profile /tmp/I/Do/Not/Exist.perf_data does not exist