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