commit d5045a4d696c6cdd911bb395668587be3dcd328a parent b13bf1813b446586cf00260aa72a46fce94c317e Author: vx_clutch <[email protected]> Date: Fri, 12 Sep 2025 08:30:35 -0400 Create run_unit_tests.sh Diffstat:
| A | src/tests/run_unit_tests.sh | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/tests/run_unit_tests.sh b/src/tests/run_unit_tests.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +fatal() { + echo "fatal: $*" >&2 + exit 1 +} + +[ -d "./tests" ] || fatal "must be run from parent directory" + +./bin/yait --help 2>&1 || fatal "failed on --help" +./bin/yait --version 2>&1 || fatal "failed on --version"