Add gating test
Resolves: RHEL-3692 Signed-off-by: Kamal Heib <kheib@redhat.com>
This commit is contained in:
parent
1cbbb3d00d
commit
a4cc0b77b9
@ -1,6 +1,6 @@
|
||||
Name: pmix
|
||||
Version: 2.2.5
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Process Management Interface Exascale (PMIx)
|
||||
License: BSD
|
||||
URL: https://pmix.org/
|
||||
@ -177,6 +177,10 @@ EOF
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Tue Nov 14 2023 Kamal Heib <kheib@redhat.com> - 2.2.5-3
|
||||
- Add gating test
|
||||
- Resolves: RHEL-3692
|
||||
|
||||
* Thu Nov 02 2023 Kamal Heib <kheib@redhat.com> - 2.2.5-2
|
||||
- Fix CVE-2023-41915
|
||||
- Resolves: RHEL-3692
|
||||
|
10
tests/run_tests.sh
Executable file
10
tests/run_tests.sh
Executable 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 $?
|
27
tests/sanity.sh
Executable file
27
tests/sanity.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is a simple sanity test to satisfy the RHEL8.1 onboard gating
|
||||
# requirement.
|
||||
|
||||
ret=0
|
||||
test="/usr/share/pmix/test/pmix_test"
|
||||
|
||||
$test -h
|
||||
let ret=$ret+$?
|
||||
|
||||
$test --test-publish
|
||||
let ret=$ret+$?
|
||||
|
||||
$test --test-connect
|
||||
let ret=$ret+$?
|
||||
|
||||
$test --test-resolve-peers
|
||||
let ret=$ret+$?
|
||||
|
||||
$test --test-error
|
||||
let ret=$ret+$?
|
||||
|
||||
$test --test-internal 10
|
||||
let ret=$ret+$?
|
||||
|
||||
exit $ret
|
11
tests/tests.yml
Normal file
11
tests/tests.yml
Normal file
@ -0,0 +1,11 @@
|
||||
- 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:
|
||||
- pmix
|
Loading…
Reference in New Issue
Block a user