From cdc2a019b3be868bafccb53255cf1f59b01a9a89 Mon Sep 17 00:00:00 2001 From: Kamal Heib Date: Mon, 5 Jun 2023 15:22:30 -0400 Subject: [PATCH] Update to upstream release 23.04.0.0.23 Update package and add gating tests Resolves: rhbz#2212517 Signed-off-by: Kamal Heib --- .gitignore | 1 + perftest.spec | 11 ++++++++--- sources | 2 +- tests/run_tests.sh | 10 ++++++++++ tests/sanity.sh | 15 +++++++++++++++ tests/tests.yml | 11 +++++++++++ 6 files changed, 46 insertions(+), 4 deletions(-) create mode 100755 tests/run_tests.sh create mode 100755 tests/sanity.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index 4ed194d..00791bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ SOURCES/perftest-4.5-0.20.gac7cca5.tar.gz /perftest-4.5-0.20.gac7cca5.tar.gz +/perftest-23.04.0-0.23.g63e250f.tar.gz diff --git a/perftest.spec b/perftest.spec index 853d857..575577f 100644 --- a/perftest.spec +++ b/perftest.spec @@ -3,11 +3,11 @@ Summary: IB Performance Tests # Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead. # Issue "Please avoid dashes in version": # https://github.com/linux-rdma/perftest/issues/18 -%global upstream_ver 4.5-0.20 +%global upstream_ver 23.04.0-0.23 Version: %{lua: print((string.gsub(rpm.expand("%{upstream_ver}"),"-",".")))} -Release: 4%{?dist} +Release: 1%{?dist} License: GPLv2 or BSD -Source: https://github.com/linux-rdma/perftest/releases/download/v4.5-0.20/perftest-4.5-0.20.gac7cca5.tar.gz +Source: https://github.com/linux-rdma/perftest/releases/download/23.04.0-0.23/perftest-23.04.0-0.23.g63e250f.tar.gz Source1: ib_atomic_bw.1 Url: https://github.com/linux-rdma/perftest @@ -55,6 +55,11 @@ popd %_bindir/* %changelog +* Mon Jun 05 2023 Kamal Heib - 23.04.0.0.23-1 +- Update to upstream release 23.04.0.0.23 +- Add gating tests +- Resolves: rhbz#2212517 + * Wed Feb 08 2023 Michal Schmidt - 4.5.0.20-4 - Rebase to upstream version 4.5-0.20 - Resolves: rhbz#2168109 diff --git a/sources b/sources index 2f482a9..6dab4c7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (perftest-4.5-0.20.gac7cca5.tar.gz) = fa2a0ca4487134081b178576a0997476c60228847f13142d069d77c7ca69bb8634fd980a6c8e07741029dead677b4a4d0758521adaba046fb2bc2ce3b496ec82 +SHA512 (perftest-23.04.0-0.23.g63e250f.tar.gz) = d1c7c27c3d8463e7172fc5ae308bf639eb8c772e7652a5c398bca56968ea8cc93f610fc09c466f66c7641362d05ab9f43c9a0eff3dcdfb58ecd723353c3c60a9 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..2190199 --- /dev/null +++ b/tests/sanity.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# +# This is a simple sanity test to satisfy the RHEL8.1 onboard gating +# requirement. + +ib_atomic_bw --version +ret=$? + +# for reasons I have not investigated, at least on hosts without any rdma +# hardware, the above returns 1 instead of 0 (as does --help) +if [ "$ret" -eq 1 ]; then + exit 0 +fi + +exit $ret diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..813603d --- /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: + - perftest