Add gtk3-tests sub package
- Delete tmt package in tests - Replace desktop-qe.desktop-ci.tier1-gating with osci.brew-build.tier0 which CI is not maintained by my team.
This commit is contained in:
parent
c581ad8356
commit
35b8892693
@ -3,4 +3,5 @@ product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
||||
# this is the testcase identifier, which OSCI pipeline uses
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
Name: libdbusmenu
|
||||
Version: %{ubuntu_release}.0
|
||||
Release: 28%{?dist}
|
||||
Release: 29%{?dist}
|
||||
Summary: Library for passing menus over DBus
|
||||
|
||||
# All files installed in final rpms use C sources with dual licensing headers.
|
||||
@ -149,6 +149,14 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
The %{name}-tools package contains helper tools for developing applications
|
||||
that use %{name}.
|
||||
|
||||
%package gtk3-tests
|
||||
Summary: Test tools for the dbusmenu libraries
|
||||
Requires: %{name}-gtk3%{?_isa} = %{version}-%{release}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description gtk3-tests
|
||||
The %{name}-tests package contains test tools that use %{name}-gtk3.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version} -c
|
||||
@ -171,6 +179,10 @@ build(){
|
||||
pushd %{name}-gtk3-%{version}
|
||||
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
||||
build --with-gtk=3
|
||||
cd tests
|
||||
# Need dbus-test-runner package for other tests.
|
||||
make test-glib-simple-items
|
||||
cd ..
|
||||
popd
|
||||
|
||||
%if %{with gtk2}
|
||||
@ -185,6 +197,10 @@ popd
|
||||
pushd %{name}-gtk3-%{version}
|
||||
%make_install
|
||||
find %{buildroot} -name '*.la' -delete
|
||||
install -pm 755 -D test-driver \
|
||||
$RPM_BUILD_ROOT%{_libexecdir}/%{name}-gtk3/test-driver
|
||||
install -pm 755 -D tests/.libs/test-glib-simple-items \
|
||||
$RPM_BUILD_ROOT%{_libexecdir}/%{name}-gtk3/test-glib-simple-items
|
||||
popd
|
||||
|
||||
%if %{with gtk2}
|
||||
@ -283,7 +299,14 @@ done
|
||||
%dir %{_datadir}/%{name}/json/
|
||||
%{_datadir}/%{name}/json/test-gtk-label.json
|
||||
|
||||
%files gtk3-tests
|
||||
%{_libexecdir}/%{name}-gtk3/test-glib-simple-items
|
||||
%{_libexecdir}/%{name}-gtk3/test-driver
|
||||
|
||||
%changelog
|
||||
* Sun May 12 2024 Takao Fujiwara <fujiwara@redhat.com> - 16.04.0-29
|
||||
- Add gtk3-tests sub package
|
||||
|
||||
* Sat May 11 2024 Takao Fujiwara <fujiwara@redhat.com> - 16.04.0-28
|
||||
- Add CI
|
||||
|
||||
|
@ -2,7 +2,6 @@ summary: libdbusmenu-gtk3-tests tests
|
||||
test: ./test.sh
|
||||
framework: beakerlib
|
||||
require:
|
||||
- tmt
|
||||
- git
|
||||
- libdbusmenu-gtk3-tests
|
||||
- xorg-x11-server-Xvfb
|
||||
|
Loading…
Reference in New Issue
Block a user