#!/usr/bin/env bash
cd "$(dirname "$0")" || exit 99
( cargo build -p spt --bins > F_prebuild.raw 2>&1 ); echo $? > F_prebuild.exit
( cargo nextest run -p spt --bins > F_bins.raw 2>&1 ); echo $? > F_bins.exit
( cargo nextest run -p spt-msg > F_msg.raw 2>&1 ); echo $? > F_msg.exit
( cargo nextest run -p spt-daemon --lib > F_daemon.raw 2>&1 ); echo $? > F_daemon.exit
( cargo nextest run -p spt-store --lib > F_store.raw 2>&1 ); echo $? > F_store.exit
( cargo clippy --workspace --all-targets -- -D warnings > F_clippy.raw 2>&1 ); echo $? > F_clippy.exit
( traceable-reqs check > F_treqs.raw 2>&1 ); echo $? > F_treqs.exit
( cargo run -p xtask -- check > F_xtask.raw 2>&1 ); echo $? > F_xtask.exit
echo LEGS_DONE
