1
0
forked from pool/kernel-source

GIT Revision: 3c5001a2571a37aea2461822f5136be987234c59

GIT Branch: SUSE-2024
2025-12-04 02:11:38 +0000
This commit is contained in:
2025-12-04 08:43:28 +01:00
parent 78c75fb735
commit 56a8525722
128 changed files with 1732919 additions and 513952 deletions

74
kernel-obs-qa.spec Normal file
View File

@@ -0,0 +1,74 @@
#
# spec file for package kernel-obs-qa
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# needsrootforbuild
%define patchversion 6.4.0
%define variant %{nil}
%include %_sourcedir/kernel-spec-macros
Name: kernel-obs-qa
Version: 6.4.0
%if 0%{?is_kotd}
Release: <RELEASE>.g3c5001a
%else
Release: 0
%endif
Summary: Basic QA tests for the kernel
License: GPL-2.0-only
Group: SLES
BuildRequires: kernel-default
# kernel-obs-build must be also configured as VMinstall, but is required
# here as well to avoid that qa and build package build parallel
%if ! 0%{?qemu_user_space_build}
BuildRequires: kernel-obs-build-srchash-3c5001a2571a37aea2461822f5136be987234c59
%endif
BuildRequires: modutils
ExclusiveArch: aarch64 ppc64le s390x x86_64
%description
This package is using the kernel compiled within Open Build Service(OBS)
projects and runs basic tests.
%files
/usr/share/%name
%prep
%build
%check
# More tests are comming, currently the main test is the existens of
# this spec file. It does trigger a build within OBS VM which is using
# the kernel of the same project.
# test suites should be packaged in other packages, but build required
# and called here.
krel=$(uname -r)
if test ! -d "/lib/modules/$krel/kernel" && test ! -d "/usr/lib/modules/$krel/kernel"; then
echo "Kernel package for $krel not installed; exiting"
exit 0
fi
/sbin/modprobe loop
%install
mkdir -p %{buildroot}/usr/share/%name
touch %{buildroot}/usr/share/%name/logfile
%changelog