From 389c786111f1ea850655dfd2addd17ecc4709b1d Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 23 Jun 2021 16:09:16 +0200 Subject: [PATCH] Setup minimal gating based on integration test suite --- gating.yaml | 12 ++++++++ tests/integration-test-suite/runtest.sh | 38 +++++++++++++++++++++++++ tests/tests.yml | 25 ++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/integration-test-suite/runtest.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..f2c6454 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,12 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-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 new file mode 100644 index 0000000..654240d --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,25 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + # 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: + - integration-test-suite