From 6ff21abfc08f0fe94ac7cb3dc22834a9b4c305ad Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Mon, 13 Feb 2017 16:13:03 +0000 Subject: 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 Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Bill Michalowski Reviewed-by: Antonio Fischetti Reviewed-by: Sridhar Rao Reviewed-by: Martin Goldammer Reviewed-by: Trevor Cooper --- ci/build-vsperf.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ci') 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 -- cgit 1.2.3-korg