#!/bin/sh

set -eu

repo_root=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
cd "$repo_root"

echo "Running pre-commit test checks from $repo_root"
echo "+ cargo test --lib --no-default-features"
cargo test --lib --no-default-features
echo "+ cargo test --bin cosimo"
cargo test --bin cosimo
