#!/bin/sh # Runs this repo's tests. Extra arguments are forwarded to `cargo test`, # e.g. `./run-tests.sh discover` to run just the discovery tests. # # Only `server/` has tests: it holds all the logic worth testing (APK # discovery, config round-tripping, staleness, the git read/pull/check # split, token gating, certificate generation), while the Android app is # UI over its HTTP API. Verifying the app means running it -- see the # README. set -eu cd "$(dirname "$0")/server" exec cargo test "$@"