| 1 | #!/usr/bin/env sh |
| 2 | # |
| 3 | # Run CNI plugin tests. |
| 4 | # |
| 5 | set -e |
| 6 | cd "$(dirname "$0")" |
| 7 | |
| 8 | . ./build_windows.sh |
| 9 | |
| 10 | echo "Running tests" |
| 11 | |
| 12 | PKGS="./pkg/hns/..." |
| 13 | |
| 14 | PLUGINS=$(cat plugins/windows_only.txt | dos2unix ) |
| 15 | for d in $PLUGINS; do |
| 16 | PKGS="$PKGS ./$d/..." |
| 17 | done |
| 18 | |
| 19 | echo "testing packages $PKGS" |
| 20 | go test -race -v $PKGS -ginkgo.randomizeAllSpecs -ginkgo.failOnPending -ginkgo.progress |