+case "$TEST_TAG" in
+ # run specific performance tests based on jenkins job type variable
+ PERFTEST_LONG )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf" \
+ --exclude SKIP_PATCH \
+ -i perftest_long \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_SHORT )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf" \
+ -i perftest_short \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_BRIDGE )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf.Long_Bridge_Domain*" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_IPV4 )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf.Long_IPv4*" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_IPV6 )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf.Long_IPv6*" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_XCONNECT )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf.Long_Xconnect*" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_XCONNECT_DOT1Q )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf.Long_Xconnect_Dot1q*" \
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_NDR )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf" -i NDR \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_PDR )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf" -i PDR \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_NIGHTLY )
+ #run all available tests
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ * )
+ # run full performance test suite and exit on fail
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "tests.perf" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+esac
+
+# Pybot output post-processing
+echo Post-processing test data...
+
+python ${SCRIPT_DIR}/resources/tools/robot_output_parser.py \
+ -i ${SCRIPT_DIR}/output.xml \
+ -o ${SCRIPT_DIR}/output_perf_data.xml \
+ -v ${VPP_STABLE_VER}
+if [ ! $? -eq 0 ]; then
+ echo "Parsing ${SCRIPT_DIR}/output.xml failed"
+fi