X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=bootstrap-verify-perf.sh;h=f2e4df58de166598b2af1f87ce69ff34fd304a5f;hp=5540f9f39d5a482903c2aa00b23d310a8cac8d53;hb=a9f251c649a5dea7428a43dc24380077a72dacba;hpb=f605477161642ec3414b68702baddbcd6e629048 diff --git a/bootstrap-verify-perf.sh b/bootstrap-verify-perf.sh index 5540f9f39d..f2e4df58de 100755 --- a/bootstrap-verify-perf.sh +++ b/bootstrap-verify-perf.sh @@ -276,6 +276,38 @@ case "$TEST_TAG" in TAGS=('mrrANDsrv6AND1t1c' 'mrrANDsrv6AND2t2c') ;; + VERIFY-PERF-PATCH ) + if [[ -z "$TEST_TAG_STRING" ]]; then + # If nothing is specified, we will run pre-selected tests by + # following tags. Items of array will be concatenated by OR in Robot + # Framework. + TEST_TAG_ARRAY=('mrrANDnic_intel-x710AND1t1cAND64bANDip4base' + 'mrrANDnic_intel-x710AND1t1cAND78bANDip6base' + 'mrrANDnic_intel-x710AND1t1cAND64bANDl2bdbase') + else + # If trigger contains tags, split them into array. + TEST_TAG_ARRAY=(${TEST_TAG_STRING//:/ }) + fi + + TAGS=() + + for TAG in "${TEST_TAG_ARRAY[@]}"; do + if [[ ${TAG} == "!"* ]]; then + # Exclude tags are not prefixed. + TAGS+=("${TAG}") + else + # We will prefix with perftest to prevent running other tests + # (e.g. Functional). + prefix="perftestAND" + if [[ ${JOB_NAME} == vpp-* ]] ; then + # Automatic prefixing for VPP jobs to limit the NIC used and + # traffic evaluation to MRR. + prefix="${prefix}mrrANDnic_intel-x710AND" + fi + TAGS+=("$prefix${TAG}") + fi + done + ;; * ) TAGS=('perftest') esac @@ -291,7 +323,7 @@ for TAG in "${TAGS[@]}"; do done # Execute the test -pybot ${PYBOT_ARGS}${EXPANDED_TAGS} tests/ +pybot ${PYBOT_ARGS}${EXPANDED_TAGS[@]} tests/ RETURN_STATUS=$(echo $?) # Archive JOB artifacts in jenkins