From da2c1ddbdfebc09931073bf2789b58d71a16ea29 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Tue, 18 Jul 2023 12:01:47 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 62 +++++++++++++- .../defaults/main.yml | 3 + .../gnome-desktop-testing-role/meta/main.yml | 4 + .../gnome-desktop-testing-role/tasks/main.yml | 82 +++++++++++++++++++ tests/tests.yml | 10 +++ 5 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 tests/roles/gnome-desktop-testing-role/defaults/main.yml create mode 100644 tests/roles/gnome-desktop-testing-role/meta/main.yml create mode 100644 tests/roles/gnome-desktop-testing-role/tasks/main.yml create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index c20dc30..f2abbaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,62 @@ -SOURCES/pango-1.42.4.tar.xz +pango-1.28.1.tar.bz2 +/pango-1.28.2.tar.bz2 +/pango-1.28.3.tar.bz2 +/pango-1.28.4.tar.bz2 +/pango-1.29.3.tar.xz +/pango-1.29.4.tar.xz +/pango-1.29.5.tar.xz +/pango-1.30.0.tar.xz +/pango-1.30.1.tar.xz +/pango-1.31.0.tar.xz +/pango-1.32.1.tar.xz +/pango-1.32.2.tar.xz +/pango-1.32.3.tar.xz +/pango-1.32.5.tar.xz +/pango-1.32.6.tar.xz +/pango-1.33.7.tar.xz +/pango-1.33.8.tar.xz +/pango-1.33.9.tar.xz +/pango-1.34.0.tar.xz +/pango-1.34.1.tar.xz +/pango-1.35.0.tar.xz +/pango-1.35.2.tar.xz +/pango-1.35.3.tar.xz +/pango-1.36.0.tar.xz +/pango-1.36.1.tar.xz +/pango-1.36.2.tar.xz +/pango-1.36.3.tar.xz +/pango-1.36.4.tar.xz +/pango-1.36.5.tar.xz +/pango-1.36.6.tar.xz +/pango-1.36.7.tar.xz +/pango-1.36.8.tar.xz +/pango-1.37.0.tar.xz +/pango-1.37.1.tar.xz +/pango-1.37.2.tar.xz +/pango-1.37.3.tar.xz +/pango-1.37.4.tar.xz +/pango-1.37.5.tar.xz +/pango-1.38.0.tar.xz +/pango-1.38.1.tar.xz +/pango-1.39.0.tar.xz +/pango-1.40.0.tar.xz +/pango-1.40.1.tar.xz +/pango-1.40.2.tar.xz +/pango-1.40.3.tar.xz +/pango-1.40.4.tar.xz +/pango-1.40.5.tar.xz +/pango-1.40.6.tar.xz +/pango-1.40.7.tar.xz +/pango-1.40.8.tar.xz +/pango-1.40.9.tar.xz +/pango-1.40.10.tar.xz +/pango-1.40.11.tar.xz +/pango-1.40.12.tar.xz +/pango-1.40.13.tar.xz +/pango-1.40.14.tar.xz +/pango-1.41.1.tar.xz +/pango-1.42.0.tar.xz +/pango-1.42.1.tar.xz +/pango-1.42.2.tar.xz +/pango-1.42.3.tar.xz /pango-1.42.4.tar.xz diff --git a/tests/roles/gnome-desktop-testing-role/defaults/main.yml b/tests/roles/gnome-desktop-testing-role/defaults/main.yml new file mode 100644 index 0000000..8ff7991 --- /dev/null +++ b/tests/roles/gnome-desktop-testing-role/defaults/main.yml @@ -0,0 +1,3 @@ +role_pkgs_req: + - rsync + - xorg-x11-server-Xvfb diff --git a/tests/roles/gnome-desktop-testing-role/meta/main.yml b/tests/roles/gnome-desktop-testing-role/meta/main.yml new file mode 100644 index 0000000..6626402 --- /dev/null +++ b/tests/roles/gnome-desktop-testing-role/meta/main.yml @@ -0,0 +1,4 @@ +--- + +dependencies: + - role: str-common-init diff --git a/tests/roles/gnome-desktop-testing-role/tasks/main.yml b/tests/roles/gnome-desktop-testing-role/tasks/main.yml new file mode 100644 index 0000000..55881e7 --- /dev/null +++ b/tests/roles/gnome-desktop-testing-role/tasks/main.yml @@ -0,0 +1,82 @@ +--- +- 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: Start GNOME installed-tests testing harness + block: + - name: Execute tests + shell: | + set -e + log_file="{{ remote_artifacts }}/{{ installed_test_name }}.log" + exec 2>>$log_file 1>>$log_file + status="FAIL" + dbus-run-session xvfb-run -a -s '-screen 0 1024x768x24' env TMPDIR='{{ remote_artifacts }}' G_MESSAGES_DEBUG='all' gnome-desktop-testing-runner '{{ installed_test_name }}' + if [ $? -eq 0 ]; then + status="PASS" + fi + echo "${status} $TEST" >> {{ remote_artifacts }}/test.log + + - name: Check the results + shell: | + log="{{ remote_artifacts }}/test.log" + if [ ! -f "$log" ]; then + echo ERROR + echo "Test results not found." 1>&2 + elif grep ^FAIL "$log" 1>&2; then + echo FAIL + elif grep -q ^PASS "$log"; then + echo PASS + else + echo ERROR + echo "No test results found." 1>&2 + fi + register: test_results + + - name: Set role result + set_fact: + role_result: "{{ test_results.stdout }}" + role_message: "{{ test_results.stderr|d('test execution error.') }}" + + - include_role: + name: str-common-final + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..bbbbf51 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,10 @@ +- hosts: localhost + roles: + - role: gnome-desktop-testing-role + installed_test_name: pango + tags: + - classic + - gating + required_packages: + - abattis-cantarell-fonts +