ttmkfdir/tests/test-simple
Troy Dawson fc0c1b6912 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/ttmkfdir#d262c415c7e6a3375d2b3a6df54e10ded78f9abc
2020-10-15 13:05:59 -07:00

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