mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-26 03:53:36 +00:00
test: add test.sh script
This commit is contained in:
committed by
Kuralamudhan Ramakrishnan
parent
7597640a21
commit
1c8ad953d0
17
test.sh
Executable file
17
test.sh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
ORG_PATH="github.com/intel"
|
||||||
|
REPO_PATH="${ORG_PATH}/multus-cni"
|
||||||
|
|
||||||
|
if [ ! -h gopath/src/${REPO_PATH} ]; then
|
||||||
|
mkdir -p gopath/src/${ORG_PATH}
|
||||||
|
ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255
|
||||||
|
fi
|
||||||
|
|
||||||
|
export GO15VENDOREXPERIMENT=1
|
||||||
|
export GOBIN=${PWD}/bin
|
||||||
|
export GOPATH=${PWD}/gopath
|
||||||
|
|
||||||
|
bash -c "umask 0; cd ${GOPATH}/src/${REPO_PATH}; PATH=${GOROOT}/bin:$(pwd)/bin:${PATH} go test ./..."
|
||||||
|
|
Reference in New Issue
Block a user