From 649d084099049517a1d31616be14ca57886f687d Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 23 Jun 2021 15:36:41 +0200 Subject: [PATCH] Update gating tests - use integration test suite - extra llvm-config symlink test - remove regression test suite Related: rhbz#1931719 --- gating.yaml | 6 ++++ tests/integration-test-suite/runtest.sh | 38 +++++++++++++++++++++++++ tests/tests.yml | 25 ++++++++++++++-- 3 files changed, 66 insertions(+), 3 deletions(-) create mode 100755 tests/integration-test-suite/runtest.sh diff --git a/gating.yaml b/gating.yaml index f2c6454..a447c7e 100644 --- a/gating.yaml +++ b/gating.yaml @@ -10,3 +10,9 @@ product_versions: decision_context: bodhi_update_push_stable rules: - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier0.functional} diff --git a/tests/integration-test-suite/runtest.sh b/tests/integration-test-suite/runtest.sh new file mode 100755 index 0000000..1af4e4a --- /dev/null +++ b/tests/integration-test-suite/runtest.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +usage() { + echo "usage `basename $0` [OPTIONS]" + echo " --threads NUM The number of threads to use for running tests." +} + +thread_args="" +repo_url=https://github.com/opencollab/llvm-toolchain-integration-test-suite + +while [ $# -gt 0 ]; do + case $1 in + --threads) + shift + threads="$1" + ;; + * ) + echo "unknown option: $1" + echo "" + usage + exit 1 + ;; + esac + shift +done + +if [ -n "$threads" ]; then + thread_args="-j$threads" +fi + +set -xe + +cd $(mktemp -d -p /var/tmp) +git clone $repo_url +cd llvm-toolchain-integration-test-suite +mkdir _build && cd _build +cmake .. -GNinja +ninja $thread_args check diff --git a/tests/tests.yml b/tests/tests.yml index d917d74..7271aaa 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -4,13 +4,27 @@ tags: - classic required_packages: - - llvm-test - rust - cargo - - clang - binutils + # the requirements below are for the integration suite + - cmake + - llvm-devel + - clang + - clang-analyzer + - clang-tools-extra + - compiler-rt + - ninja-build + - libcxx-devel + - libomp-devel + - python-lit + - lld + - lldb + - git + - make + - libstdc++-static + - clang-devel tests: - - regression-tests - rust-sanity: dir: ./ run: cargo new hello && cd hello && cargo run @@ -29,3 +43,8 @@ # hours. #- build-compat - binutils-plugin-ar + # make sure llvm-config symlink is properly setup + - llvm-config: + dir: ./ + run: llvm-config --version + - integration-test-suite