1
0
mirror of https://github.com/rancher/rke.git synced 2025-04-27 19:25:44 +00:00
rke/scripts/test
Sebastiaan van Steenis 79ccc45842
Move to BCI
2023-09-13 10:36:31 +02:00

12 lines
267 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!$!/...!')"
go test -cover -tags=test ${PACKAGES}