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