Skip to content

Commit 69b2c9f

Browse files
committed
Add smoke test by converting ttf->woff2 and vice-versa
1 parent 43f43a0 commit 69b2c9f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

recipes/woff2/recipe.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ tests:
4545
- bin/woff2_compress
4646
- bin/woff2_decompress
4747
- bin/woff2_info
48+
- script:
49+
- curl -LO https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxP.ttf
50+
- curl -LO https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2
51+
# Convert TTF to WOFF2
52+
- woff2_compress KFOmCnqEu92Fr1Mu4mxP.ttf
53+
- woff2_info KFOmCnqEu92Fr1Mu4mxP.woff2 | grep "WOFF2Header"
54+
# Convert WOFF2 to TTF
55+
- woff2_decompress KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2
56+
- file --brief KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.ttf | grep -i "TrueType font data"
57+
requirements:
58+
run:
59+
- file
60+
- curl
4861

4962
about:
5063
homepage: https://github.com/google/woff2

0 commit comments

Comments
 (0)