Compare commits

..

No commits in common. "c8" and "c8s" have entirely different histories.
c8 ... c8s

10 changed files with 224 additions and 1 deletions

76
.gitignore vendored
View File

@ -1 +1,75 @@
SOURCES/gnome-photos-3.28.1.tar.xz
/gnome-photos-3.7.2.tar.xz
/gnome-photos-3.7.3.tar.xz
/gnome-photos-3.8.0.tar.xz
/gnome-photos-3.8.2.tar.xz
/gnome-photos-3.9.4.tar.xz
/gnome-photos-3.9.5.1.tar.xz
/gnome-photos-3.9.90.tar.xz
/gnome-photos-3.9.91.tar.xz
/gnome-photos-3.9.92.tar.xz
/gnome-photos-3.10.0.tar.xz
/gnome-photos-3.10.1.tar.xz
/gnome-photos-3.10.2.tar.xz
/gnome-photos-3.11.2.tar.xz
/gnome-photos-3.11.3.tar.xz
/gnome-photos-3.11.4.tar.xz
/gnome-photos-3.11.5.tar.xz
/gnome-photos-3.11.90.tar.xz
/gnome-photos-3.11.91.tar.xz
/gnome-photos-3.11.92.tar.xz
/gnome-photos-3.12.0.tar.xz
/gnome-photos-3.12.1.tar.xz
/gnome-photos-3.13.4.tar.xz
/gnome-photos-3.13.91.tar.xz
/gnome-photos-3.13.92.tar.xz
/gnome-photos-3.14.0.tar.xz
/gnome-photos-3.14.2.tar.xz
/gnome-photos-3.15.2.tar.xz
/gnome-photos-3.15.3.tar.xz
/gnome-photos-3.15.4.tar.xz
/gnome-photos-3.15.90.tar.xz
/gnome-photos-3.15.91.tar.xz
/gnome-photos-3.16.0.tar.xz
/gnome-photos-3.16.2.tar.xz
/gnome-photos-3.17.2.tar.xz
/gnome-photos-3.18.0.tar.xz
/gnome-photos-3.18.1.tar.xz
/gnome-photos-3.18.2.tar.xz
/gnome-photos-3.19.2.tar.xz
/gnome-photos-3.19.3.tar.xz
/gnome-photos-3.19.4.tar.xz
/gnome-photos-3.19.90.tar.xz
/gnome-photos-3.19.91.tar.xz
/gnome-photos-3.19.92.tar.xz
/gnome-photos-3.20.0.tar.xz
/gnome-photos-3.20.1.tar.xz
/gnome-photos-3.21.1.tar.xz
/gnome-photos-3.21.3.tar.xz
/gnome-photos-3.21.4.tar.xz
/gnome-photos-3.21.90.tar.xz
/gnome-photos-3.21.91.tar.xz
/gnome-photos-3.21.92.tar.xz
/gnome-photos-3.22.0.tar.xz
/gnome-photos-3.22.1.tar.xz
/gnome-photos-3.22.2.tar.xz
/gnome-photos-3.23.2.tar.xz
/gnome-photos-3.23.4.tar.xz
/gnome-photos-3.23.90.tar.xz
/gnome-photos-3.23.91.tar.xz
/gnome-photos-3.23.92.tar.xz
/gnome-photos-3.24.0.tar.xz
/gnome-photos-3.24.1.tar.xz
/gnome-photos-3.25.1.tar.xz
/gnome-photos-3.25.3.tar.xz
/gnome-photos-3.25.4.tar.xz
/gnome-photos-3.25.91.tar.xz
/gnome-photos-3.25.92.tar.xz
/gnome-photos-3.26.0.tar.xz
/gnome-photos-3.26.1.tar.xz
/gnome-photos-3.27.1.tar.xz
/gnome-photos-3.27.3.tar.xz
/gnome-photos-3.27.4.tar.xz
/gnome-photos-3.27.90.tar.xz
/gnome-photos-3.27.92.tar.xz
/gnome-photos-3.28.0.tar.xz
/gnome-photos-3.28.1.tar.xz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (gnome-photos-3.28.1.tar.xz) = 6246c55484d45883dda93f990c52b46755420d820007a64d606685153353607a90702ac7c6e4de59c54ff9ffb5b36f15a297541c5fa866718b5ac9e44e15d35b

View File

@ -0,0 +1,4 @@
role_pkgs_req:
- rsync
- xorg-x11-server-Xvfb
- sudo

View File

@ -0,0 +1,4 @@
---
dependencies:
- role: str-common-init

View File

@ -0,0 +1,93 @@
---
- name: Check if GNOME installed-tests testing harness is installed
register: gnome_desktop_testing_runner
find:
paths: "{{ ansible_env.PATH.split(':') }}"
pattern: gnome-desktop-testing-runner
- name: Build and install GNOME installed-tests testing harness
when: gnome_desktop_testing_runner.matched == 0
block:
- name: Installing build dependencies for GNOME installed-tests testing harness
package:
name:
- git
- make
- gcc
- diffutils
- autoconf
- automake
- libtool
- glib2-devel
- systemd-devel
- name: Fetching GNOME installed-tests testing harness source from remote repository
git:
repo: 'https://gitlab.gnome.org/GNOME/gnome-desktop-testing.git'
dest: gnome-desktop-testing
force: yes
- name: Configure GNOME installed-tests testing harness build
command: ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
args:
chdir: gnome-desktop-testing
- name: Build GNOME installed-tests testing harness
command: make
args:
chdir: gnome-desktop-testing
- name: Install GNOME installed-tests testing harness
command: make install
args:
chdir: gnome-desktop-testing
- name: Create a user to run GNOME installed-tests as
user:
name: shadowman
state: present
- name: Start GNOME installed-tests testing harness
block:
- name: Allow shadowman user access to artifacts dir
file:
path: "{{ remote_artifacts }}"
mode: 01777
- name: Determine log file name
set_fact:
log_file: "{{ remote_artifacts }}/{{ installed_test_name }}.log"
- name: Delete any stale log file
file:
path: "{{ log_file }}"
state: absent
- name: Execute tests
become: yes
become_user: shadowman
shell: |
set -e
log_file="{{ log_file }}"
exec 2>>$log_file 1>>$log_file
status="FAIL"
xvfb-run -d -s '-screen 0 1024x768x24' dbus-run-session env TMPDIR='{{ remote_artifacts }}' G_MESSAGES_DEBUG='all' LANG=en_US.utf8 gnome-desktop-testing-runner '{{ installed_test_name }}'
if [ $? -eq 0 ]; then
status="PASS"
fi
echo "${status} $TEST" >> {{ remote_artifacts }}/test.log
args:
chdir: "{{ remote_artifacts }}"
- name: Check the results
shell: grep "^FAIL" {{ remote_artifacts }}/test.log
register: test_fails
failed_when: False
- name: Set role result
set_fact:
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

41
tests/tests.yml Normal file
View File

@ -0,0 +1,41 @@
- hosts: localhost
pre_tasks:
- name: Check if dogtail testing tool is installed
register: dogtail_run_headless
find:
paths: "{{ ansible_env.PATH.split(':') }}"
pattern: dogtail-run-headless
- name: Build and install dogtail testing tool
when: dogtail_run_headless.matched == 0
block:
- name: Installing build dependencies for dogtail
package:
name:
- git
- name: Fetching dogtail from remote repository
git:
repo: 'https://gitlab.com/dogtail/dogtail.git'
dest: dogtail
force: yes
- name: build dogtail
command: "{{ ansible_python_interpreter }} setup.py build"
args:
chdir: dogtail
- name: install dogtail
command: "{{ ansible_python_interpreter }} setup.py install"
args:
chdir: dogtail
roles:
- role: gnome-desktop-testing-role
installed_test_name: Photos
tags:
- classic
- gating
required_packages:
- python3-cairo
- python3-pyatspi