diff --git a/rteval.spec b/rteval.spec index 7a182f9..7a8ff4e 100644 --- a/rteval.spec +++ b/rteval.spec @@ -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 - 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 - 3.5-5 - Added code to check if the /proc/net/if_net6 file exists. Resolves: rhbz#2210106 diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..9a2c9df --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..f2e1e05 --- /dev/null +++ b/tests/tests.yml @@ -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