diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-04-08 14:12:30 +0900 |
---|---|---|
committer | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-04-08 14:12:30 +0900 |
commit | f0a4e914188eb80b0e72390097cb570b0437b32c (patch) | |
tree | ecd302bcb93af90e9d5d00eec26ae69c4530f4fd /test/scenario_test/ci-scripts/jenkins-build-script.sh | |
parent | 3b66a28fd5962710191033b90265f166f2fb7342 (diff) |
scerio_test: add build script of jenkins
Diffstat (limited to 'test/scenario_test/ci-scripts/jenkins-build-script.sh')
-rw-r--r-- | test/scenario_test/ci-scripts/jenkins-build-script.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/scenario_test/ci-scripts/jenkins-build-script.sh b/test/scenario_test/ci-scripts/jenkins-build-script.sh new file mode 100644 index 00000000..af7aa8ab --- /dev/null +++ b/test/scenario_test/ci-scripts/jenkins-build-script.sh @@ -0,0 +1,36 @@ +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 + +cd $GOBGP/gobgpd +$GOROOT/bin/go get -v +cd $GOBGP/test/scenario_test +set +e +sudo -E python route_server_test.py --use-local --go-path $GOROOT/bin -s --with-xunit +RET1=$? +mv nosetests.xml ${WS}/nosetest.xml + +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 + +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 + +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 + exit 1 +fi +exit 0
\ No newline at end of file |