ibus-typing-booster/tests/xwfb-script.sh
Mike FABIAN 2036494ada Resolves: RHEL-36638 Update to 2.25.9 and Remove dependency on Xvfb from CI tests
- Translation update from Weblate (cs 100%)
- Update emoji annotations from CLDR
- Drop Python < 3.6 support
- Fix test_0_gtk.py: typing booster now avoids clearing the input in do_reset() when the preedit is empty
- Remove dependency on Xvfb from ibus-typing-booster.spec
- Support compose sequences containing ASCII keys written as <U00XX> code points
  (Resolves: https://github.com/mike-fabian/ibus-typing-booster/issues/510)
- Translation update from Weblate (pt 91.3%)
2024-06-19 17:50:52 +02:00

33 lines
921 B
Bash
Executable File

#!/bin/bash
# Run this with `xwfb-run -e /tmp/xwfb-run.log -n 99 xwfb-script.sh`
# Redirect stderr to stdout:
exec 2>&1
# without setting GDK_BACKEND=x11, Gtk programs cannot open windows in xfwb-run:
export GDK_BACKEND=x11
export XDG_SESSION_TYPE=x11
echo "starting mutter ..."
mutter --x11 &
sleep 5
echo "mutter started"
ibus-daemon --verbose \
--replace \
--single \
--desktop=mutter \
--panel=disable \
--config=disable &
sleep 5
echo "ibus-daemon started."
pushd /usr/share/ibus-typing-booster/engine
/usr/libexec/installed-tests/ibus-typing-booster/test_0_gtk.py -v &
TEST_PID=$!
# A screenshot for debugging can be made here:
#sleep 1
#import -window root /tmp/screenshot.png
#echo "screenshot done."
# Wait for test_0_gtk.py to finish and get its exit code
wait $TEST_PID
EXIT_CODE=$?
echo "The exit code of test_0_gtk.py: $EXIT_CODE"
exit $EXIT_CODE