diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/prepare.yml b/tests/prepare.yml new file mode 100644 index 0000000..4e07b85 --- /dev/null +++ b/tests/prepare.yml @@ -0,0 +1,30 @@ +- name: Install Workstation packages + dnf: + name: '@Fedora Workstation' + state: present +- name: Install libselinux-python + dnf: + name: libselinux-python + state: present +- name: Set up user test + user: + name: test + groups: + - wheel + - adm + password: $6$lJYbJXPZrkeslR0K$H46Th6V.IdaHEPWt7YUSIwz9r16LWWDFSrIvbmUOyZaGMWfXzS1wb5iWPuMmX9VeSz/wiKj5003sl6gDQ/cUD. +- name: Set passwordless sudo + lineinfile: + path: /etc/sudoers + state: present + regexp: '^%wheel\s' + line: '%wheel ALL=(ALL) NOPASSWD: ALL' +- name: Set gdm to use xorg session + ini_file: + path: /etc/gdm/custom.conf + section: daemon + option: WaylandEnable + value: false + when: wayland is undefined +- name: Turn off lock screen when we are idle + command: gsettings set org.gnome.desktop.session idle-delay 0 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..2b4efb7 --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,11 @@ +--- + +# qemu options: https://qemu.weilnetz.de/doc/qemu-doc.html + +standard-inventory-qcow2: + qemu: + # RAM size in megabytes. Optionally, a suffix of “M” or “G”. + m: 3G + +# vim:ft=yaml: ts=2 sts=2 sw=2 expandtab + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..5f7329b --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,23 @@ +# Basic tests for gnome-calculator +- hosts: localhost + pre_tasks: + - name: Prepare the system + include: prepare.yml + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - gnome-calculator + - dogtail + - python-behave + - python-iniparse + repositories: + - repo: "https://pagure.io/desktop-qa/gnome-calculator.git" + dest: "gnome-calculator" + tests: + - sanity-tests: + dir: "gnome-calculator" + run: run/osci/runtest.sh fedora28 + +