X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fcloud-infra%2Fcloud-infra-test.sh;h=a473fcd1efcc4875a8fa91ea3960cdeec05f3427;hb=1439237587ed153abf50fce0f97df983d5bd4979;hp=d12c943bd769ada519a5531841325009fae5fa43;hpb=4f29b8394ee11e5affba4f682d26388dc6bf8f74;p=infra%2Fcicd.git diff --git a/jjb/cloud-infra/cloud-infra-test.sh b/jjb/cloud-infra/cloud-infra-test.sh index d12c943b..a473fcd1 100644 --- a/jjb/cloud-infra/cloud-infra-test.sh +++ b/jjb/cloud-infra/cloud-infra-test.sh @@ -26,14 +26,23 @@ set -o pipefail # executed when the job that uses this script gets triggered due to Gerrit change. # # Logic in this script should be kept at minimum and the changes should be pushed into -# the cloud infra engine and/or test repo. +# the cloud infra test test.sh script. -# The verify job will verify changes coming to other repositories as well such as -# infra/swconfig so it needs to be handled here in order to ensure $WORKSPACE contains -# the actual engine repo clone. This will be added later on. +# we don't support ONAP scenario verification because it is expensive +# TODO: we need to find a way to verify those patches in a cheaper way +if [[ "$DEPLOY_SCENARIO" =~ "onap" ]]; then + echo "Info: ONAP scenario verification has not been implemented yet!" + exit 0 +fi -# we currently only do Hello World here and this will be adapted to do test instead +# we don't support testing of the deployments done on OpenStack cloud using heat yet +if [[ $DEPLOY_TYPE == "cloud" ]]; then + echo "Info: Testing of cloud deployments has not been implemented yet!" + exit 0 +fi + +# execute cloud engine test.sh script with arguments cd $WORKSPACE -echo "Hello World!" +./test/test.sh -f $TEST_FW -t $TEST_SUITE -s $DEPLOY_SCENARIO -d $YARDSTICK_DISPATCHER # vim: set ts=2 sw=2 expandtab: