diff --git a/stalld.spec b/stalld.spec index 66a471c..f4e2ab6 100644 --- a/stalld.spec +++ b/stalld.spec @@ -1,6 +1,6 @@ Name: stalld Version: 1.19.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Daemon that finds starving tasks and gives them a temporary boost License: GPLv2 @@ -60,6 +60,10 @@ allow 10 microseconds of runtime for 1 second of clock time. %systemd_postun_with_restart %{name}.service %changelog +* Mon Feb 12 2024 John Kacur - 1.19.1-3 +- Copying over missing tests directory +Resolves: RHEL-8982 + * Mon Feb 12 2024 John Kacur - 1.19.1-2 - Add llvm as a build requirement Resolves: RHEL-8982 diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..3f34499 --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,21 @@ +#!/usr/bin/bash + +# This will get uncommented once we have the rpm +# make sure we have stalld installed +if rpm -q --quiet stalld; then + : +else + sudo dnf install -y stalld + if [[ $? != 0 ]]; then + echo "install of stalld failed!" + exit 1 + fi +fi + +STALLD="/usr/bin/stalld" + +# See if stalld is installed and executable +$STALLD --help 2>> /dev/null +if [[ $? != 0 ]]; then + exit 2 +fi diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..6a5dc81 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: scripts + run: ./run_tests.sh + required_packages: + - stalld