Enable running tests during rpm build
This commit is contained in:
parent
531d3ef1f7
commit
47d2f8285f
12
gjs.spec
12
gjs.spec
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: gjs
|
Name: gjs
|
||||||
Version: 1.67.1
|
Version: 1.67.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Javascript Bindings for GNOME
|
Summary: Javascript Bindings for GNOME
|
||||||
|
|
||||||
# The following files contain code from Mozilla which
|
# The following files contain code from Mozilla which
|
||||||
@ -31,6 +31,9 @@ BuildRequires: pkgconfig
|
|||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: sysprof-devel
|
BuildRequires: sysprof-devel
|
||||||
|
|
||||||
|
# xvfb for test suite
|
||||||
|
BuildRequires: xorg-x11-server-Xvfb
|
||||||
|
|
||||||
Requires: glib2%{?_isa} >= %{glib2_version}
|
Requires: glib2%{?_isa} >= %{glib2_version}
|
||||||
Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version}
|
Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version}
|
||||||
Requires: gtk3%{?_isa} >= %{gtk3_version}
|
Requires: gtk3%{?_isa} >= %{gtk3_version}
|
||||||
@ -70,7 +73,9 @@ the functionality of the installed gjs package.
|
|||||||
%meson_install
|
%meson_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
#meson_test
|
# we need to do this as meson_test macro begins with newline character
|
||||||
|
TEST_CMD="%meson_test"
|
||||||
|
xvfb-run -s "-screen 0 1600x1200x24" `echo $TEST_CMD | grep -v -e "^$"`
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -95,6 +100,9 @@ the functionality of the installed gjs package.
|
|||||||
%{_datadir}/installed-tests/
|
%{_datadir}/installed-tests/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 26 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.67.1-2
|
||||||
|
- Enable tests during rpmbuild
|
||||||
|
|
||||||
* Tue Jan 26 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.67.1-1
|
* Tue Jan 26 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.67.1-1
|
||||||
- Update to 1.67.1
|
- Update to 1.67.1
|
||||||
- Rebuild against mozjs78-78.7.0-1
|
- Rebuild against mozjs78-78.7.0-1
|
||||||
|
Loading…
Reference in New Issue
Block a user