-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test.sh
executable file
·25 lines (17 loc) · 955 Bytes
/
build-test.sh
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
#!/bin/bash
# Fail fast
set -e
source build-settings.sh
# -----------------------------------------------------------------------
# Tests
# The "1>/dev/null 2>&1 || true" stuff is to limit the output in the terminal
echo " "
echo "Running Tests..."
rm -rf "$testDir"
mkdir -p "$testDir"
fontbakery check-universal -n --full-lists -l PASS --dark-theme --html "$testDir/Universal_OTFs.html" "$otfDir/*.otf" 1>/dev/null 2>&1 || true
fontbakery check-universal -n --full-lists -l PASS --dark-theme --html "$testDir/Universal_TTFs.html" "$ttfDir/*.ttf" 1>/dev/null 2>&1 || true
fontbakery check-universal -n --full-lists -l PASS --dark-theme --html "$testDir/Universal_VF-TTFs.html" "$vfttfDir/*.ttf" 1>/dev/null 2>&1 || true
# The OTF ones will fail if the font is missing blue values
compareFamily -d "$otfDir" -rm -rn -rp -l "$testDir/AFDKO_CompareFamily_OTFs.txt"
compareFamily -d "$ttfDir" -rm -rn -rp -l "$testDir/AFDKO_CompareFamily_TTFs.txt"