#!/usr/bin/env bash
cd /c/Users/decid/Documents/projects/spt-core/.worktrees/gate-ns23-w1 || exit 1
S="env -u OWL_SESSION_ID -u SPT_AGENT_ID -u SPT_ENDPOINT_ID -u SPT_HOME"
$S cargo build --workspace --bins > T_prebuild.raw 2>&1; echo $? > T_prebuild.exit
$S cargo clippy --workspace --all-targets -- -D warnings > T_clippy.raw 2>&1; echo $? > T_clippy.exit
$S traceable-reqs check > T_treqs.raw 2>&1; echo $? > T_treqs.exit
$S cargo run -p xtask -- check > T_xtask.raw 2>&1; echo $? > T_xtask.exit
$S cargo nextest run -p spt --bins > T_spt_bins.raw 2>&1; echo $? > T_spt_bins.exit
$S cargo nextest run -p spt --test shell_hints_e2e > T_e2e.raw 2>&1; echo $? > T_e2e.exit
echo DRIVER_COMPLETE
