Do not run the Gtk GUI test from the spec file.
This commit is contained in:
parent
a5146d6de5
commit
5f7dcf546e
@ -4,7 +4,7 @@
|
||||
|
||||
Name: ibus-typing-booster
|
||||
Version: 2.8.3
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: A completion input method
|
||||
License: GPLv3+, ASL 2.0
|
||||
URL: https://mike-fabian.github.io/ibus-typing-booster/
|
||||
@ -168,39 +168,30 @@ dconf write /org/freedesktop/ibus/engine/typing-booster/keybindings "{'next_inpu
|
||||
dconf dump /
|
||||
export DISPLAY=:1
|
||||
Xvfb $DISPLAY -screen 0 1024x768x16 &
|
||||
make -C tests run_tests
|
||||
pushd tests
|
||||
./run_tests -v test_compose_sequences.py
|
||||
./run_tests -v test_emoji_candidates.py
|
||||
./run_tests -v test_emoji_similar.py
|
||||
./run_tests -v test_emoji_unicode_version.py
|
||||
./run_tests -v test_hunspell_suggest.py
|
||||
./run_tests -v test_itb.py
|
||||
./run_tests -v test_itb_util.py
|
||||
./run_tests -v test_keyvals_to_keycodes.py
|
||||
./run_tests -v test_m17n_db_info.py
|
||||
./run_tests -v test_m17n_translit.py
|
||||
# A window manager and and ibus-daemon are needed to run the GUI
|
||||
# test tests/test_gtk.py, for example i3 can be used.
|
||||
#
|
||||
# To debug what is going on if there is a problem with the GUI test
|
||||
# add BuildRequires: x11vnc and start a vnc server:
|
||||
#
|
||||
# x11vnc -display $DISPLAY -unixsock /tmp/mysock -bg -nopw -listen localhost -xkb
|
||||
#
|
||||
# Then one can view what is going on outside of the chroot with vncviewer:
|
||||
#
|
||||
# vncviewer /var/lib/mock/fedora-32-x86_64/root/tmp/mysock
|
||||
#
|
||||
# The GUI test will be skipped if there is no DISPLAY or no
|
||||
# window manager.
|
||||
#
|
||||
ibus-daemon -drx
|
||||
touch /tmp/i3config
|
||||
i3 -c /tmp/i3config &
|
||||
sleep 1
|
||||
XDG_SESSION_TYPE=x11 ./run_tests -v test_0_gtk.py
|
||||
popd
|
||||
# A window manager and and ibus-daemon are needed to run the GUI
|
||||
# test tests/test_gtk.py, for example i3 can be used.
|
||||
#
|
||||
# To debug what is going on if there is a problem with the GUI test
|
||||
# add BuildRequires: x11vnc and start a vnc server:
|
||||
#
|
||||
# x11vnc -display $DISPLAY -unixsock /tmp/mysock -bg -nopw -listen localhost -xkb
|
||||
#
|
||||
# Then one can view what is going on outside of the chroot with vncviewer:
|
||||
#
|
||||
# vncviewer /var/lib/mock/fedora-32-x86_64/root/tmp/mysock
|
||||
#
|
||||
# The GUI test will be skipped if XDG_SESSION_TYPE is not x11 or wayland.
|
||||
#
|
||||
#ibus-daemon -drx
|
||||
#touch /tmp/i3config
|
||||
#i3 -c /tmp/i3config &
|
||||
#export XDG_SESSION_TYPE=x11
|
||||
|
||||
make check && rc=0 || rc=1
|
||||
cat tests/*.log
|
||||
if [ $rc != 0 ] ; then
|
||||
exit $rc
|
||||
fi
|
||||
|
||||
%post
|
||||
[ -x %{_bindir}/ibus ] && \
|
||||
@ -239,6 +230,9 @@ popd
|
||||
%{_datadir}/applications/emoji-picker.desktop
|
||||
|
||||
%changelog
|
||||
* Fri May 15 2020 Mike FABIAN <mfabian@redhat.com> - 2.8.3-2
|
||||
- Do not run the Gtk GUI test from the spec file.
|
||||
|
||||
* Sun May 03 2020 Mike FABIAN <mfabian@redhat.com> - 2.8.3-1
|
||||
- Update to 2.8.3
|
||||
- Save default dictionaries and input methods when making the lists
|
||||
|
Loading…
Reference in New Issue
Block a user