
The scripts didn't really use any bash specific features. Convert them to POSIX shell scripts, so that the plugins can be built without requiring bash. Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
21 lines
362 B
Bash
Executable File
21 lines
362 B
Bash
Executable File
#!/usr/bin/env sh
|
|
#
|
|
# Run CNI plugin tests.
|
|
#
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
. ./build_windows.sh
|
|
|
|
echo "Running tests"
|
|
|
|
PKGS="./pkg/hns/..."
|
|
|
|
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
|