1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-15 08:02:56 +00:00
rke/scripts/test
Manuel Buil 186ce0ca00 Revert "Move to BCI"
This reverts commit 697222ec0a.
2024-01-12 17:10:03 +01:00

13 lines
314 B
Bash
Executable File

#!/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}