mirror of
https://github.com/rancher/rke.git
synced 2025-09-02 07:24:20 +00:00
Initial Commit
This commit is contained in:
11
scripts/test
Executable file
11
scripts/test
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
echo Running tests
|
||||
|
||||
PACKAGES=". $(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u | grep -Ev '(^\.$|.git|.trash-cache|vendor|bin)' | sed -e 's!^!./!' -e 's!$!/...!')"
|
||||
|
||||
[ "${ARCH}" == "amd64" ] && RACE=-race
|
||||
go test ${RACE} -cover -tags=test ${PACKAGES}
|
Reference in New Issue
Block a user