Pull llvm-devel-cmake tests from tests/llvm

This commit is contained in:
Tom Stellard 2019-09-24 22:50:13 +00:00
parent 6a704c4759
commit a49a481229
3 changed files with 4 additions and 20 deletions

View file

@ -1,3 +0,0 @@
cmake_minimum_required(VERSION 3.4.3)
find_package(LLVM)

View file

@ -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 .

View file

@ -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