diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/.gitignore b/.gitignore index fca0e92..c65b443 100644 --- a/.gitignore +++ b/.gitignore @@ -46,5 +46,3 @@ upower-0.9.5.tar.bz2 /upower-v1.90.7.tar.bz2 /upower-v1.90.8.tar.bz2 /upower-v1.90.9.tar.bz2 -/upower-v1.90.10.tar.bz2 -/upower-v1.91.0.tar.bz2 diff --git a/plans/integration.fmf b/plans/integration.fmf deleted file mode 100644 index aa2d392..0000000 --- a/plans/integration.fmf +++ /dev/null @@ -1,19 +0,0 @@ -summary: Test for Upower -discover: - how: fmf -prepare: - - name: packages - how: install - package: - - upower - - upower-tests - - umockdev-devel - - dbus-x11 - - polkit-devel - - python3-dbus - - python3-dbusmock - - python3-gobject-base - - python3-pip - - python3-packaging -execute: - how: tmt diff --git a/sources b/sources index c586f4b..d2899f5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (upower-v1.91.0.tar.bz2) = 32801d3ee4c5086221a9f12062b0f2e6765b239f68a562c24ef7808999bb34e299e6acd31acf5c414cf41613709c97b20ad64d252e1d8ddf23183576b156cf93 +SHA512 (upower-v1.90.9.tar.bz2) = 7308e03125a5a888242253f9260f68283f5b53677c08dbc4d7e4d48cc6f600f50f8ab161d100f152138208d5119acddc90f0f19742aa8cca58e3a0ec54975110 diff --git a/tests/integration/main.fmf b/tests/integration/main.fmf deleted file mode 100644 index 683aaf3..0000000 --- a/tests/integration/main.fmf +++ /dev/null @@ -1,2 +0,0 @@ -summary: Upower integration test -test: bash ./run-it.sh diff --git a/tests/integration/run-it.sh b/tests/run-it.sh similarity index 87% rename from tests/integration/run-it.sh rename to tests/run-it.sh index 8b086bf..d480ee1 100755 --- a/tests/integration/run-it.sh +++ b/tests/run-it.sh @@ -2,7 +2,7 @@ set -u # main script -IT="${1:-/usr/libexec/installed-tests/upower/integration-test.py}" +IT="${1:-source/src/linux/integration-test.py}" # check if we need to install additional packages # which is the case if we are on RHEL 8 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..f7723ef --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,27 @@ +--- +- hosts: localhost + roles: + - role: standard-test-source + tags: + - always + required_packages: + - git-core + - role: standard-test-basic + tags: + - atomic + - classic + required_packages: + - upower + - polkit-libs + - python3-gobject-base + - python3-dbus + - python3-dbusmock + - python3-packaging + - umockdev-devel + tests: + - smoke: + dir: smoke + run: upower -d + - integration: + dir: . + run: ./run-it.sh source/src/linux/integration-test.py diff --git a/upower.spec b/upower.spec index 87a9f4c..44e665d 100644 --- a/upower.spec +++ b/upower.spec @@ -1,9 +1,9 @@ Summary: Power Management Service Name: upower -Version: 1.91.0 +Version: 1.90.9 Release: %autorelease License: GPL-2.0-or-later -URL: https://upower.freedesktop.org/ +URL: http://upower.freedesktop.org/ Source0: https://gitlab.freedesktop.org/upower/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 BuildRequires: meson @@ -102,8 +102,7 @@ mv $RPM_BUILD_ROOT%{_libexecdir}/upower $RPM_BUILD_ROOT%{_libexecdir}/installed- %ghost %dir %{_localstatedir}/lib/upower %dir %{_sysconfdir}/UPower %config %{_sysconfdir}/UPower/UPower.conf -%{_sysconfdir}/UPower/UPower.conf.d/README.md -%{_bindir}/upower +%{_bindir}/* %{_libexecdir}/upowerd %{_mandir}/man1/* %{_mandir}/man7/* @@ -134,8 +133,6 @@ mv $RPM_BUILD_ROOT%{_libexecdir}/upower $RPM_BUILD_ROOT%{_libexecdir}/installed- %files tests %{_libexecdir}/installed-tests/upower -%dir %{_datadir}/installed-tests/ -%dir %{_datadir}/installed-tests/upower/ %{_datadir}/installed-tests/upower/upower-integration.test %changelog