Skip to content

Commit

Permalink
Merge pull request #2439 from os-autoinst/obs-ci-checks
Browse files Browse the repository at this point in the history
Add test package spec for sub-packages
  • Loading branch information
mergify[bot] committed Jan 12, 2024
2 parents 19036c0 + 267f074 commit 32001ad
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dist/rpm/os-autoinst-devel-test.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
%define short_name os-autoinst-devel
Name: %{short_name}-test
Version: 4.6
Release: 0
Summary: Test package for %{short_name}
License: GPL-2.0-or-later
BuildRequires: %{short_name} == %{version}
ExcludeArch: %{ix86}

%description
.

%prep
# workaround to prevent post/install failing assuming this file for whatever
# reason
touch %{_sourcedir}/%{short_name}

%build
# just test requirements by installation

%install
# disable debug packages in package test to prevent error about missing files
%define debug_package %{nil}

%changelog
28 changes: 28 additions & 0 deletions dist/rpm/os-autoinst-openvswitch-test.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
%define name_ext -test
%define short_name os-autoinst-openvswitch
Name: %{short_name}%{?name_ext}
Version: 4.6
Release: 0
Summary: test package for %{short_name}
License: GPL-2.0-or-later
BuildRequires: %{short_name}
ExcludeArch: %{ix86}

%description
.

%prep
# workaround to prevent post/install failing assuming this file for whatever
# reason
touch %{_sourcedir}/%{short_name}

%build
# call one of the components but not openqa itself which would need a valid
# configuration
/usr/lib/os-autoinst/os-autoinst-openvswitch --help

%install
# disable debug packages in package test to prevent error about missing files
%define debug_package %{nil}

%changelog

0 comments on commit 32001ad

Please sign in to comment.