Minimal gating tests

- use integration test suite

Related: rhbz#1931719
This commit is contained in:
serge-sans-paille 2021-06-24 09:37:09 +02:00
parent 9afb337884
commit c298b58b01
3 changed files with 62 additions and 0 deletions

View File

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

View File

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

View File

@ -8,6 +8,23 @@
- clang
- gcc
- lld-test
# 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:
- basic:
dir: ./
@ -16,3 +33,4 @@
dir: ./
run: echo "int main(){ return 0; }" | gcc -x c -fuse-ld=lld -
- lit-tests
- integration-test-suite