rteval: Add gating tests

Add missing gating tests for rhel-8.9

Resolves: rhbz#2213609
jiraProject == RHELPLAN-159326

Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
John Kacur 2023-06-08 13:55:20 -04:00
parent 85b7a8e9ca
commit beb58fdc49
3 changed files with 42 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: rteval
Version: 3.5
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Utility to evaluate system suitability for RT Linux
Group: Development/Tools
@ -88,6 +88,11 @@ to the screen.
%{python3_sitelib}/rteval/__pycache__/*
%changelog
* Thu Jun 08 2023 John Kacur <jkacur@redhat.com> - 3.5-6
- Add tests/tests.yml and tests/scripts/run_tests.sh for gating
Resolves: rhbz#2213609
jiraProject == RHELPLAN-159326
* Wed Jun 07 2023 John Kacur <jkacur@redhat.com> - 3.5-5
- Added code to check if the /proc/net/if_net6 file exists.
Resolves: rhbz#2210106

View File

@ -0,0 +1,20 @@
#!/usr/bin/bash
# make sure we have rteval installed
if rpm -q --quiet rteval; then
:
else
sudo dnf install -y rteval
if [[ $? != 0 ]]; then
echo "install of rteval failed!"
exit 1
fi
fi
rteval --help
if [[ $? != 0 ]]; then
exit 2
fi
exit 0

16
tests/tests.yml Normal file
View File

@ -0,0 +1,16 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: scripts
run: ./run_tests.sh
- short_test:
dir: .
run: rteval --duration=2m
timeout: 10m
required_packages:
- make
- rteval