mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
tests: use adjust
to handle libcxx requirement in Fedora and RHEL
This commit is contained in:
parent
1bdf054407
commit
9e0411bb7b
2 changed files with 11 additions and 6 deletions
|
@ -1,8 +1,6 @@
|
||||||
summary: Run the upstream LLVM integration test suite
|
summary: Run the upstream LLVM integration test suite
|
||||||
description: |
|
description: |
|
||||||
Run the upstream LLVM integration test suite
|
Run the upstream LLVM integration test suite
|
||||||
|
|
||||||
NOTE: don't forget to disable libcxx tests when libcxx is not available, by adding -DENABLE_LIBCXX=OFF.
|
|
||||||
test: ./test.sh
|
test: ./test.sh
|
||||||
require:
|
require:
|
||||||
- cmake
|
- cmake
|
||||||
|
@ -20,6 +18,13 @@ require:
|
||||||
- libstdc++-static
|
- libstdc++-static
|
||||||
- clang-devel
|
- clang-devel
|
||||||
- python3-lit
|
- python3-lit
|
||||||
|
adjust:
|
||||||
# Required in Fedora, but not shipped with RHEL. For future reference, comment the libcxx out as needed.
|
# libcxx shall be required in Fedora, it's not shipped with RHEL.
|
||||||
- libcxx-devel
|
- require+:
|
||||||
|
- libcxx-devel
|
||||||
|
when: "distro == fedora"
|
||||||
|
because: testing against libcxx package in Fedora
|
||||||
|
- environment+:
|
||||||
|
CMAKE_CXXLIB: "-DENABLE_LIBCXX=OFF"
|
||||||
|
when: "distro == rhel"
|
||||||
|
because: libcxx is not shipped with RHEL
|
||||||
|
|
|
@ -33,5 +33,5 @@ cd $(mktemp -d -p /var/tmp)
|
||||||
git clone $repo_url
|
git clone $repo_url
|
||||||
cd llvm-toolchain-integration-test-suite
|
cd llvm-toolchain-integration-test-suite
|
||||||
mkdir _build && cd _build
|
mkdir _build && cd _build
|
||||||
cmake .. -GNinja
|
cmake .. -GNinja "${CMAKE_CXXLIB:-}"
|
||||||
ninja $thread_args check
|
ninja $thread_args check
|
||||||
|
|
Loading…
Reference in a new issue