Merge branch 'f40' into c10s
This commit is contained in:
commit
f7acd59de7
@ -1,11 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
TEST_LOG="test.log"
|
TEST_LOG="test.log"
|
||||||
TEST_RUN_IN_RAWHIDE="1"
|
TEST_RUN_IN_RAWHIDE=1
|
||||||
|
|
||||||
|
declare -i TEST_RUN_IN_RAWHIDE
|
||||||
|
|
||||||
if [ $# -gt 0 ] ; then
|
if [ $# -gt 0 ] ; then
|
||||||
TEST_LOG="$1"
|
TEST_LOG="$1"
|
||||||
TEST_RUN_IN_RAWHIDE="$2"
|
TEST_RUN_IN_RAWHIDE=$2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gen_results()
|
gen_results()
|
||||||
@ -15,7 +17,6 @@ gen_results()
|
|||||||
TEST_STATUS_UPPER="$(echo "$TEST_STATUS" | tr '[:lower:]' '[:upper:]')"
|
TEST_STATUS_UPPER="$(echo "$TEST_STATUS" | tr '[:lower:]' '[:upper:]')"
|
||||||
cat > results.xml << _EOF
|
cat > results.xml << _EOF
|
||||||
results:
|
results:
|
||||||
|
|
||||||
- test: results
|
- test: results
|
||||||
result: $TEST_STATUS
|
result: $TEST_STATUS
|
||||||
runtime: $TEST_RUNTIME
|
runtime: $TEST_RUNTIME
|
||||||
@ -39,12 +40,13 @@ if [ $TEST_RUN_IN_RAWHIDE -eq 0 ] ; then
|
|||||||
IS_RAWHIDE="$(grep -i rawhide /etc/fedora-release)"
|
IS_RAWHIDE="$(grep -i rawhide /etc/fedora-release)"
|
||||||
if [ x"$IS_RAWHIDE" != x ] ; then
|
if [ x"$IS_RAWHIDE" != x ] ; then
|
||||||
gen_results "0" "pass"
|
gen_results "0" "pass"
|
||||||
|
echo -n PASS
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -f $TEST_LOG ] ; then
|
if [ ! -f $TEST_LOG ] ; then
|
||||||
gen_results "0" "fail"
|
gen_results "0" "fail"
|
||||||
echo ERROR
|
echo -n ERROR
|
||||||
else
|
else
|
||||||
FAIL="$(grep "^FAIL: " $TEST_LOG | grep -v 'FAIL: 0$')"
|
FAIL="$(grep "^FAIL: " $TEST_LOG | grep -v 'FAIL: 0$')"
|
||||||
RUNTIME_FAIL="$(grep -v 'frame' $TEST_LOG | grep "^FAIL: " | sed -e "s/FAIL: //")"
|
RUNTIME_FAIL="$(grep -v 'frame' $TEST_LOG | grep "^FAIL: " | sed -e "s/FAIL: //")"
|
||||||
@ -58,9 +60,10 @@ else
|
|||||||
RUNTIME="$(expr $RUNTIME_FAIL + $RUNTIME_PASS)"
|
RUNTIME="$(expr $RUNTIME_FAIL + $RUNTIME_PASS)"
|
||||||
if [ x"$FAIL" != x ] ; then
|
if [ x"$FAIL" != x ] ; then
|
||||||
gen_results "$RUNTIME" "fail"
|
gen_results "$RUNTIME" "fail"
|
||||||
echo ERROR
|
echo -n ERROR
|
||||||
else
|
else
|
||||||
gen_results "$RUNTIME" "pass"
|
gen_results "$RUNTIME" "pass"
|
||||||
|
echo -n PASS
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: Check if GNOME installed-tests testing harness is installed
|
- name: Check if Fedora desktop
|
||||||
register: gnome_desktop_testing_runner
|
register: fedora_desktop
|
||||||
find:
|
stat:
|
||||||
paths: "{{ ansible_env.PATH.split(':') }}"
|
path: "/etc/fedora-release"
|
||||||
pattern: gnome-desktop-testing-runner
|
|
||||||
|
|
||||||
- name: Build and install GNOME installed-tests testing harness
|
- name: Build and install GNOME installed-tests testing harness
|
||||||
when: gnome_desktop_testing_runner.matched == 0
|
|
||||||
block:
|
block:
|
||||||
- name: Installing build dependencies for IBus and GNOME installed-tests testing harness
|
- name: Installing common GNOME desktop components
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
# IBus CI sets
|
# IBus CI sets
|
||||||
@ -16,14 +14,11 @@
|
|||||||
- ibus
|
- ibus
|
||||||
- ibus-desktop-testing
|
- ibus-desktop-testing
|
||||||
- dbus-x11
|
- dbus-x11
|
||||||
- gnome-desktop-testing
|
|
||||||
- gnome-screenshot
|
|
||||||
# https://pagure.io/fedora-comps/blob/main/f/comps-f38.xml.in
|
# https://pagure.io/fedora-comps/blob/main/f/comps-f38.xml.in
|
||||||
# dnf group info GNOME
|
# dnf group info GNOME
|
||||||
# mandatory
|
# mandatory
|
||||||
- dconf
|
- dconf
|
||||||
- gdm
|
- gdm
|
||||||
- gnome-boxes
|
|
||||||
- gnome-connections
|
- gnome-connections
|
||||||
- gnome-control-center
|
- gnome-control-center
|
||||||
- gnome-initial-setup
|
- gnome-initial-setup
|
||||||
@ -36,44 +31,30 @@
|
|||||||
- gnome-text-editor
|
- gnome-text-editor
|
||||||
- nautilus
|
- nautilus
|
||||||
- polkit
|
- polkit
|
||||||
- yelp
|
|
||||||
# default
|
# default
|
||||||
- adobe-source-code-pro-fonts
|
- adobe-source-code-pro-fonts
|
||||||
- at-spi2-atk
|
- at-spi2-atk
|
||||||
- at-spi2-core
|
- at-spi2-core
|
||||||
- avahi
|
- avahi
|
||||||
- baobab
|
- baobab
|
||||||
- cheese
|
|
||||||
# Sometimes version mismatch with gnome-shell in rawhide
|
# Sometimes version mismatch with gnome-shell in rawhide
|
||||||
#- chrome-gnome-shell
|
#- chrome-gnome-shell
|
||||||
- eog
|
|
||||||
- evince
|
- evince
|
||||||
- evince-djvu
|
|
||||||
- fprintd-pam
|
- fprintd-pam
|
||||||
- glib-networking
|
- glib-networking
|
||||||
- gnome-backgrounds
|
|
||||||
- gnome-bluetooth
|
- gnome-bluetooth
|
||||||
- gnome-calculator
|
- gnome-calculator
|
||||||
- gnome-characters
|
- gnome-characters
|
||||||
- gnome-classic-session
|
- gnome-classic-session
|
||||||
- gnome-clocks
|
- gnome-clocks
|
||||||
- gnome-color-manager
|
- gnome-color-manager
|
||||||
- gnome-contacts
|
|
||||||
- gnome-disk-utility
|
- gnome-disk-utility
|
||||||
- gnome-font-viewer
|
- gnome-font-viewer
|
||||||
- gnome-logs
|
- gnome-logs
|
||||||
- gnome-maps
|
|
||||||
- gnome-photos
|
|
||||||
- gnome-remote-desktop
|
- gnome-remote-desktop
|
||||||
- gnome-system-monitor
|
- gnome-system-monitor
|
||||||
- gnome-terminal-nautilus
|
- gnome-terminal-nautilus
|
||||||
- gnome-themes-extra
|
|
||||||
- gnome-user-docs
|
- gnome-user-docs
|
||||||
- gnome-user-share
|
|
||||||
- gnome-weather
|
|
||||||
- gvfs-afc
|
|
||||||
- gvfs-afp
|
|
||||||
- gvfs-archive
|
|
||||||
- gvfs-fuse
|
- gvfs-fuse
|
||||||
- gvfs-goa
|
- gvfs-goa
|
||||||
- gvfs-gphoto2
|
- gvfs-gphoto2
|
||||||
@ -87,28 +68,94 @@
|
|||||||
- mesa-libEGL
|
- mesa-libEGL
|
||||||
- ModemManager
|
- ModemManager
|
||||||
- NetworkManager-adsl
|
- NetworkManager-adsl
|
||||||
- NetworkManager-openconnect-gnome
|
|
||||||
- NetworkManager-openvpn-gnome
|
|
||||||
- NetworkManager-ppp
|
- NetworkManager-ppp
|
||||||
- NetworkManager-pptp-gnome
|
|
||||||
- NetworkManager-ssh-gnome
|
|
||||||
- NetworkManager-vpnc-gnome
|
|
||||||
- NetworkManager-wwan
|
- NetworkManager-wwan
|
||||||
- orca
|
- orca
|
||||||
- PackageKit-command-not-found
|
- PackageKit-command-not-found
|
||||||
- PackageKit-gtk3-module
|
- PackageKit-gtk3-module
|
||||||
- rygel
|
|
||||||
- sane-backends-drivers-scanners
|
- sane-backends-drivers-scanners
|
||||||
- simple-scan
|
|
||||||
- sushi
|
|
||||||
- systemd-oomd-defaults
|
- systemd-oomd-defaults
|
||||||
- totem
|
|
||||||
- tracker
|
- tracker
|
||||||
- tracker-miners
|
- tracker-miners
|
||||||
- xdg-desktop-portal
|
- xdg-desktop-portal
|
||||||
- xdg-desktop-portal-gnome
|
- xdg-desktop-portal-gnome
|
||||||
- xdg-desktop-portal-gtk
|
- xdg-desktop-portal-gtk
|
||||||
- xdg-user-dirs-gtk
|
- xdg-user-dirs-gtk
|
||||||
|
- 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
|
||||||
|
|
||||||
- name: Start IBus installed-tests testing harness
|
- name: Start IBus installed-tests testing harness
|
||||||
environment:
|
environment:
|
||||||
@ -161,7 +208,7 @@
|
|||||||
- name: Check the results
|
- name: Check the results
|
||||||
script: check-results.sh "{{ remote_artifacts }}/test.log" "0"
|
script: check-results.sh "{{ remote_artifacts }}/test.log" "0"
|
||||||
register: test_fails
|
register: test_fails
|
||||||
failed_when: False
|
failed_when: '"ERROR" in test_fails.stdout'
|
||||||
|
|
||||||
- name: Set role result
|
- name: Set role result
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Loading…
Reference in New Issue
Block a user