X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fcloud-infra%2Fcloud-infra-test.sh;h=bb6bf7d60f9512d8e132a7b2f0f7cc8849c4b607;hb=ac26b5d69db260b6888ea995e1182e2b51ec09fa;hp=d12c943bd769ada519a5531841325009fae5fa43;hpb=6b4d285002773c82ecab1b6485a51c6af80d0820;p=infra%2Fcicd.git diff --git a/jjb/cloud-infra/cloud-infra-test.sh b/jjb/cloud-infra/cloud-infra-test.sh index d12c943b..bb6bf7d6 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 -c -f $TEST_FW -t $TEST_SUITE -s $DEPLOY_SCENARIO -d $YARDSTICK_DISPATCHER # vim: set ts=2 sw=2 expandtab: