Disable meson test suite at build time (enable_tests=0)

The meson test suite requires dbus-launch and DRI3/GPU support not
available in hermetic Konflux/mock build containers. Disable it via
enable_tests=0; tests are covered by QE gating instead.

Resolves: RHEL-183553
This commit is contained in:
Tomas Pelka 2026-07-01 17:06:12 +02:00
parent bd0af6b143
commit 069bc6cc7f

View File

@ -3,6 +3,7 @@
%global mozjs78_version 78.10.0-1
%global bundled_mozjs 1
%global enable_tests 0
%if 0%{?bundled_mozjs}
%global mozjs_major 78
@ -20,7 +21,7 @@
Name: gjs
Version: 1.68.6
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Javascript Bindings for GNOME
# The following files contain code from Mozilla which
@ -277,7 +278,9 @@ PYTHONPATH=tests/lib %{__python3} jit-test/jit_test.py -s -t 1800 --no-progress
popd
%endif
%if 0%{?enable_tests}
%{shrink:xvfb-run -s "-screen 0 1600x1200x24" %meson_test --timeout-multiplier=5}
%endif
%files
%license COPYING
@ -302,6 +305,10 @@ popd
%{_datadir}/installed-tests/
%changelog
* Tue Jul 01 2026 Tomas Pelka <tpelka@redhat.com> - 1.68.6-5
- Disable meson test suite at build time (enable_tests=0); covered by QE gating
Resolves: RHEL-183553
* Tue May 16 2023 Florian Müllner <fmuellner@redhat.com> - 1.68.6-4
- Always initialize callback return value
Resolves: #2196877