Enable gating test

Related: rhbz#1869443

Signed-off-by: Honggang Li <honli@redhat.com>
This commit is contained in:
Honggang Li 2021-07-20 10:21:59 -04:00
parent 5dda5cc9df
commit 2c518cec94
5 changed files with 61 additions and 1 deletions

11
gating.yaml Normal file
View File

@ -0,0 +1,11 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -30,7 +30,7 @@
Name: openmpi%{?_cc_name_suffix}
Version: 4.1.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Open Message Passing Interface
License: BSD and MIT and Romio
URL: http://www.open-mpi.org/
@ -357,6 +357,10 @@ make check
%changelog
* Tue Jul 20 2021 Honggang Li <honli@redhat.com> - 4.1.1-3
- Enable gating test
- Related: rhbz#1869443
* Thu Jul 15 2021 Honggang Li <honli@redhat.com> - 4.1.1-2
- Update to 4.1.1
- Enable psm2 support

10
tests/run_tests.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# when running this in 1minutetip the PATH must be specified to execute
# in the local directory.
echo "Setting path to local directory"
PATH=$PATH:$(pwd)
# simple sanity test
sanity.sh
exit $?

23
tests/sanity.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
#
# This is a simple sanity test to satisfy the RHEL8.1 onboard gating
# requirement.
ret=$?
source /etc/profile.d/modules.sh
module load mpi/openmpi-x86_64
ompi_info
let ret=$ret+$?
mpirun --version
let ret=$ret+$?
mpirun --allow-run-as-root hostname
let ret=$ret+$?
mpirun --allow-run-as-root uptime
let ret=$ret+$?
exit $ret

12
tests/tests.yml Normal file
View File

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: . # switch to subfolder. This parameter is REQUIRED, use `dir: .` for current folder
run: ./run_tests.sh # this is your test command, its exit code is the outcome of the test
required_packages:
- environment-modules
- openmpi