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