1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 16:21:07 +00:00
Files
os/scripts/test

12 lines
298 B
Plaintext
Raw Normal View History

2015-02-17 17:01:03 -07:00
#!/bin/bash
2016-05-22 23:11:26 -07:00
# help: Run go unit tests
2015-02-17 17:01:03 -07:00
set -e
cd $(dirname $0)/..
2016-05-06 10:12:09 -07:00
echo Running tests
2015-02-17 17:01:03 -07:00
2016-05-06 10:12:09 -07: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!$!/...!')"
2015-02-17 17:01:03 -07:00
2016-05-06 10:12:09 -07:00
go test -race -cover -tags=test ${PACKAGES}