github.com/yasker/longhorn-engine@v0.0.0-20160621014712-6ed6cfca0729/scripts/test (about) 1 #!/bin/bash 2 set -e 3 4 cd $(dirname $0)/.. 5 6 echo Running tests 7 8 if [ ! -x ./bin/longhorn ]; then 9 ./scripts/build 10 fi 11 12 PACKAGES=". $(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u | grep -Ev '(^\.$|.git|.trash-cache|vendor|bin)' | sed -e 's!^!./!' -e 's!$!/...!')" 13 14 go test -race -cover -tags=test ${PACKAGES}