Resolves: rhbz#1973542 Add gating tests
This commit is contained in:
parent
197b67990b
commit
edf02edc17
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
|
@ -6,7 +6,7 @@
|
||||
Name: %{fontname}-fonts
|
||||
Summary: Sans-serif Narrow fonts to replace commonly used Microsoft Arial Narrow
|
||||
Version: 1.07.6
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Epoch: 2
|
||||
# The license of the Liberation Fonts is a EULA that contains GPLv2 and two
|
||||
# exceptions:
|
||||
@ -81,6 +81,9 @@ appstream-util validate-relax --nonet \
|
||||
%{catalogue}/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Jul 05 2021 Vishal Vijayraghavan<vvijayra@redhat.com> - 2:1.07.6-8
|
||||
- Resolves: rhbz#1973542 Add gating tests
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2:1.07.6-7
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
|
3
tests/.gitignore
vendored
Normal file
3
tests/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
tmp/
|
||||
artifacts/
|
||||
tests.retry
|
45
tests/fonttest_playbook.yml
Normal file
45
tests/fonttest_playbook.yml
Normal file
@ -0,0 +1,45 @@
|
||||
- hosts: localhost
|
||||
vars:
|
||||
config:
|
||||
fontname: liberation-narrow
|
||||
lang: ["en","de","el","es","fr"]
|
||||
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
tests/tests.yml
Normal file
1
tests/tests.yml
Normal file
@ -0,0 +1 @@
|
||||
- import_playbook: fonttest_playbook.yml
|
Loading…
Reference in New Issue
Block a user