#!/bin/sh # Runs this repo's tests. Extra arguments are forwarded to each `cargo test`, # e.g. `./run-tests.sh transcript` to run just the transcript tests in all # three crates. # # server/ holds the backend's own logic (event normalization, transcript # cursors, config persistence, token auth); event-model is the wire shape # server/ and client-core share; client-core is the app's pure logic held # once instead of twice (see CLIENT_CORE.md) -- the syntax highlighter, the # ANSI parser, the transcript cache and fold, the REST and SSE clients. It # is not wired into the Android app yet (RUST.md), which still carries its # own Kotlin copies and has no tests of its own to run here; verifying it # means running it -- see AGENTS.md. set -eu cd "$(dirname "$0")" for crate in event-model client-core server; do (cd "$crate" && cargo test "$@") done