2019-10-17 06:45:08 +00:00
|
|
|
---
|
2024-05-15 04:54:13 +00:00
|
|
|
- name: Check if Fedora desktop
|
|
|
|
register: fedora_desktop
|
|
|
|
stat:
|
|
|
|
path: "/etc/fedora-release"
|
2019-10-17 06:45:08 +00:00
|
|
|
|
|
|
|
- name: Build and install GNOME installed-tests testing harness
|
|
|
|
block:
|
2024-05-15 04:54:13 +00:00
|
|
|
- name: Installing common GNOME desktop components
|
2019-10-17 06:45:08 +00:00
|
|
|
package:
|
|
|
|
name:
|
2024-05-11 09:20:59 +00:00
|
|
|
# IBus CI sets
|
2019-10-17 06:45:08 +00:00
|
|
|
- xorg-x11-server-Xvfb
|
|
|
|
- ibus
|
|
|
|
- ibus-desktop-testing
|
2024-05-11 09:20:59 +00:00
|
|
|
- dbus-x11
|
2024-05-11 09:21:51 +00:00
|
|
|
# https://pagure.io/fedora-comps/blob/main/f/comps-f38.xml.in
|
2024-05-11 09:20:59 +00:00
|
|
|
# dnf group info GNOME
|
2024-05-11 09:21:51 +00:00
|
|
|
# mandatory
|
|
|
|
- dconf
|
|
|
|
- gdm
|
|
|
|
- gnome-connections
|
|
|
|
- gnome-control-center
|
|
|
|
- gnome-initial-setup
|
2024-05-11 09:20:59 +00:00
|
|
|
- gnome-session-wayland-session
|
|
|
|
- gnome-session-xsession
|
|
|
|
- gnome-settings-daemon
|
|
|
|
- gnome-shell
|
2024-05-11 09:21:51 +00:00
|
|
|
- gnome-software
|
|
|
|
- gnome-terminal
|
|
|
|
- gnome-text-editor
|
|
|
|
- nautilus
|
2024-05-11 09:20:59 +00:00
|
|
|
- polkit
|
2024-05-11 09:21:51 +00:00
|
|
|
# default
|
2024-05-11 09:20:59 +00:00
|
|
|
- adobe-source-code-pro-fonts
|
|
|
|
- at-spi2-atk
|
|
|
|
- at-spi2-core
|
2024-05-11 09:21:51 +00:00
|
|
|
- avahi
|
|
|
|
- baobab
|
|
|
|
# Sometimes version mismatch with gnome-shell in rawhide
|
|
|
|
#- chrome-gnome-shell
|
|
|
|
- evince
|
|
|
|
- fprintd-pam
|
2024-05-11 09:20:59 +00:00
|
|
|
- glib-networking
|
2024-05-11 09:21:51 +00:00
|
|
|
- gnome-bluetooth
|
|
|
|
- gnome-calculator
|
|
|
|
- gnome-characters
|
2024-05-11 09:20:59 +00:00
|
|
|
- gnome-classic-session
|
|
|
|
- gnome-clocks
|
|
|
|
- gnome-color-manager
|
2024-05-11 09:21:51 +00:00
|
|
|
- gnome-disk-utility
|
2024-05-11 09:20:59 +00:00
|
|
|
- gnome-font-viewer
|
|
|
|
- gnome-logs
|
2024-05-11 09:21:51 +00:00
|
|
|
- gnome-remote-desktop
|
|
|
|
- gnome-system-monitor
|
|
|
|
- gnome-terminal-nautilus
|
|
|
|
- gnome-user-docs
|
|
|
|
- gvfs-fuse
|
|
|
|
- gvfs-goa
|
|
|
|
- gvfs-gphoto2
|
|
|
|
- gvfs-mtp
|
|
|
|
- gvfs-smb
|
|
|
|
- libcanberra-gtk3
|
|
|
|
- libproxy-duktape
|
|
|
|
- librsvg2
|
|
|
|
- libsane-hpaio
|
|
|
|
- mesa-dri-drivers
|
|
|
|
- mesa-libEGL
|
|
|
|
- ModemManager
|
|
|
|
- NetworkManager-adsl
|
|
|
|
- NetworkManager-ppp
|
|
|
|
- NetworkManager-wwan
|
|
|
|
- orca
|
|
|
|
- PackageKit-command-not-found
|
|
|
|
- PackageKit-gtk3-module
|
|
|
|
- sane-backends-drivers-scanners
|
|
|
|
- systemd-oomd-defaults
|
|
|
|
- tracker
|
|
|
|
- tracker-miners
|
|
|
|
- xdg-desktop-portal
|
|
|
|
- xdg-desktop-portal-gnome
|
|
|
|
- xdg-desktop-portal-gtk
|
|
|
|
- xdg-user-dirs-gtk
|
2024-05-15 04:54:13 +00:00
|
|
|
- name: Installing Fedora specific GNOME desktop components
|
|
|
|
when: fedora_desktop.stat.exists == true
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- gnome-screenshot
|
|
|
|
- gnome-boxes
|
|
|
|
- yelp
|
|
|
|
- cheese
|
|
|
|
- eog
|
|
|
|
- evince-djvu
|
|
|
|
- gnome-backgrounds
|
|
|
|
- gnome-contacts
|
|
|
|
- gnome-maps
|
|
|
|
- gnome-photos
|
|
|
|
- gnome-themes-extra
|
|
|
|
- gnome-user-share
|
|
|
|
- gnome-weather
|
|
|
|
- gvfs-afc
|
|
|
|
- gvfs-afp
|
|
|
|
- gvfs-archive
|
|
|
|
- NetworkManager-openconnect-gnome
|
|
|
|
- NetworkManager-openvpn-gnome
|
|
|
|
- NetworkManager-pptp-gnome
|
|
|
|
- NetworkManager-ssh-gnome
|
|
|
|
- NetworkManager-vpnc-gnome
|
|
|
|
- rygel
|
|
|
|
- simple-scan
|
|
|
|
- sushi
|
|
|
|
- totem
|
|
|
|
- name: Installing GNOME installed-tests testing harness
|
|
|
|
when: fedora_desktop.stat.exists == true
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- gnome-desktop-testing
|
|
|
|
- name: Installing build environment
|
|
|
|
when: fedora_desktop.stat.exists == false
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- autoconf
|
|
|
|
- automake
|
|
|
|
- make
|
|
|
|
- gcc
|
|
|
|
- git
|
|
|
|
- libtool
|
|
|
|
|
|
|
|
- name: Fetching GNOME installed-tests testing harness source from remote repository
|
|
|
|
when: fedora_desktop.stat.exists == false
|
|
|
|
git:
|
|
|
|
repo: 'https://gitlab.gnome.org/GNOME/gnome-desktop-testing.git'
|
|
|
|
dest: gnome-desktop-testing
|
|
|
|
force: yes
|
|
|
|
|
|
|
|
- name: Checkout v2021.1 tag in GNOME installed-tests testing harness
|
|
|
|
when: fedora_desktop.stat.exists == false
|
|
|
|
command: git checkout -b v2021.1 refs/tags/v2021.1
|
|
|
|
args:
|
|
|
|
chdir: gnome-desktop-testing
|
|
|
|
|
|
|
|
- name: Configure GNOME installed-tests testing harness build
|
|
|
|
when: fedora_desktop.stat.exists == false
|
|
|
|
command: ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
|
|
|
args:
|
|
|
|
chdir: gnome-desktop-testing
|
|
|
|
|
|
|
|
- name: Build GNOME installed-tests testing harness
|
|
|
|
when: fedora_desktop.stat.exists == false
|
|
|
|
command: make
|
|
|
|
args:
|
|
|
|
chdir: gnome-desktop-testing
|
|
|
|
|
|
|
|
- name: Install GNOME installed-tests testing harness
|
|
|
|
when: fedora_desktop.stat.exists == false
|
|
|
|
command: make install
|
|
|
|
args:
|
|
|
|
chdir: gnome-desktop-testing
|
2019-10-17 06:45:08 +00:00
|
|
|
|
|
|
|
- name: Start IBus installed-tests testing harness
|
2020-07-09 13:57:02 +00:00
|
|
|
environment:
|
|
|
|
ANSIBLE: 1
|
|
|
|
TMPDIR: '{{ remote_artifacts }}'
|
|
|
|
G_MESSAGES_DEBUG: 'all'
|
2024-05-11 09:20:59 +00:00
|
|
|
LANG: 'C.UTF-8'
|
2019-10-17 06:45:08 +00:00
|
|
|
block:
|
|
|
|
- name: Execute IBus tests
|
|
|
|
shell: |
|
|
|
|
set -e
|
2024-05-11 09:20:59 +00:00
|
|
|
# Delete LC_CTYPE=C.UTF-8
|
|
|
|
export -n LC_CTYPE
|
2019-10-17 06:45:08 +00:00
|
|
|
status="FAIL: frame"
|
|
|
|
if [ -f $HOME/.config/anthy/last-record2_default.utf8 ] ; then \
|
|
|
|
rm $HOME/.config/anthy/last-record2_default.utf8
|
|
|
|
fi
|
|
|
|
if [ -f $HOME/.anthy/last-record2_default.utf8 ] ; then \
|
|
|
|
rm $HOME/.anthy/last-record2_default.utf8
|
|
|
|
fi
|
2020-07-09 13:57:02 +00:00
|
|
|
ibus-desktop-testing-runner \
|
2019-10-17 06:45:08 +00:00
|
|
|
--no-graphics \
|
|
|
|
--runner=gnome \
|
2020-07-09 13:57:02 +00:00
|
|
|
--timeout=1200 \
|
2019-10-17 06:45:08 +00:00
|
|
|
--tests='{{ installed_test_name }}' \
|
|
|
|
--output='{{ remote_artifacts }}/{{ installed_test_name }}.log' \
|
|
|
|
--result='{{ remote_artifacts }}/test.log' \
|
|
|
|
null
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
status="PASS: frame"
|
|
|
|
fi
|
2024-05-11 09:20:59 +00:00
|
|
|
if [ -f /var/tmp/ibus-ci-autostart.log ] ; then
|
|
|
|
echo "#### /var/tmp/ibus-ci-autostart.log"
|
|
|
|
cat /var/tmp/ibus-ci-autostart.log
|
|
|
|
rm /var/tmp/ibus-ci-autostart.log
|
|
|
|
echo "#"
|
|
|
|
fi
|
2021-03-21 06:35:18 +00:00
|
|
|
echo "${status}" >> {{ remote_artifacts }}/test.log
|
|
|
|
echo "#### {{ remote_artifacts }}/{{ installed_test_name }}.log"
|
|
|
|
if [ -f {{ remote_artifacts }}/{{ installed_test_name }}.log ] ; then
|
|
|
|
cat {{ remote_artifacts }}/{{ installed_test_name }}.log
|
|
|
|
fi
|
|
|
|
echo "#"
|
|
|
|
echo "#### {{ remote_artifacts }}/test.log"
|
|
|
|
if [ -f {{ remote_artifacts }}/test.log ] ; then
|
|
|
|
cat {{ remote_artifacts }}/test.log
|
|
|
|
fi
|
|
|
|
echo "#"
|
2019-10-17 06:45:08 +00:00
|
|
|
|
|
|
|
- name: Check the results
|
2024-05-11 09:20:59 +00:00
|
|
|
script: check-results.sh "{{ remote_artifacts }}/test.log" "0"
|
2019-10-17 06:45:08 +00:00
|
|
|
register: test_fails
|
2021-03-21 06:35:18 +00:00
|
|
|
failed_when: False
|
2019-10-17 06:45:08 +00:00
|
|
|
|
|
|
|
- name: Set role result
|
|
|
|
set_fact:
|
|
|
|
role_result: "{{ test_fails.stdout }}"
|
|
|
|
role_result_failed: "{{ (test_fails.stdout|d|length > 0) or (test_fails.stderr|d|length > 0) }}"
|
|
|
|
role_result_msg: "{{ test_fails.stdout|d('tests failed.') }}"
|
|
|
|
|
|
|
|
- include_role:
|
|
|
|
name: str-common-final
|
|
|
|
|