update test

This commit is contained in:
2025-09-14 20:08:55 -04:00
parent a0f1a4b77c
commit 3fc030e8b3

6
src/tests/run_unit_tests.sh Normal file → Executable file
View File

@@ -9,10 +9,12 @@ fatal() {
[ -d "./yait" ] && fatal "must be run from parent directory"
$yait --help > /dev/null/ 2>&1 || fatal "failed on --help"
$yait --version > /dev/null 2>&1 || fatal "failed on --version"
{
$yait --help || fatal "failed on --help"
$yait --version || fatal "failed on --version"
tmpd=$(mktemp -d)
cd $tmpd
$yait foo || fatal "failed to create `foo` at ${tmpd}"
} > build/test.log 2>&1