From f0170f8f8c25136b4d3cf4e3751e7f1511f46026 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 19 Oct 2018 17:37:50 +0200 Subject: Improve native launching method This will launch every verbs defined in the test configuration file instead of only the hardcoded launch_all_tests verbs Change-Id: I95f2714054403899424ae5f567903cfa0bbd49f4 Signed-off-by: Romain Forlot --- afm-test.native.sh | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'afm-test.native.sh') diff --git a/afm-test.native.sh b/afm-test.native.sh index 04212e0..9f9d6ca 100644 --- a/afm-test.native.sh +++ b/afm-test.native.sh @@ -96,12 +96,29 @@ export AFT_${ENV_API}_PLUGIN_PATH PROCNAME="afbd-$(grep -Eo 'id=".*" ' "${SERVICEPACKAGEDIR}/config.xml" | cut -d'=' -f2 | tr -d '" '| tr '[:upper:]' '[:lower:]')" SOCKETSERVICE="/tmp/$API" +declare -a testVerb + +if [[ $(jq -r '.testVerb|type' ${TESTCFGFILE}) == "array" ]] +then + testVerbLength=$(jq '.testVerb|length' ${TESTCFGFILE}) + for (( idx=0; idx "${LOGFILETEST}" elif [ ${MODE} = "SERVICE" ] @@ -140,7 +157,7 @@ then --workdir="${TESTPACKAGEDIR}" \ --binding="${AFBTEST}" \ --ws-client=unix:"${SOCKETSERVICE}" \ - --call="${TESTAPINAME}/launch_all_tests:{}" \ + $(echo -e "${testVerbCalls}") \ --call="${TESTAPINAME}/exit:{}" \ -vvv &> "${LOGFILETEST}" else -- cgit 1.2.3-korg