self-hosted/unit-test.sh
2022-10-21 13:46:35 -07:00

14 lines
235 B
Bash
Executable File

#!/usr/bin/env bash
FORCE_CLEAN=1 "$(dirname $0)/clean.sh"
fail=0
for test_file in ./_unit-test/*-test.sh; do
echo "🙈 Running $test_file ..."
$test_file
if [ $? != 0 ]; then
echo fail 👎
fail=1
fi
done
exit $fail