diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-05-11 16:24:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-05-11 20:57:18 +0900 |
commit | 5ad1a802bc23b7f0697f8059897c1d8588b76781 (patch) | |
tree | 29a30177cbceb8c1f74ce02e90513791c9676684 /test | |
parent | 1e006e10d59335775d4a613a3d10a72703b0f6ab (diff) |
scenario_test: clean up GOPATH and add route_server policy test
Diffstat (limited to 'test')
-rw-r--r-- | test/scenario_test/ci-scripts/jenkins-build-script.sh | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/test/scenario_test/ci-scripts/jenkins-build-script.sh b/test/scenario_test/ci-scripts/jenkins-build-script.sh index af7aa8ab..0d18f678 100644 --- a/test/scenario_test/ci-scripts/jenkins-build-script.sh +++ b/test/scenario_test/ci-scripts/jenkins-build-script.sh @@ -1,36 +1,50 @@ +# renew GOPATH +rm -rf /usr/local/jenkins/{bin,pkg,src} +mkdir /usr/local/jenkins/{bin,pkg,src} +mkdir -p /usr/local/jenkins/src/github.com/osrg/ + export GOPATH=/usr/local/jenkins export GOROOT=/usr/local/go export GOBGP=/usr/local/jenkins/src/github.com/osrg/gobgp WS=`pwd` -rm -rf $GOBGP cp -r ../workspace $GOBGP pwd cd $GOBGP ls -al -git log | head -10 +git log | head -20 cd $GOBGP/gobgpd $GOROOT/bin/go get -v cd $GOBGP/test/scenario_test set +e + +# route server test sudo -E python route_server_test.py --use-local --go-path $GOROOT/bin -s --with-xunit RET1=$? mv nosetests.xml ${WS}/nosetest.xml +# route server ipv4 ipv6 test sudo -E python route_server_ipv4_v6_test.py --use-local --go-path $GOROOT/bin -s --with-xunit RET2=$? mv nosetests.xml ${WS}/nosetest_ip.xml +# route server malformed message test sudo -E python route_server_malformed_test.py --use-local --go-path $GOROOT/bin -s --with-xunit RET3=$? mv nosetests.xml ${WS}/nosetest_malformed.xml +# bgp router test sudo -E python bgp_router_test.py --use-local --go-path $GOROOT/bin -s --with-xunit RET4=$? mv nosetests.xml ${WS}/nosetest_bgp.xml -if [ $RET1 != 0 ] || [ $RET2 != 0 ] || [ $RET3 != 0 ] || [ $RET4 != 0 ]; then +# route server policy test +sudo -E python route_server_policy_test.py --use-local --go-path $GOROOT/bin -s --with-xunit +RET5=$? +mv nosetests.xml ${WS}/nosetest_policy.xml + +if [ $RET1 != 0 ] || [ $RET2 != 0 ] || [ $RET3 != 0 ] || [ $RET4 != 0 ] || [ $RET5 != 0 ]; then exit 1 fi exit 0
\ No newline at end of file |