SHA256
1
0
forked from adamm/autogits
Files
autogits/dev_test_helper.sh
2025-04-07 19:03:02 +02:00

17 lines
293 B
Bash
Executable File

#!/bin/sh
if [ "x$1" = 'x' ]; then
echo 'param to `go test --run ...` missing'
exit 1
fi
files=$(find .. -maxdepth 2 -name \*.go -and \! -wholename \*/gitea-generated/\*)
while true; do
go test --run "$1"
inotifywait -qqr -e close_write $files
clear
sleep 0.2
done