Resolves:rhbz#1962001 - Add gating tests from rhel-8

This commit is contained in:
Parag Nemade 2021-05-24 16:49:46 +05:30
parent 4028f98304
commit 9cb062b0d7
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
3 changed files with 42 additions and 1 deletions

18
tests/smoke/runtest.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# If one of the commands below returns non-zero then exit immediately
set -e
cd ../source
wget https://releases.pagure.org/lohit/lohit-devanagari-2.95.4.tar.gz
tar -xzvf ./lohit-devanagari-2.95.4.tar.gz
cd lohit-devanagari-2.95.4
make ttf
old_size=`stat -c "%s" /usr/share/fonts/lohit-devanagari/Lohit-Devanagari.ttf`
new_size=`stat -c "%s" Lohit-Devanagari.ttf`
if [ $old_size -ne $new_size ]; then
echo "FAILED: ttfautohint generated different ttf file"
else
echo "PASSED: ttfautohint generated same ttf file"
fi

20
tests/tests.yml Normal file
View File

@ -0,0 +1,20 @@
---
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-source
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
tests:
- smoke
required_packages:
- ttfautohint
- make
- fontforge
- lohit-devanagari-fonts
- wget

View File

@ -1,6 +1,6 @@
Name: ttfautohint
Version: 1.8.3
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Automated hinting utility for TrueType fonts
License: FTL or GPLv2
URL: http://www.freetype.org/ttfautohint
@ -93,6 +93,9 @@ find %{buildroot} -name '*.la' -delete
%{_libdir}/pkgconfig/ttfautohint.pc
%changelog
* Mon May 24 2021 Parag Nemade <pnemade AT redhat DOT com> - 1.8.3-7
- Resolves:rhbz#1962001 - Add gating tests from rhel-8
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.8.3-6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937