generated from demus/python3-rpm-template
Run tests during rpmbuild
This commit is contained in:
@@ -15,6 +15,7 @@ Source3: huami-token-generator
|
||||
Source4: configure-zepp-timer
|
||||
Source5: enable-zepp-timer
|
||||
Source6: README-user-systemd.md
|
||||
Source7: test
|
||||
Patch: 01-switch-to-pycrytodomex.patch
|
||||
|
||||
BuildSystem: pyproject
|
||||
@@ -48,6 +49,11 @@ Additionally, it downloads the AGPS data packs, cep_alm_pak.zip and cep_7days.zi
|
||||
%{__install} -D -m 0755 -t %{buildroot}%{_bindir} %{SOURCE5}
|
||||
%pyproject_save_files -L %{modname}
|
||||
|
||||
%check -a
|
||||
%{pytest}
|
||||
cd %{_sourcedir}
|
||||
bats test
|
||||
|
||||
%files -n %{pkgname} -f %{pyproject_files}
|
||||
%doc README.md README-user-systemd.md
|
||||
%{_bindir}/*
|
||||
|
||||
Reference in New Issue
Block a user