]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - scripts/test.sh
Support explicitly typed Topic Names with merge and CXTM evidence
[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 python3 "$project_root/scripts/check-nfc.py"
9 if [ -n "${TOPIC_MAPS_REPORT:-}" ]; then
10 python3 "$project_root/scripts/check-report.py" "$TOPIC_MAPS_REPORT" --slice-12a
11 python3 "$project_root/scripts/check-semantics.py" "$TOPIC_MAPS_REPORT.semantics.json"
12 python3 "$project_root/scripts/check-merging.py" "$TOPIC_MAPS_REPORT.merging.json"
13 python3 "$project_root/scripts/check-associations.py" "$TOPIC_MAPS_REPORT.associations.json"
14 python3 "$project_root/scripts/check-cxtm.py" "$TOPIC_MAPS_REPORT.cxtm.json" --slice-12a
15 python3 "$project_root/scripts/check-occurrences.py" "$TOPIC_MAPS_REPORT.occurrences.json"
16 python3 "$project_root/scripts/check-prefixes.py" "$TOPIC_MAPS_REPORT.prefixes.json"
17 python3 "$project_root/scripts/check-integers.py" "$TOPIC_MAPS_REPORT.integers.json"
18 python3 "$project_root/scripts/check-decimals.py" "$TOPIC_MAPS_REPORT.decimals.json"
19 python3 "$project_root/scripts/check-dates.py" "$TOPIC_MAPS_REPORT.dates.json"
20 python3 "$project_root/scripts/check-datetimes.py" "$TOPIC_MAPS_REPORT.datetimes.json"
21 python3 "$project_root/scripts/check-timezones.py" "$TOPIC_MAPS_REPORT.timezones.json"
22 python3 "$project_root/scripts/check-typed-names.py" "$TOPIC_MAPS_REPORT.typed-names.json"
23 fi