AtlatestRepositoryslate
1
#!/usr/bin/env bash2
set -euo pipefail3
root=$(cd "$(dirname "$0")/.." && pwd)4
source "$root/scripts/lib/slate-harness.sh"5
log=$(mktemp)6
trap 'rm -f "$log"' EXIT7
for package in slate-cli slate; do8
if [ "$package" = slate-cli ]; then9
test_file="$root/packages/slate-cli/test/test-git-log.sgl"10
else11
test_file="$root/packages/slate/test/git-log-test.sgl"12
fi13
if ! sigil test "$package" --sgl --no-color "$test_file" >"$log" 2>&1; then14
cat "$log"15
exit 116
fi17
harness_verdict "$log" 118
done19
node --check "$root/packages/slate/test/git-log-browser-gate.mjs"20
echo 'PASS git-history: bounded pages, lazy inspection, root identity, commit topology'