plugins/test_windows.sh

21 lines
362 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2018-12-07 21:39:45 +00:00
#
# Run CNI plugin tests.
#
set -e
cd "$(dirname "$0")"
2018-12-07 21:39:45 +00:00
. ./build_windows.sh
2018-12-07 21:39:45 +00:00
echo "Running tests"
PKGS="./pkg/hns/..."
2018-12-07 21:39:45 +00:00
PLUGINS=$(cat plugins/windows_only.txt | dos2unix )
for d in $PLUGINS; do
PKGS="$PKGS ./$d/..."
done
echo "testing packages $PKGS"
go test -race -v $PKGS -ginkgo.randomizeAllSpecs -ginkgo.failOnPending -ginkgo.progress