18 lines
328 B
Bash
Executable File
18 lines
328 B
Bash
Executable File
#!/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 benchmark == \n"
|
|
go test -bench=. -benchtime=10x -benchmem ./...
|
|
checkExit
|
|
else
|
|
echo "ERROR: unable to perform tests"
|
|
exit 1
|
|
fi
|