m17n-lib/tests/smoke/runtest.sh
Parag Nemade f55d93a40d
Add gating tests
Signed-off-by: Parag Nemade <pnemade@fedoraproject.org>
2021-05-25 14:04:00 +05:30

21 lines
475 B
Bash

#!/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