ttmkfdir/tests/test-simple
Parag Nemade 824aa0598d
Added CI tests
Signed-off-by: Parag Nemade <pnemade@fedoraproject.org>
2019-05-28 13:54:37 +05:30

23 lines
523 B
Bash

#!/bin/bash
if [ -d /tmp/test-ttmkfdir ];then
rm -rf /tmp/test-ttmkfdir
fi
mkdir /tmp/test-ttmkfdir
cd /tmp/test-ttmkfdir
ttmkfdir -d /usr/share/fonts/sazanami/gothic .
if [ -f ./fonts.scale ]; then
diff -urN ./fonts.scale /usr/share/fonts/sazanami/gothic/fonts.scale
retval=$?
echo $retval
if [ $retval -ne 0 ]; then
echo "check if sazanami-gothic-fonts is installed or its packaging is changed"
exit 1
else
echo "ttmkfdir sucessfully generated fonts.scale file for sazanami-gothic-fonts directory"
fi
fi