Add tmt testcase for CI
This commit is contained in:
parent
e474b0e703
commit
8b6b1b74f4
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
14
plans/liberation-mono-fonts.fmf
Normal file
14
plans/liberation-mono-fonts.fmf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
summary: Fonts related tests for Liberation Mono
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
url: https://src.fedoraproject.org/tests/fonts
|
||||||
|
prepare:
|
||||||
|
name: tmt
|
||||||
|
how: install
|
||||||
|
package: liberation-mono-fonts
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
environment:
|
||||||
|
PACKAGE: liberation-mono-fonts
|
||||||
|
FONT_ALIAS: Courier New
|
||||||
|
FONT_FAMILY: Liberation Mono
|
14
plans/liberation-sans-fonts.fmf
Normal file
14
plans/liberation-sans-fonts.fmf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
summary: Fonts related tests for Liberation Sans
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
url: https://src.fedoraproject.org/tests/fonts
|
||||||
|
prepare:
|
||||||
|
name: tmt
|
||||||
|
how: install
|
||||||
|
package: liberation-sans-fonts
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
environment:
|
||||||
|
PACKAGE: liberation-sans-fonts
|
||||||
|
FONT_ALIAS: Arial
|
||||||
|
FONT_FAMILY: Liberation Sans
|
14
plans/liberation-serif-fonts.fmf
Normal file
14
plans/liberation-serif-fonts.fmf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
summary: Fonts related tests for Liberation Serif
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
url: https://src.fedoraproject.org/tests/fonts
|
||||||
|
prepare:
|
||||||
|
name: tmt
|
||||||
|
how: install
|
||||||
|
package: liberation-serif-fonts
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
environment:
|
||||||
|
PACKAGE: liberation-serif-fonts
|
||||||
|
FONT_ALIAS: Times New Roman
|
||||||
|
FONT_FAMILY: Liberation Serif
|
3
tests/.gitignore
vendored
3
tests/.gitignore
vendored
@ -1,3 +0,0 @@
|
|||||||
tmp/
|
|
||||||
artifacts/
|
|
||||||
tests.retry
|
|
@ -1,45 +0,0 @@
|
|||||||
- hosts: localhost
|
|
||||||
vars:
|
|
||||||
config:
|
|
||||||
fontname: liberation
|
|
||||||
lang: ["en","az-az","de","el","he"]
|
|
||||||
testgiturl: https://pagure.io/font_ci_testing.git
|
|
||||||
testgitclonepath: fonttest
|
|
||||||
testfilename: fonttest.py
|
|
||||||
testfilepath: /usr/local/bin
|
|
||||||
logfilepath: /tmp/test.log
|
|
||||||
artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}"
|
|
||||||
|
|
||||||
tags:
|
|
||||||
- classic
|
|
||||||
|
|
||||||
remote_user: root
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Install required package
|
|
||||||
dnf:
|
|
||||||
name:
|
|
||||||
- git
|
|
||||||
- "{{ config.fontname }}-fonts"
|
|
||||||
- python3
|
|
||||||
- fontconfig
|
|
||||||
|
|
||||||
- name: git clone the tests
|
|
||||||
git:
|
|
||||||
repo: "{{ config.testgiturl }}"
|
|
||||||
dest: "{{ config.testgitclonepath }}"
|
|
||||||
force: yes
|
|
||||||
|
|
||||||
- name: Test Execution
|
|
||||||
block:
|
|
||||||
- name: Execute the tests
|
|
||||||
command: python3 {{ config.testgitclonepath }}/tests/{{ config.testfilename }} "{{ config }}"
|
|
||||||
|
|
||||||
always:
|
|
||||||
- name: Pull out the artifacts
|
|
||||||
fetch:
|
|
||||||
dest: "{{ config.artifacts }}/"
|
|
||||||
src: "{{ item }}"
|
|
||||||
flat: yes
|
|
||||||
with_items:
|
|
||||||
- "{{ config.logfilepath }}"
|
|
@ -1 +0,0 @@
|
|||||||
- import_playbook: fonttest_playbook.yml
|
|
Loading…
Reference in New Issue
Block a user