aboutsummaryrefslogtreecommitdiffstats
path: root/ci/build-vsperf.sh
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-02-13 16:13:03 +0000
committerMartin Klozik <martinx.klozik@intel.com>2017-02-14 14:35:50 +0000
commit6ff21abfc08f0fe94ac7cb3dc22834a9b4c305ad (patch)
treeb4fe0dc28c4e639bd5a0cf21fceb8c37155f67f5 /ci/build-vsperf.sh
parentea4376cb3c89f4e3605d7f48036fd61325a52fcf (diff)
ci: Add SRIOV TC to CI daily job
SRIOV functionality should be regularly tested to detect any issues brought by new features. Testcase pvp_tput will be executed by daily job for several packet sizes. Testcase results will be reported and stored into artifactory, but they won't be stored into result database. JIRA: VSPERF-390 Change-Id: I9f6290b3be297a84c185681ce354bc7365b4036c Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Christian Trautman <ctrautma@redhat.com> Reviewed-by: Bill Michalowski <bmichalo@redhat.com> Reviewed-by: Antonio Fischetti <antonio.fischetti@intel.com> Reviewed-by: Sridhar Rao <sridhar.rao@spirent.com> Reviewed-by: Martin Goldammer <martinx.goldammer@intel.com> Reviewed-by: Trevor Cooper <trevor.cooper@intel.com>
Diffstat (limited to 'ci/build-vsperf.sh')
-rwxr-xr-xci/build-vsperf.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/ci/build-vsperf.sh b/ci/build-vsperf.sh
index 24fbb8fa..cc9d2530 100755
--- a/ci/build-vsperf.sh
+++ b/ci/build-vsperf.sh
@@ -50,6 +50,8 @@ TESTPARAM_MERGE="--integration"
# DAILY - run selected TCs for defined packet sizes
TESTCASES_DAILY='phy2phy_tput back2back phy2phy_tput_mod_vlan phy2phy_scalability pvp_tput pvp_back2back pvvp_tput pvvp_back2back'
TESTPARAM_DAILY='--test-params TRAFFICGEN_PKT_SIZES=(64,128,512,1024,1518)'
+TESTCASES_SRIOV='pvp_tput'
+TESTPARAM_SRIOV='--test-params TRAFFICGEN_PKT_SIZES=(64,128,512,1024,1518)'
# check if user config file exists if not then we will use default settings
if [ -f $HOME/vsperf-${BRANCH}.conf ] ; then
# branch specific config was found
@@ -61,6 +63,12 @@ else
CONF_FILE=""
fi
fi
+# check if sriov specific config file exists if not then use default configuration
+if [ -f $HOME/vsperf-${BRANCH}.conf.sriov ] ; then
+ CONF_FILE_SRIOV="${CONF_FILE}.sriov"
+else
+ CONF_FILE_SRIOV=$CONF_FILE
+fi
# Test report related configuration
TEST_REPORT_PARTIAL="*_test_report.rst"
@@ -157,6 +165,17 @@ function execute_vsperf() {
DATE_SUFFIX=$(date -u +"%Y-%m-%d_%H-%M-%S")
case $1 in
+ "SRIOV")
+ # use SRIOV specific TCs and configuration
+ TESTPARAM=$TESTPARAM_SRIOV
+ TESTCASES=$TESTCASES_SRIOV
+ # figure out log file name
+ LOG_SUBDIR="SRIOV"
+ LOG_FILE="${LOG_FILE_PREFIX}_${LOG_SUBDIR}_${DATE_SUFFIX}.log"
+
+ echo " $VSPERF_BIN --vswitch none --vnf QemuPciPassthrough $CONF_FILE_SRIOV $TESTPARAM $TESTCASES &> $LOG_FILE"
+ $VSPERF_BIN --vswitch none --vnf QemuPciPassthrough $CONF_FILE_SRIOV $TESTPARAM $TESTCASES &> $LOG_FILE
+ ;;
"OVS_vanilla")
# figure out log file name
LOG_SUBDIR="OvsVanilla"
@@ -419,6 +438,8 @@ case $1 in
terminate_vsperf
execute_vsperf OVS_vanilla $1
terminate_vsperf
+ execute_vsperf SRIOV $1
+ terminate_vsperf
generate_report