Compare commits

..

No commits in common. "c8-beta" and "c8s" have entirely different histories.
c8-beta ... c8s

9 changed files with 74 additions and 2 deletions

View File

@ -1 +0,0 @@
588b6d5a2d5e687215cba7bb09d12e4692adc3d8 SOURCES/fontpackages-1.44.tar.xz

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/fontpackages-1.44.tar.xz
fontpackages-1.44.tar.xz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (fontpackages-1.44.tar.xz) = a10caaff4445b18dc6c64b30123ba8738268e96ad634e45a546f5b7e844cc1f109ed2eef1b284b3a35534a4b86dd48ffadb604a6ce725fb969aad96b1a92d44a

33
tests/runtests.sh Normal file
View File

@ -0,0 +1,33 @@
#!/bin/bash
echo "Test for fontpackages-filesystem"
rpm -qf `rpm -E %_fontbasedir`|grep fontpackages-filesystem
retval=$?
echo $retval
if [ $retval -ne 0 ]; then
echo "FAILED: %_fontbasedir is not owned by fontpackages-filesystem"
else
echo "PASSED: %_fontbasedir is owned by fontpackages-filesystem"
fi
echo "Test for fontpackages-devel"
rpm -E %_font_pkg
retval=$?
echo $retval
if [ $retval -ne 0 ]; then
echo "FAILED: %_font_pkg macro is not available by fontpackages-devel"
else
echo "PASSED: %_font_pkg macro is available by fontpackages-devel"
fi
echo "Test dependencies of font packages"
rpm -q --requires lohit-devanagari-fonts|grep fontpackages-filesystem
retval=$?
echo $retval
if [ $retval -ne 0 ]; then
echo "FAILED: lohit-devanagari-fonts package does not require fontpackages-filesystem package"
else
echo "PASSED: lohit-devanagari-fonts package does require fontpackages-filesystem package"
fi

33
tests/tests.yml Normal file
View File

@ -0,0 +1,33 @@
- hosts: localhost
vars:
- artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}"
tags:
- classic
remote_user: root
tasks:
- name: Install required packages
dnf:
name:
- lohit-devanagari-fonts
- name: Install the test files
copy: src={{ item.file }} dest=/tmp/{{ item.dest }} mode=0755
with_items:
- {file: runtests.sh, dest: runtests.sh }
- name: Test block
block:
- name: Execute the tests
shell: |
/tmp/runtests.sh &> /tmp/test.log && result=pass || result=fail
echo -e "results:\n- {result: $result, test: simple}" > /tmp/results.yml
always:
- name: Pull out the logs
fetch:
dest: "{{ artifacts }}/"
src: "{{ item }}"
flat: yes
with_items:
- /tmp/test.log
- /tmp/results.yml