mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
Pull llvm-devel-cmake tests from tests/llvm
This commit is contained in:
parent
6a704c4759
commit
a49a481229
3 changed files with 4 additions and 20 deletions
|
@ -1,3 +0,0 @@
|
|||
cmake_minimum_required(VERSION 3.4.3)
|
||||
|
||||
find_package(LLVM)
|
|
@ -1,16 +0,0 @@
|
|||
set -ex
|
||||
|
||||
# This test is meant to ensure that the cmake files in llvm-devel work
|
||||
# when only the packages it depends on are installed.
|
||||
|
||||
ARCH=`rpm --eval '%_arch'`
|
||||
|
||||
llvm_devel_num_deps=`dnf repoquery --nvr --requires --resolve llvm-devel.$ARCH | grep '^llvm' | wc -l`
|
||||
|
||||
llvm_num_sub_packages_installed=`dnf list installed | grep '^llvm' | wc -l`
|
||||
|
||||
# Verify that only llvm-devel dependencies are installed.
|
||||
test `expr $llvm_devel_num_deps + 1` -eq $llvm_num_sub_packages_installed
|
||||
|
||||
# Verify that cmake files can me used without errors.
|
||||
cmake -G Ninja .
|
|
@ -24,5 +24,8 @@
|
|||
- ninja-build
|
||||
- gcc
|
||||
- gcc-c++
|
||||
repositories:
|
||||
- repo: "https://src.fedoraproject.org/tests/llvm.git"
|
||||
dest: "llvm"
|
||||
tests:
|
||||
- llvm-devel-cmake
|
||||
- llvm/llvm-devel-cmake
|
||||
|
|
Loading…
Reference in a new issue