]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - scripts/test.sh
test(topic-maps): establish pinned CTM test foundation
[topic-maps.git] / scripts / test.sh
1 #!/bin/sh
2 set -eu
3 project_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
4 python3 "$project_root/scripts/corpus.py" verify
5 python3 -m unittest discover -s "$project_root/tests" -p 'test_*.py'
6 "${SBCL:-sbcl}" --noinform --no-sysinit --no-userinit --non-interactive \
7 --load "$project_root/scripts/fresh-sbcl.lisp"
8 if [ -n "${TOPIC_MAPS_REPORT:-}" ]; then
9 python3 "$project_root/scripts/check-report.py" "$TOPIC_MAPS_REPORT"
10 fi