#!/bin/sh
# Q90 CHECK -- tree_root.py's root boundary, its seed existence, and the
# import-time-read model, each graded by a mutant that must red it.
#
# rc 0 = every leg as expected; 1 = a graded fault; 2 = could not grade.
# The work is done by wizard-work/volt/q90_verify.py beside this file; every
# leg runs in a temp copy of the lane, so the tree this instrument ships in is
# never mutated. Run it from any checkout.
set -u
REPO="$(cd "$(dirname "$0")/../.." && pwd)" || exit 2
if ! cd "$REPO"; then
    echo "q90: could not grade -- cannot cd to $REPO"
    exit 2
fi
if ! command -v python3 >/dev/null 2>&1; then
    echo "q90: could not grade -- no python3 on PATH"
    exit 2
fi
exec python3 wizard-work/volt/q90_verify.py
