From 4bfdaafcc3888b542f281a5709da2fa5a908035b Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 10 Jul 2023 13:13:27 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 6 +++++- rteval-loads.spec | 6 +++++- tests/scripts/run_tests.sh | 20 ++++++++++++++++++++ tests/tests.yml | 11 +++++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 tests/scripts/run_tests.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index 4ca1d8e..82aec02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ -SOURCES/linux-5.18.1.tar.xz +*.swp +clog +/linux-5.1.tar.xz +/linux-5.7.tar.xz +/linux-5.13.2.tar.xz /linux-5.18.1.tar.xz diff --git a/rteval-loads.spec b/rteval-loads.spec index 4d6e457..17a1931 100644 --- a/rteval-loads.spec +++ b/rteval-loads.spec @@ -1,6 +1,6 @@ Name: rteval-loads Version: 1.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Source files for rteval loads Group: Development/Tools License: GPLv2 @@ -26,6 +26,10 @@ install -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/usr/share/rteval/loadsource %{_datadir}/rteval/loadsource/* %changelog +* Thu Jun 16 2022 John Kaucr - 1.6-2 +- Rebuild +Resolves: rhbz#2093059 + * Fri Jun 03 2022 John Kacur - 1.6-2 - Upgrade run_tests.sh with the new kernel version Resolves: rhbz#2093059 diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..152323e --- /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-loads; then + : +else + sudo dnf install -y rteval-loads + if [[ $? != 0 ]]; then + echo "install of rteval failed!" + exit 1 + fi +fi + +# check that the tarball is in place +if [[ ! -f /usr/share/rteval/loadsource/linux-5.18.1.tar.xz ]]; then + echo "No load tarball found!" + exit 3 +fi + +exit 0 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..62fa7ec --- /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: + - rteval-loads