add test probers test for local

This commit is contained in:
Leandro Moreira
2024-02-09 19:12:43 -03:00
parent 1cc6defe43
commit cbb1137f4d
10 changed files with 177 additions and 7 deletions
+19
View File
@@ -0,0 +1,19 @@
if ! brew list srt &>/dev/null; then
echo "ERROR you must install srt"
echo "brew install srt"
exit 1
fi
if ! brew list ffmpeg &>/dev/null; then
echo "ERROR you must install ffmpeg"
echo "brew install ffmpeg"
exit 1
fi
export CGO_LDFLAGS="-L$(brew --prefix srt)/lib -lsrt"
export CGO_CFLAGS="-I$(brew --prefix srt)/include/"
# testing with logging
# ref https://github.com/golang/go/issues/46959#issuecomment-1407594935
# go test -v -p 1 ./...
go test -v ./...