From afe76608e06367984c6c2053b9d0b28488c47d38 Mon Sep 17 00:00:00 2001 From: Chris White Date: Mon, 23 Aug 2021 19:06:28 +0000 Subject: [PATCH] Fixed tier0 test build process to work with 2.1.1: - autogen must be used to generate configure script - get_module and get_device need so be specified as targets Resolves: rhbz#1975886 Signed-off-by: Chris White --- sysfsutils.spec | 5 ++++- tests/smoke/runtest.sh | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sysfsutils.spec b/sysfsutils.spec index 7b5a282..93378b4 100644 --- a/sysfsutils.spec +++ b/sysfsutils.spec @@ -4,7 +4,7 @@ Name: sysfsutils Version: 2.1.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Utilities for interfacing with sysfs URL: https://github.com/linux-ras/sysfsutils License: GPLv2 @@ -71,6 +71,9 @@ find %{buildroot} -type f -name "*.la" -delete %changelog +* Mon Aug 23 2021 Chris White - 2.1.1- +- Fixed tier0 test build process to work with 2.1.1. Resolves: rhbz#1975886 + * Mon Aug 16 2021 Chris White - 2.1.1-8 - Renamed tests/tests.yaml to tests/test.yml. Resolves: rhbz#1975886 diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh index 30d2214..a77c819 100644 --- a/tests/smoke/runtest.sh +++ b/tests/smoke/runtest.sh @@ -1,14 +1,18 @@ #!/bin/bash -# Get to the test directory +## Get to the test directory cd ../source/ #build the source tree to get the tests +echo "Building test out of $(pwd):" +./autogen ./configure make #go to the test directory cd test +make get_module +make get_device #run the get_module test on every loaded module, if any command exits non-zero, #fail the test @@ -45,4 +49,3 @@ done #If we get here all tests passed, exit 0 exit 0 -