From 5c5800c63cb74cf24bf117129549f3b46b7c512b Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Fri, 23 Sep 2022 16:40:23 +0200 Subject: [PATCH] Port tests to tmt. Removed old STI version of integration testsuite, pull the test maintained in llvm repo over tmt instead. --- .fmf/version | 1 + tests/build-gating.fmf | 24 ++++++++++++++++ tests/integration-test-suite/runtest.sh | 38 ------------------------- tests/tests.yml | 25 ---------------- 4 files changed, 25 insertions(+), 63 deletions(-) create mode 100644 .fmf/version create mode 100644 tests/build-gating.fmf delete mode 100755 tests/integration-test-suite/runtest.sh delete mode 100644 tests/tests.yml diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/build-gating.fmf b/tests/build-gating.fmf new file mode 100644 index 0000000..f00b0b5 --- /dev/null +++ b/tests/build-gating.fmf @@ -0,0 +1,24 @@ +# +# Build/PR gating tests for libcxx +# + +summary: libcxx 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 + +discover: + - name: upstream-llvm-integration-testsuite + how: fmf + url: https://src.fedoraproject.org/tests/llvm.git + ref: main + test: integration-test-suite +execute: + how: tmt +provision: + hardware: + memory: ">= 4 GiB" diff --git a/tests/integration-test-suite/runtest.sh b/tests/integration-test-suite/runtest.sh deleted file mode 100755 index 1af4e4a..0000000 --- a/tests/integration-test-suite/runtest.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/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 deleted file mode 100644 index 654240d..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,25 +0,0 @@ -- 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