Remove llvm-devel-cmake.

This test has been put into the llvm integration testsuite:
https://github.com/opencollab/llvm-toolchain-integration-test-suite/blob/main/tests/plugins_newpm.txt
This commit is contained in:
Jesus Checa Hidalgo 2022-09-08 09:23:07 +02:00
commit 58f4b1d07e
4 changed files with 0 additions and 114 deletions

View file

@ -1,39 +0,0 @@
#
# Build/PR gating tests for LLVM
#
# Compatible with various LLVM distributions:
#
# * Fedora (ursine packages)
# * Centos 9 stream (ursine packages)
# * RHEL-9 (ursine packages)
# * RHEL-8 (Red Hat module)
# * RHEL-7 (software collection)
#
summary: LLVM tests for build/PR gating
adjust:
- because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR."
when: >-
trigger is defined
and trigger != commit
and trigger != build
enabled: false
- because: "When testing SCL-ized LLVM, the collection must be enabled first"
environment+:
WITH_SCL: "scl enable llvm-toolset-13.0"
when: "collection == llvm-toolset-13.0"
- because: "When testing SCL-ized LLVM, the collection must be enabled first"
environment+:
WITH_SCL: "scl enable llvm-toolset-14.0"
when: "collection == llvm-toolset-14.0"
discover:
- name: llvm-tests
how: fmf
test: llvm-devel-cmake
execute:
how: tmt
provision:
hardware:
memory: ">= 4 GiB"

View file

@ -1,4 +0,0 @@
cmake_minimum_required(VERSION 3.4.3)
project(testLLVM)
find_package(LLVM)

View file

@ -1,43 +0,0 @@
summary: Test cmake files from llvm-devel
test: "$WITH_SCL ./test.sh"
require:
- gcc-c++
environment:
PKG_MGR: "dnf"
PKG_QUERY: "dnf repoquery"
# This test breaks the installation that might have been done in by the plan
tag:
- spoils-installation
framework: shell
tier: 1
component:
- llvm-toolset
- llvm
extra-summary: /tools/llvm/llvm-devel-cmake
extra-task: /tools/llvm/llvm-devel-cmake
adjust:
- require+:
- cmake
when: collection is not defined
# Requirements for SCL-ized LLVM
- require+:
- llvm-toolset-13.0-cmake
environment+:
COLLECTION_PREFIX: "llvm-toolset-13.0-"
when: collection == llvm-toolset-13.0
- require+:
- llvm-toolset-14.0-cmake
environment+:
COLLECTION_PREFIX: "llvm-toolset-14.0-"
when: collection == llvm-toolset-14.0
- because: "RHEL 7 and older don't have dnf, fallback to yum"
require+:
- yum-utils
environment+:
PKG_MGR: "yum"
PKG_QUERY: "repoquery"
when: distro < rhel-8
extra-nitrate: TC#0614097

View file

@ -1,28 +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.
# Hence we make sure to remove any llvm-* package and then we install again
# to check if it works with the dependencies it pulls.
# Also, make sure that yum/dnf doesn't remove any other dependencies (such as
# gcc/g++) as it might break the environment and the test very badly.
${PKG_MGR} remove -y ${COLLECTION_PREFIX}llvm\* --setopt=clean_requirements_on_remove=false
${PKG_MGR} install -y ${COLLECTION_PREFIX}llvm-devel
ARCH=`rpm --eval '%_arch'`
llvm_devel_num_deps=`${PKG_QUERY} --nvr --requires --resolve ${COLLECTION_PREFIX}llvm-devel.$ARCH | grep "^${COLLECTION_PREFIX}llvm" | wc -l`
llvm_num_sub_packages_installed=`${PKG_MGR} list installed | grep "^${COLLECTION_PREFIX}llvm" | wc -l`
# Verify that only llvm-devel dependencies are installed.
test `expr $llvm_devel_num_deps + 1` -eq $llvm_num_sub_packages_installed
mkdir cmake_bld && cd cmake_bld
# Verify that cmake files can me used without errors.
cmake ..
# Ensure that LLVM find_package works. The CMakeCache should not have LLVM_DIR
# defined to LLVM_DIR-NOTFOUND
! grep LLVM_DIR-NOTFOUND CMakeCache.txt