Offline generation of 4.6.1736157351.7aa835c

4.6.1736157351.7aa835c
4.6.1736157351.7aa835c
4.6.1736157351.7aa835c

OBS-URL: https://build.opensuse.org/package/show/devel:openQA:tested/os-autoinst?expand=0&rev=1037
This commit is contained in:
Oliver Kurz 2025-01-06 18:32:08 +00:00 committed by Git OBS Bridge
commit 5c67abea68
38 changed files with 6326 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

5
_multibuild Normal file
View File

@ -0,0 +1,5 @@
<multibuild>
<flavor>os-autoinst-test</flavor>
<flavor>os-autoinst-devel-test</flavor>
<flavor>os-autoinst-openvswitch-test</flavor>
</multibuild>

22
_service Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="disabled">
<param name="extract">dist/rpm/os-autoinst.spec</param>
<param name="extract">dist/rpm/os-autoinst-test.spec</param>
<param name="extract">dist/rpm/os-autoinst-devel-test.spec</param>
<param name="extract">dist/rpm/os-autoinst-openvswitch-test.spec</param>
<param name="versionprefix">4.6</param>
<param name="versionformat">%ct.%h</param>
<param name="url">https://github.com/os-autoinst/os-autoinst.git</param>
<param name="scm">git</param>
<param name="revision">master</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">okurz@suse.com</param>
</service>
<service name="set_version" mode="disabled"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b03ad177e1e384e2d62d24dcecad7bddc3867c2344aacc653054245088e7de7
size 36961293

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:552e413af58be964681847f38d6bb655c78f30b1de8c6a6817911131f485673c
size 36962829

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3df0cdba61a9783e669c8c880548273c57d411d842e94d37b6f2cb144b80d665
size 36964877

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a7639adf897db3b1eef23043bd8ea0708984d5af8282bd72128fd1760d2b3a8b
size 36965901

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:06d675e1ef57b3fe3512caf35ebdeaa3f85820d36ca875118c70800a2167d700
size 36976653

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b2f92691d1f4214ab3378938e3ad9de9ff6fbaf69eaeacdc80b8793a11f800d1
size 36976653

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fe50ff879cb1481791c25a33c785d0cdbb1ef7b25340bcff676d870e13eaa180
size 36977165

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8843160199ad1f861bb30e23c5457a97fafc077b0a3f6b57fb87c3e5cba8169
size 36981261

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:637a84f5fd5e913ae94357c41186dc6bc9164def60bb49de61015b2335725004
size 36981261

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:40f66fc45d579fb6c94b5f99f4c1d573c6b3d1bfff273f19e1efd24d803e8ed9
size 36985357

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a59b177bcfb9c47fcc0622f777b5fcbad7fc4b6896b9a5d7cfa800aecb33187
size 36990477

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:49330192cfbeb98532a412e52e1074b9ad6ce6c50c664b0dbd436a31aeb086f5
size 36990477

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ee02d5e8094c15c80a4f4a2abd4cbf8b85064a181aa3c009be4b02a0c6ead082
size 36990989

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5bbee8fbe59f168fa159410266fd3f991f7707a4f38c2847c95e838f466b7d61
size 36990989

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:745675f8f88667a762649660ba96f47545b6e10e781fb403434abb9ff4ecaa94
size 36993549

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3daa2346ed6fe296cd61d2eb5209ce334d7837cf31b4f512b9a6a98ab7a7d946
size 36993549

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7927e87a9b1f6bb24860a062476798fa144099d0bc04f4cf2b33bb29cd2590be
size 36981261

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23f2a82cd8f43cb92177e0aa60f1156e8eca0035899835a744f08d7423b1a6c5
size 36981261

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:071e9362d96e769a2353691a592c9e68d276ae843fc7ae86df4aeed553db97eb
size 36981261

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42c63b6ec47fe492808cf2aecca32b7fc2bb1fe1b482bd6753772b863ffe43ba
size 42207757

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c81c88ace55baae484fb7261c279bdad70b34ea2cf68bd1b2a3ce7177a1ea67f
size 42210829

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d2a6fc4e3457ace9c62a8bb33cd107b3b2ae14f14308ec612354331ef6851df1
size 42210829

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef8a294a543384c1ad24aec2e383ff5a454c57d1603672995b366dff152de3cb
size 42215437

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f31b3b98b12047a80cf790229fa8058a17a850406acea412278f04e8f82f287
size 42214925

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed6f1917e496ba0350efff3d312bed57731ec867ef20e28dc7ef85df6e562ec1
size 42219533

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89eeb0df9ef0358cb4438eaa30551f489fcca8ebe4c5dadeda21f274ffe427f3
size 42220045

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7180018f77e7ff59bb0a4ae190ab40ed82904d043c9a0ccc43b146abb8b97dc2
size 42223629

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1abb786e7f78b2bd96069a6d8bdb12010d1a60ea1c1c3e4c858aa112fd397b6d
size 42224141

View File

@ -0,0 +1,43 @@
#
# spec file for package os-autoinst-devel-test
#
# 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/
#
%define short_name os-autoinst-devel
Name: %{short_name}-test
Version: 4.6.1736157351.7aa835c
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

View File

@ -0,0 +1,46 @@
#
# spec file for package os-autoinst-openvswitch-test
#
# 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/
#
%define name_ext -test
%define short_name os-autoinst-openvswitch
Name: %{short_name}%{?name_ext}
Version: 4.6.1736157351.7aa835c
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
# call one of the components but not openqa itself which would need a valid
# configuration
/usr/lib/os-autoinst/script/os-autoinst-openvswitch --help
%install
# disable debug packages in package test to prevent error about missing files
%define debug_package %{nil}
%changelog

55
os-autoinst-test.spec Normal file
View File

@ -0,0 +1,55 @@
#
# spec file for package os-autoinst-test
#
# 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/
#
%define name_ext -test
%define short_name os-autoinst
Name: %{short_name}%{?name_ext}
Version: 4.6.1736157351.7aa835c
Release: 0
Summary: test package for os-autoinst
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
# call one of the components but not openqa itself which would need a valid
# configuration
isotovideo --help
echo '1;' > main.pm
mkdir needles
cat - > vars.json <<EOF
{
"CASEDIR": "/tmp"
}
EOF
isotovideo -d casedir=$(pwd -P) productdir=$(pwd -P) |& tee isotovideo.log ||:
grep 'no kvm-img/qemu-img found' isotovideo.log
%install
# disable debug packages in package test to prevent error about missing files
%define debug_package %{nil}
%changelog

5671
os-autoinst.changes Normal file

File diff suppressed because it is too large Load Diff

4
os-autoinst.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: os-autoinst
version: 4.6.1736157351.7aa835c
mtime: 1736157351
commit: 7aa835c0ec26b110023beb7e29bb8e24ffa3108a

372
os-autoinst.spec Normal file
View File

@ -0,0 +1,372 @@
#
# spec file for package os-autoinst
#
# 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/
#
Name: os-autoinst
Version: 4.6.1736157351.7aa835c
Release: 0
Summary: OS-level test automation
License: GPL-2.0-or-later
Group: Development/Tools/Other
URL: https://github.com/os-autoinst/os-autoinst
Source0: %{name}-%{version}.tar.xz
%{perl_requires}
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400
# openSUSE Tumbleweed and Leap 15.4
%define opencv_require pkgconfig(opencv4)
%else
%define opencv_require pkgconfig(opencv)
%endif
# exclude additional sub packages that would pull in a lot of extra dependencies on SLE
%if 0%{?sle_version} && !0%{?is_opensuse}
%bcond_with devel_package
%bcond_with deps_package
%else
%bcond_without devel_package
%bcond_without deps_package
%endif
# The following line is generated from dependencies.yaml
%define build_base_requires %opencv_require gcc-c++ perl(Pod::Html) pkg-config pkgconfig(fftw3) pkgconfig(libpng) pkgconfig(sndfile) pkgconfig(theoraenc)
# The following line is generated from dependencies.yaml
%define build_requires %build_base_requires cmake ninja
# The following line is generated from dependencies.yaml
%define main_requires git-core perl(B::Deparse) perl(Carp) perl(Carp::Always) perl(Config) perl(Cpanel::JSON::XS) perl(Crypt::DES) perl(Cwd) perl(Data::Dumper) perl(Digest::MD5) perl(DynaLoader) perl(English) perl(Errno) perl(Exception::Class) perl(Exporter) perl(ExtUtils::testlib) perl(Fcntl) perl(File::Basename) perl(File::Find) perl(File::Map) perl(File::Path) perl(File::Temp) perl(File::Which) perl(File::chdir) perl(IO::Handle) perl(IO::Scalar) perl(IO::Select) perl(IO::Socket) perl(IO::Socket::INET) perl(IO::Socket::UNIX) perl(IPC::Open3) perl(IPC::Run::Debug) perl(IPC::System::Simple) perl(JSON::Validator) perl(List::MoreUtils) perl(List::Util) perl(Mojo::IOLoop::ReadWriteProcess) >= 0.26 perl(Mojo::JSON) perl(Mojo::Log) perl(Mojo::URL) perl(Mojo::UserAgent) perl(Mojolicious) >= 9.340.0 perl(Mojolicious::Lite) perl(Net::DBus) perl(Net::Domain) perl(Net::IP) perl(Net::SNMP) perl(Net::SSH2) perl(POSIX) perl(Scalar::Util) perl(Socket) perl(Socket::MsgHdr) perl(Term::ANSIColor) perl(Thread::Queue) perl(Time::HiRes) perl(Time::Moment) perl(Time::Seconds) perl(Try::Tiny) perl(XML::LibXML) perl(XML::SemanticDiff) perl(YAML::PP) perl(YAML::XS) perl(autodie) perl(base) perl(constant) perl(integer) perl(strict) perl(version) perl(warnings) perl-base rsync sshpass
# all requirements needed by the tests, do not require on this in the package
# itself or any sub-packages
# SLE is missing spell check requirements
%if !0%{?is_opensuse}
%bcond_with spellcheck
%else
%bcond_without spellcheck
%endif
%if %{with spellcheck}
# The following line is generated from dependencies.yaml
%define spellcheck_requires aspell-en aspell-spell perl(Pod::Spell)
%else
%define spellcheck_requires %{nil}
%endif
%if 0%{?sle_version} < 150200 && !0%{?is_opensuse}
%bcond_without yamllint
%else
%bcond_with yamllint
%endif
%if %{with yamllint}
# The following line is generated from dependencies.yaml
%define yamllint_requires python3-yamllint
%else
%define yamllint_requires %{nil}
%endif
%if 0%{?suse_version} >= 1550
%bcond_without black
%else
%bcond_with black
%endif
# SLE is missing Python support requirements
%if 0%{?is_opensuse}
%bcond_without python_support
%else
%bcond_with python_support
%endif
%if %{with python_support}
# The following line is generated from dependencies.yaml
%define python_support_requires perl(Inline::Python)
%else
%define python_support_requires %{nil}
%endif
%if %{with black}
# The following line is generated from dependencies.yaml
%define python_style_requires python3-black
%else
%define python_style_requires %{nil}
%endif
%ifarch ppc ppc64 ppc64le s390x
%define ocr_not_supported_by_arch 1
%endif
%if 0%{?ocr_not_supported_by_arch} || !0%{?is_opensuse}
%bcond_with ocr
%else
%bcond_without ocr
%endif
%if %{with ocr}
# The following line is generated from dependencies.yaml
%define ocr_requires tesseract-ocr tesseract-ocr-traineddata-english
%else
%define ocr_requires %{nil}
%endif
%ifnarch s390x
# The following line is generated from dependencies.yaml
%define test_non_s390_requires ipxe-bootimgs qemu-x86
%else
%define test_non_s390_requires %{nil}
%endif
# The following line is generated from dependencies.yaml
%define test_base_requires %main_requires cpio icewm perl(Benchmark) perl(Devel::Cover) perl(FindBin) perl(Pod::Coverage) perl(Test::Fatal) perl(Test::Mock::Time) perl(Test::MockModule) perl(Test::MockObject) perl(Test::MockRandom) perl(Test::Mojo) perl(Test::Most) perl(Test::Output) perl(Test::Pod) perl(Test::Strict) perl(Test::Warnings) >= 0.029 procps python3-setuptools qemu >= 4.0 qemu-tools socat xorg-x11-Xvnc xterm xterm-console
# The following line is generated from dependencies.yaml
%define test_version_only_requires perl(Mojo::IOLoop::ReadWriteProcess) >= 0.28
# The following line is generated from dependencies.yaml
%define test_requires %build_requires %ocr_requires %python_support_requires %spellcheck_requires %test_base_requires %test_non_s390_requires %yamllint_requires ffmpeg python3-Pillow-tk
# The following line is generated from dependencies.yaml
%define devel_requires %python_style_requires %test_requires ShellCheck file perl(Code::TidyAll) perl(Devel::Cover) perl(Module::CPANfile) perl(Perl::Tidy) perl(Template::Toolkit) sed shfmt
%define s390_zvm_requires /usr/bin/xkbcomp /usr/bin/Xvnc x3270 icewm xterm xterm-console xdotool fonts-config mkfontdir mkfontscale openssh-clients
%define ipmi_requires ipmitool
%define qemu_requires qemu-tools e2fsprogs
BuildRequires: %test_requires %test_version_only_requires
# For unbuffered output of Perl testsuite, especially when running it on OBS so timestamps in the log are actually useful
BuildRequires: expect
Requires: %main_requires
%if %{with ocr}
Recommends: tesseract-ocr
%endif
Recommends: %qemu_requires
Recommends: dumponlyconsole %s390_zvm_requires
Recommends: qemu >= 4.0.0
%if %{with python_support}
# Optional dependency for Python test API support
Recommends: %python_support_requires
%endif
# Optional dependency for crop.py
Recommends: python3-Pillow-tk
# Optional dependency for QEMU's built-in samba service (enabled via QEMU_ENABLE_SMBD=1)
Recommends: samba
# More efficient video encoding is done automatically if ffmpeg is present
Recommends: ffmpeg >= 4
Requires(pre): %{_bindir}/getent
Requires(pre): %{_sbindir}/useradd
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExcludeArch: %{ix86}
%description
The OS-autoinst project aims at providing a means to run fully
automated tests. Especially to run tests of basic and low-level
operating system components such as bootloader, kernel, installer
and upgrade, which can not easily and safely be tested with other
automated testing frameworks. However, it can just as well be used
to test firefox and openoffice operation on top of a newly
installed OS.
%if %{with devel_package}
%package devel
Summary: Development package pulling in all build+test dependencies
Group: Development/Tools/Other
Requires: %devel_requires
%description devel
Development package pulling in all build+test dependencies.
%endif
%package openvswitch
Summary: Openvswitch support for os-autoinst
Group: Development/Tools/Other
Requires: openvswitch
Requires: openvswitch-switch
Requires: os-autoinst
Requires(post): dbus-1
%description openvswitch
This package contains openvswitch support for os-autoinst.
%ifarch x86_64
%package qemu-kvm
Summary: Convenience package providing os-autoinst+qemu-kvm
Group: Development/Tools/Other
Requires: %qemu_requires
Requires: os-autoinst
Requires: qemu-kvm >= 4.0.0
%description qemu-kvm
%package qemu-x86
Summary: Convenience package providing os-autoinst+qemu-x86
Group: Development/Tools/Other
Requires: %qemu_requires
Requires: os-autoinst
Requires: qemu-x86 >= 4.0.0
%description qemu-x86
Convenience package providing os-autoinst and qemu-x86 dependencies.
%endif
%package swtpm
Summary: Convenience package providing os-autoinst+swtpm
Group: Development/Tools/Other
Requires: os-autoinst
Requires: swtpm
%description swtpm
Convenience package providing os-autoinst and swtpm dependencies.
%if %{with deps_package}
%package s390-deps
Summary: Convenience package providing os-autoinst + s390 worker jumphost deps
Group: Development/Tools/Other
Requires: %s390_zvm_requires
Requires: os-autoinst
%description s390-deps
Convenience package providing os-autoinst + s390 worker jumphost dependencies.
%package ipmi-deps
Summary: Convenience package providing os-autoinst + ipmi worker jumphost deps
Group: Development/Tools/Other
Requires: %ipmi_requires
Requires: os-autoinst
%description ipmi-deps
Convenience package providing os-autoinst + ipmi worker jumphost dependencies.
%endif
%prep
%setup -q
# don't require qemu within OBS
# and exclude known flaky tests in OBS check
# https://progress.opensuse.org/issues/52652
# 07-commands: https://progress.opensuse.org/issues/60755
# 29-backend-driver: https://progress.opensuse.org/issues/105061
# 29-backend-generalhw: https://progress.opensuse.org/issues/117352
for i in 07-commands 13-osutils 14-isotovideo 18-qemu-options 18-backend-qemu 29-backend-driver 29-backend-generalhw 99-full-stack; do
rm t/$i.t
done
# exclude unnecessary author tests
rm xt/00-tidy.t tools/tidyall
# Remove test relying on a git working copy
rm xt/30-make.t
# https://progress.opensuse.org/issues/114881
rm t/27-consoles-vmware.t
# exclude tests requiring OCR dependencies when those are disabled
%if %{without ocr}
rm t/02-test_ocr.t
%endif
%if 0%{?qemu_user_space_build}
# qemu emulation always starts a separate thread
rm t/28-signalblocker.t
%endif
%build
%define __builder ninja
%cmake \
-DOS_AUTOINST_DOC_DIR:STRING="%{_docdir}/%{name}" \
-DOS_AUTOINST_VERSION:STRING="%{version}" \
-DSYSTEMD_SERVICE_DIR:STRING="%{_unitdir}"
%cmake_build
%install
%cmake_install install-openvswitch
ls -lR %buildroot
find %{buildroot} -type f -name .packlist -print0 | xargs -0 --no-run-if-empty rm -f
find %{buildroot} -depth -type d -and -not -name distri -print0 | xargs -0 --no-run-if-empty rmdir 2>/dev/null || true
%perl_gen_filelist
#
# service symlink
mkdir -p %{buildroot}%{_sbindir}
ln -s ../sbin/service %{buildroot}%{_sbindir}/rcos-autoinst-openvswitch
#
# we need the stale symlinks to point to git
export NO_BRP_STALE_LINK_ERROR=yes
%check
export CI=1
# set TESSDATA_PREFIX for 02-ocr.t
export TESSDATA_PREFIX="%{_datadir}/tessdata/"
# account for sporadic slowness in build environments
# https://progress.opensuse.org/issues/89059
export OPENQA_TEST_TIMEOUT_SCALE_CI=20
# We don't want fatal warnings during package building
export PERL_TEST_WARNINGS_ONLY_REPORT_WARNINGS=1
# Enable verbose test output as we can not store test artifacts within package
# build environments in case of needing to investigate failures
export PROVE_ARGS="--timer -v --nocolor"
cd %{__builddir}
%cmake_build check-pkg-build
%pre openvswitch
%service_add_pre os-autoinst-openvswitch.service
%post openvswitch
%service_add_post os-autoinst-openvswitch.service
if test $1 -eq 1 ; then
%{_bindir}/dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig 2>&1 || :
fi
%preun openvswitch
%service_del_preun os-autoinst-openvswitch.service
%postun openvswitch
%service_del_postun os-autoinst-openvswitch.service
%files -f %{name}.files
%defattr(-,root,root)
%{_docdir}/os-autoinst
%dir %{_prefix}/lib/os-autoinst
%{_prefix}/lib/os-autoinst/videoencoder
%{_prefix}/lib/os-autoinst/basetest.pm
#
%{_prefix}/lib/os-autoinst/dmidata
#
%{_prefix}/lib/os-autoinst/bmwqemu.pm
%{_prefix}/lib/os-autoinst/commands.pm
%{_prefix}/lib/os-autoinst/distribution.pm
%{_prefix}/lib/os-autoinst/testapi.pm
%{_prefix}/lib/os-autoinst/mmapi.pm
%{_prefix}/lib/os-autoinst/lockapi.pm
%{_prefix}/lib/os-autoinst/log.pm
%{_prefix}/lib/os-autoinst/cv.pm
%{_prefix}/lib/os-autoinst/ocr.pm
%{_prefix}/lib/os-autoinst/needle.pm
%{_prefix}/lib/os-autoinst/osutils.pm
%{_prefix}/lib/os-autoinst/signalblocker.pm
%{_prefix}/lib/os-autoinst/myjsonrpc.pm
%{_prefix}/lib/os-autoinst/backend
%{_prefix}/lib/os-autoinst/OpenQA
%{_prefix}/lib/os-autoinst/consoles
%{_prefix}/lib/os-autoinst/autotest.pm
%{_prefix}/lib/os-autoinst/*.py
%dir %{_prefix}/lib/os-autoinst/script
%{_prefix}/lib/os-autoinst/script/check_qemu_oom
%{_prefix}/lib/os-autoinst/script/dewebsockify
%{_prefix}/lib/os-autoinst/script/vnctest
%{_prefix}/lib/os-autoinst/script/crop.py
%dir %{_prefix}/lib/os-autoinst/schema
%{_prefix}/lib/os-autoinst/schema/Wheels-01.yaml
%files openvswitch
%defattr(-,root,root)
%dir %{_prefix}/lib/os-autoinst/script
%{_prefix}/lib/os-autoinst/script/os-autoinst-openvswitch
%{_unitdir}/os-autoinst-openvswitch.service
%config /etc/dbus-1/system.d/org.opensuse.os_autoinst.switch.conf
%{_sbindir}/rcos-autoinst-openvswitch
%if %{with devel_package}
%files devel
%endif
%ifarch x86_64
%files qemu-kvm
%files qemu-x86
%endif
%files swtpm
%if %{with deps_package}
%files s390-deps
%files ipmi-deps
%endif
%changelog