Add CI tests using standard test interface
Adding tests according to the CI wiki [0] and standard test interface [1] Dogtail tests for gnome-calculator can be found in pagure [2] [0] https://fedoraproject.org/wiki/CI [1] https://fedoraproject.org/wiki/Changes/InvokingTests [2] https://pagure.io/desktop-qa/gnome-calculator
This commit is contained in:
parent
51255982ff
commit
efa91a0598
1
tests/.fmf/version
Normal file
1
tests/.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
30
tests/prepare.yml
Normal file
30
tests/prepare.yml
Normal file
@ -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
|
11
tests/provision.fmf
Normal file
11
tests/provision.fmf
Normal file
@ -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
|
||||||
|
|
23
tests/tests.yml
Normal file
23
tests/tests.yml
Normal file
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user