#!/usr/bin/env bash cd "$(dirname "$0")/.." tmp=$(mktemp -d) for f in tests/*.typ; do typst compile --root . "$f" "$tmp/$(basename $f .typ).pdf" >/dev/null 2>&1 \ && echo "PASS $(basename $f)" || echo "FAIL $(basename $f)" done rm -rf "$tmp"