AtlatestRepositoryslate

slate / tree / scriptscheck-git-history

1#!/usr/bin/env bash
2set -euo pipefail
3root=$(cd "$(dirname "$0")/.." && pwd)
4source "$root/scripts/lib/slate-harness.sh"
5log=$(mktemp)
6trap 'rm -f "$log"' EXIT
7for package in slate-cli slate; do
8 if [ "$package" = slate-cli ]; then
9 test_file="$root/packages/slate-cli/test/test-git-log.sgl"
10 else
11 test_file="$root/packages/slate/test/git-log-test.sgl"
12 fi
13 if ! sigil test "$package" --sgl --no-color "$test_file" >"$log" 2>&1; then
14 cat "$log"
15 exit 1
16 fi
17 harness_verdict "$log" 1
18done
19node --check "$root/packages/slate/test/git-log-browser-gate.mjs"
20echo 'PASS git-history: bounded pages, lazy inspection, root identity, commit topology'