Initial Commit

This commit is contained in:
Mark Gregory
2026-11-04 14:59:42 +00:00
commit 21334a1e5e
22 changed files with 1753 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
CONTRACTS_ONLY=NO
case "${1:-}" in
--contracts-only) CONTRACTS_ONLY=YES ;;
'') ;;
-h|--help) echo 'Usage: scripts/test.sh [--contracts-only]'; exit 0 ;;
*) echo "Unknown option: $1" >&2; exit 2 ;;
esac
if (($# > 1)); then echo 'Too many arguments' >&2; exit 2; fi
cd "$ROOT"
plutil -lint Tarnax/Info.plist Tarnax.xcodeproj/project.pbxproj
for script in scripts/*.sh Tests/run.sh; do bash -n "$script"; done
bash Tests/run.sh
if [[ "$CONTRACTS_ONLY" == NO ]]; then bash scripts/build.sh; fi
echo 'All requested checks passed.'