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