engine: Enable testing of online deployments
[infra/cicd.git] / jjb / engine / engine-verify-jobs / scripts / test.sh
index a1c7f0e0391bac879daf70508ea0e7ff737f00ef..cc793530a4a700b2938f78a8f69a2b0e6d6f098c 100755 (executable)
@@ -22,4 +22,14 @@ set -o nounset
 set -o errexit
 set -o pipefail
 
-echo "Info  : Not implemented!"
+if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
+  echo "Info  : Testing of offline deployments is not currently supported!"
+  exit 0
+fi
+
+echo "Info  : Cloning infra/test repository"
+cd $HOME && /bin/rm -rf $WORKSPACE
+git clone -q $TEST_REPO_URL $WORKSPACE
+
+cd $WORKSPACE/test
+./test.sh -f $TEST_FW -t $TEST_SUITE