#!/bin/bash
set -e
function abort() {
echo "test case `$1` has failed" 1>&2
exit 1
}
echo "Running tests..."
typst compile tests/local-import/main.typ --root . || abort "local-import"
echo "Tests completed successfully"