diff --git a/m17n-lib.spec b/m17n-lib.spec index 651ec4f..6d60d93 100644 --- a/m17n-lib.spec +++ b/m17n-lib.spec @@ -3,7 +3,7 @@ Name: m17n-lib Version: 1.8.0 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Multilingual text library License: LGPLv2+ @@ -116,6 +116,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_libdir}/libm17n-gui.so.* %changelog +* Tue May 25 2021 Parag Nemade - 1.8.0-11 +- Resolves:rhbz#1961998 - Add gating tests from rhel-8 + * Fri Apr 16 2021 Mohan Boddu - 1.8.0-10 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 diff --git a/tests/smoke/hello.txt b/tests/smoke/hello.txt new file mode 100644 index 0000000..6f6082a --- /dev/null +++ b/tests/smoke/hello.txt @@ -0,0 +1,15 @@ +hallo +እው ሰላም ነው +مرحبا +হ্যালো +你好 +Ciao +こんにちは +नमस्कार +ਸਤ ਸ੍ਰੀ ਅਕਾਲ +Привет +හෙලෝ +வணக்கம் +สวัสดี +ہیلو +xin chào diff --git a/tests/smoke/old.png b/tests/smoke/old.png new file mode 100644 index 0000000..7111cfd Binary files /dev/null and b/tests/smoke/old.png differ diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh new file mode 100644 index 0000000..1b982f5 --- /dev/null +++ b/tests/smoke/runtest.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# If one of the commands below returns non-zero then exit immediately +set -e + +echo "Testing m17n-dump tool" +old_size=`stat -c "%s" old.png` +echo "old_size is $old_size" + +m17n-dump hello.txt +new_size=`stat -c "%s" hello.txt.png` +echo "new_size is $new_size" +file old.png hello.txt.png +echo "Using font `fc-match`" + +if [ $old_size -ne $new_size ]; then + echo "m17n-dump generated different png file" +else + echo "m17n-dump generated same png file" +fi diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..43337e6 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + tests: + - smoke + required_packages: + - m17n-lib-tools + - m17n-lib-devel