diff --git a/libvma.spec b/libvma.spec index 6395aa9..8227788 100644 --- a/libvma.spec +++ b/libvma.spec @@ -2,7 +2,7 @@ Name: libvma Version: 9.8.20 -Release: 1%{?dist} +Release: 1%{?dist}.1 Summary: A library for boosting TCP and UDP traffic (over RDMA hardware) License: GPLv2 or BSD @@ -99,6 +99,10 @@ rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/vma %{_mandir}/man8/vma_stats.* %changelog +* Mon Jun 05 2023 Kamal Heib - 9.8.20-1.1 +- Add gating tests +- Resolves: rhbz#2170074 + * Thu Jun 01 2023 Kamal Heib - 9.8.20-1 - Update to upstream release 9.8.20. - Add gating tests diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100755 index 0000000..11017ab --- /dev/null +++ b/tests/run_tests.sh @@ -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 $? diff --git a/tests/sanity.sh b/tests/sanity.sh new file mode 100755 index 0000000..1e456b8 --- /dev/null +++ b/tests/sanity.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# +# This is a simple sanity test to satisfy the RHEL8.1 onboard gating +# requirement. + +vmad --help +ret=$? + +exit $ret diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..6391b1b --- /dev/null +++ b/tests/tests.yml @@ -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: + - libvma