blob: 63520632181f489166933edf53d3ed9ae94c9aed (
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
29
30
31
32
|
# Check a run of test-suite using a cmake cache
# Also make sure we get: compiler defines, cache, other defines on the cmake
# commandline.
# 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 \
# RUN: --cmake-cache Release \
# RUN: --cmake-define FOO=BAR \
# RUN: &> %t.cmake-cache.log
# RUN: FileCheck --check-prefix CHECK-CACHE < %t.cmake-cache.log %s
# CHECK-CACHE: Execute: {{.*}}cmake -DCMAKE_CXX_COMPILER:FILEPATH={{.*}}/FakeCompilers/clang++-r154331 -DCMAKE_C_COMPILER:FILEPATH={{.*}}FakeCompilers/clang-r154331 -C {{.*}}/Release.cmake {{.*}}-DFOO=BAR
# RUN: rm -rf %t.SANDBOX
# Check a run of test-suite using a invalid cmake cache
# 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 \
# RUN: --cmake-cache Debug \
# RUN: &> %t.cmake-cache2.err || true
# RUN: FileCheck --check-prefix CHECK-CACHE2 < %t.cmake-cache2.err %s
# CHECK-CACHE2: Could not find CMake cache file
|