Add gating tests
Signed-off-by: Parag Nemade <pnemade@fedoraproject.org>
This commit is contained in:
parent
57e07489c8
commit
f55d93a40d
15
tests/smoke/hello.txt
Normal file
15
tests/smoke/hello.txt
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
hallo
|
||||||
|
እው ሰላም ነው
|
||||||
|
مرحبا
|
||||||
|
হ্যালো
|
||||||
|
你好
|
||||||
|
Ciao
|
||||||
|
こんにちは
|
||||||
|
नमस्कार
|
||||||
|
ਸਤ ਸ੍ਰੀ ਅਕਾਲ
|
||||||
|
Привет
|
||||||
|
හෙලෝ
|
||||||
|
வணக்கம்
|
||||||
|
สวัสดี
|
||||||
|
ہیلو
|
||||||
|
xin chào
|
BIN
tests/smoke/old.png
Normal file
BIN
tests/smoke/old.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.6 KiB |
20
tests/smoke/runtest.sh
Normal file
20
tests/smoke/runtest.sh
Normal file
@ -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
|
11
tests/tests.yml
Normal file
11
tests/tests.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tests:
|
||||||
|
- smoke
|
||||||
|
required_packages:
|
||||||
|
- m17n-lib-tools
|
||||||
|
- m17n-lib-devel
|
Loading…
Reference in New Issue
Block a user