initial commit

This commit is contained in:
2026-09-25 23:32:29 +02:00
commit fff8b677f8
114 changed files with 84233 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Type-check the library and every example with vetting on.
set -euo pipefail
cd "$(dirname "$0")/.."
echo "== pdf =="
odin check . -no-entry-point -vet-unused -vet-shadowing -vet-using-stmt -warnings-as-errors
for d in examples/*/; do
[ -f "$d/main.odin" ] || continue
echo "== $d =="
odin check "$d" -vet-unused -vet-shadowing -warnings-as-errors
done
echo "OK"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Run the test suite. Set PDF_ODIN_CORPUS to a directory of real-world PDFs to
# additionally run the corpus tests; without it those skip.
set -euo pipefail
cd "$(dirname "$0")/.."
odin test . -define:ODIN_TEST_FANCY=false "$@"