-if [ ! -z "$TEST_TAG" ]; then
-# run specific performance tests by tag if variable is set
- pybot -L TRACE \
- -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
- -i "${TEST_TAG,,}" tests/
-else
-# run full performance test suite
- pybot -L TRACE \
- -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
- -s performance tests/
+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} \
+ -i perftest_long \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_SHORT )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -i perftest_short \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_BRIDGE )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "performance.Long_Bridge_Domain*" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_IPV4 )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "performance.Long_IPv4*" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_IPV6 )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "performance.Long_IPv6*" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_XCONNECT )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "performance.Long_Xconnect*" \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_LONG_XCONNECT_DOT1Q )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s "performance.Long_Xconnect_Dot1q*" \
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_NDR )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s performance -i NDR \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ PERFTEST_PDR )
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s performance -i PDR \
+ tests/
+ RETURN_STATUS=$(echo $?)
+ ;;
+ * )
+ # run full performance test suite and exit on fail
+ pybot ${PYBOT_ARGS} \
+ -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s performance \
+ tests/
+ RETURN_STATUS=$(echo $?)
+esac
+
+# Pybot output post-processing
+echo Post-processing test data...
+
+python ${CUR_DIR}/resources/tools/robot_output_parser.py \
+ -i ${CUR_DIR}/output.xml \
+ -o ${CUR_DIR}/output_perf_data.xml \
+ -v ${VPP_STABLE_VER}
+if [ ! $? -eq 0 ]; then
+ echo "Parsing ${CUR_DIR}/output.xml failed"