mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
17 lines
378 B
Bash
Executable File
17 lines
378 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Test each package separately
|
|
# Running tests with -covermode=atomic saves us from race conditions unique to the testing environment
|
|
go list ./... | \
|
|
xargs -n1 -I{} sh -c "go test -timeout 60s -covermode=atomic -cover {}"
|
|
|
|
retVal=$?
|
|
if [ $retVal -ne 0 ]
|
|
then
|
|
echo " >> tests failed"
|
|
exit 1
|
|
else
|
|
echo " >> tests completed successfully"
|
|
exit 0
|
|
fi
|