+test harfbuzz (#110)

This commit is contained in:
Max Howell 2022-09-01 17:42:09 -04:00 committed by GitHub
parent 915e9f1d82
commit a4eac5f1c5
2 changed files with 14 additions and 4 deletions

View file

@ -47,7 +47,7 @@ jobs:
macos-11)
# screws up a lot of build scripts
# TODO stop using GHA images or chroot or something
sudo rm -rf /usr/local/*
for x in /usr/local/*; do sudo mv $x /tmp; done
sudo mkdir -p /opt/tea.xyz/var
sudo chown -R $(whoami):staff /opt
@ -72,8 +72,7 @@ jobs:
- run: ./scripts/install.ts ${{ steps.sorted.outputs.pre-install }}
- run: |
./scripts/build.ts ${{ steps.sorted.outputs.pkgs }}
- run: ./scripts/build.ts ${{ steps.sorted.outputs.pkgs }}
id: build
env:
GITHUB_TOKEN: ${{ github.token }}
@ -105,6 +104,7 @@ jobs:
name: ${{ matrix.os }}
path: ${{ steps.bottle.outputs.filenames }}
if-no-files-found: error
notify:
if: always()
needs: [build]

View file

@ -37,4 +37,14 @@ build:
#FIXME or gir scanner fails
CC: clang
test: true #FIXME
test:
dependencies:
curl.se: '*'
script: |
curl $FIXTURE > font.ttf
out=$(echo 'സ്റ്റ്' | hb-shape font.ttf)
test $out = '[gid0=0+500|gid0=0+500|gid0=2+500|gid0=2+500|gid0=4+500|gid0=4+500]'
env:
FIXTURE: https://github.com/harfbuzz/harfbuzz/raw/fc0daafab0336b847ac14682e581a8838f36a0bf/test/shaping/fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf
receipt:
build/meson-logs/meson-log.txt