File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ Source1: %{name}-rpmlintrc
6161## PATCH-FIX-OPENSUSE kiwi-revert-bls-default-for-suse.patch -- temporary until opensuse has bls
6262Patch1001: kiwi-revert-bls-default-for-suse.patch
6363BuildRoot: %{_tmppath}/%{name}-%{version}-build
64+ BuildRequires: kiwi-systemdeps
65+ BuildRequires: python%{python3_pkgversion}-pytest
66+ BuildRequires: python%{python3_pkgversion}-pip
67+ BuildRequires: python%{python3_pkgversion}-anymarkup-core
68+ BuildRequires: python%{python3_pkgversion}-toml
69+ BuildRequires: python%{python3_pkgversion}-xmltodict
6470%if 0%{?fedora} || 0%{?suse_version}
6571BuildRequires: fdupes
6672%endif
@@ -664,6 +670,11 @@ make -C doc man
664670# Build application wheel
665671%{__python3} -m build --no-isolation --wheel
666672
673+ # Run tests
674+ pip install --break-system-packages dist/kiwi-%{version}-py3-none-any.whl
675+ cd test/unit
676+ pytest
677+
667678%install
668679# Install application
669680%{__python3} -m installer --destdir %{buildroot} %{?is_deb:--no-compile-bytecode} dist/*.whl
You can’t perform that action at this time.
0 commit comments