liberation-fonts/tests/fonttest_playbook.yml
vvijayra c913602e05 Resolves: rhbz#1643920: Removed Obsoletes: liberation-narrow-fonts and Provides: liberation-narrow-fonts macro
Splitted the font family(mono, sans and serif) into diferrent root font directories
2019-06-24 19:47:49 +05:30

39 lines
997 B
YAML

- hosts: localhost
vars:
config:
artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}"
testfilename: fonttest.py
testfilepath: /usr/local/bin
logfilepath: /tmp/test.log
fontname: liberation
lang: ["en","az-az","de","el","he"]
tags:
- classic
remote_user: root
tasks:
- name: Install required package
dnf:
name:
- "{{ config.fontname }}-fonts"
- python3
- fontconfig
- name: Install the test files
copy: src={{ config.testfilename }} dest={{ config.testfilepath }}/{{ config.testfilename }} mode=0755
- name: Test Execution
block:
- name: Execute the tests
command: python3 {{ config.testfilepath }}/{{ config.testfilename }} "{{ config }}"
always:
- name: Pull out the artifacts
fetch:
dest: "{{ config.artifacts }}/"
src: "{{ item }}"
flat: yes
with_items:
- "{{ config.logfilepath }}"