1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#! /bin/bash
# Check that Fontconfig can find all of the Bedstead fonts that should
# be installed. This doesn't check the precise output of fc-list
# because the test system might contain additional fonts that match
# "Bedstead".
set -euo pipefail
cd -- "${AUTOPKGTEST_TMP}"
sort >expected <<EOF
/usr/share/fonts/opentype/bedstead/bedstead-ultracondensed.otf: Bedstead,Bedstead Ultra Condensed:style=Ultra Condensed,Regular
/usr/share/fonts/opentype/bedstead/bedstead.otf: Bedstead:style=Regular
/usr/share/fonts/opentype/bedstead/bedstead-semicondensed.otf: Bedstead,Bedstead Semi Condensed:style=Semi Condensed,Regular
/usr/share/fonts/opentype/bedstead/bedstead-boldsemicondensed.otf: Bedstead,Bedstead Semi Condensed:style=Bold Semi Condensed,Bold
/usr/share/fonts/opentype/bedstead/bedstead-boldextended.otf: Bedstead,Bedstead Extended:style=Bold Extended,Bold
/usr/share/fonts/opentype/bedstead/bedstead-condensed.otf: Bedstead,Bedstead Condensed:style=Condensed,Regular
/usr/share/fonts/opentype/bedstead/bedstead-boldultracondensed.otf: Bedstead,Bedstead Ultra Condensed:style=Bold Ultra Condensed,Bold
/usr/share/fonts/opentype/bedstead/bedstead-extended.otf: Bedstead,Bedstead Extended:style=Extended,Regular
/usr/share/fonts/opentype/bedstead/bedstead-boldextracondensed.otf: Bedstead,Bedstead Extra Condensed:style=Bold Extra Condensed,Bold
/usr/share/fonts/opentype/bedstead/bedstead-extracondensed.otf: Bedstead,Bedstead Extra Condensed:style=Extra Condensed,Regular
/usr/share/fonts/opentype/bedstead/bedstead-bold.otf: Bedstead:style=Bold
/usr/share/fonts/opentype/bedstead/bedstead-boldcondensed.otf: Bedstead,Bedstead Condensed:style=Bold Condensed,Bold
EOF
fc-list Bedstead | sort >actual
echo "fc-list output:"
cat actual
comm -13 actual expected >missing
if [ -s missing ]; then
echo "Missing from fc-list output:"
cat missing
exit 1
fi
|