1
0
mirror of https://github.com/rancher/norman.git synced 2025-06-29 08:47:20 +00:00
norman/scripts/test

12 lines
311 B
Plaintext
Raw Normal View History

2017-10-12 05:48:07 +00:00
#!/bin/bash
set -e
cd $(dirname $0)/..
echo Running tests
2017-11-21 20:46:30 +00:00
PACKAGES="$(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u | grep -Ev '(^\.$|.git|.trash-cache|vendor|bin)' | sed -e 's!^!./!' -e 's!$!/...!')"
2017-10-12 05:48:07 +00:00
[ "${ARCH}" == "amd64" ] && RACE=-race
go test ${RACE} -cover -tags=test ${PACKAGES}