filebrowser/backend/run_tests.sh

18 lines
309 B
Bash
Raw Normal View History

2023-08-12 16:30:41 +00:00
#!/bin/sh
## TEST file used by docker testing containers
checkExit() {
if [ "$?" -ne 0 ];then
exit 1
fi
}
if command -v go &> /dev/null
then
printf "\n == Running tests == \n"
2024-09-16 21:01:16 +00:00
go test -race -parallel -v ./...
2023-08-12 16:30:41 +00:00
checkExit
else
echo "ERROR: unable to perform tests"
exit 1
fi