From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 41AF65A63 for ; Fri, 22 May 2015 11:04:21 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 22 May 2015 02:04:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,474,1427785200"; d="scan'208";a="714136078" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 22 May 2015 02:04:19 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t4M94HWE002866; Fri, 22 May 2015 17:04:17 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t4M94Fju014321; Fri, 22 May 2015 17:04:17 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t4M94F17014317; Fri, 22 May 2015 17:04:15 +0800 From: "Jiajia, Sun" To: dts@dpdk.org Date: Fri, 22 May 2015 17:03:53 +0800 Message-Id: <1432285452-14286-1-git-send-email-sunx.jiajia@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH v2 00/19] *** Enable virtualization test for dts framework *** X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2015 09:04:21 -0000 From: sjiajiax This patch-set do many efforts to make dts framework to support virtualization test. First, add a virt_base class to define the base property and methods, then extend the base class by the specified virtualization type, and add a virtual DUT to abstract the VM, try many efforts to make the VM DUT like the general DUT there has been the DUT on the framework. And there is a test suite named as TestSuite_sriov_kvm.py to verify the changed framework worked well. sjiajiax (19): Abstract the NIC device as the single class NetDevice Add a base module for virtual test Add QEMU KVM module based on virt_base module for KVM test cases Add a module to manage the host resource Add a module to instantiate the VM Add a third-party module of qemu-guest-agent to manage VM Move some general functions from dts.py to utils.py and settings.py Add and move some functions because of the virtual tests and network device instantiation Change and add some functions to support virtual test add some exceptions to support framwork to handle virtual test exceptions Add some codes to support virtual test log Add some codes to make session to support virtual test Add some base functions to get the device info in the testpmd Change some codes to support network device instantiation and virtualization test Add some codes to support network instantiation in the tester module Make test_case know its suite name Add a global virtualization config and a config related to SRIOV KVM suite Add a test plan of how to test SRIOV on the KVM ENV Add a test suite to verify the SRIOV feature on the KVM ENV conf/sriov_kvm.cfg | 164 +++++ conf/virt_global.cfg | 24 + dep/QMP/qemu-ga-client | 299 +++++++++ dep/QMP/qmp.py | 193 ++++++ framework/config.py | 170 ++++- framework/crb.py | 126 ++-- framework/dts.py | 86 +-- framework/dut.py | 235 ++++++- framework/exception.py | 69 ++ framework/logger.py | 69 +- framework/net_device.py | 634 ++++++++++++++++++ framework/pmd_output.py | 92 +++ framework/project_dpdk.py | 29 +- framework/qemu_kvm.py | 972 +++++++++++++++++++++++++++ framework/settings.py | 43 ++ framework/ssh_pexpect.py | 62 +- framework/test_case.py | 3 +- framework/tester.py | 51 +- framework/utils.py | 100 +++ framework/virt_base.py | 321 +++++++++ framework/virt_dut.py | 202 ++++++ framework/virt_resource.py | 490 ++++++++++++++ test_plans/sriov_kvm_test_plan.rst | 756 +++++++++++++++++++++ tests/TestSuite_sriov_kvm.py | 1291 ++++++++++++++++++++++++++++++++++++ 24 files changed, 6253 insertions(+), 228 deletions(-) create mode 100644 conf/sriov_kvm.cfg create mode 100644 conf/virt_global.cfg create mode 100644 dep/QMP/qemu-ga-client create mode 100644 dep/QMP/qmp.py mode change 100755 => 100644 framework/config.py create mode 100644 framework/net_device.py create mode 100644 framework/qemu_kvm.py create mode 100644 framework/utils.py create mode 100644 framework/virt_base.py create mode 100644 framework/virt_dut.py create mode 100644 framework/virt_resource.py create mode 100644 test_plans/sriov_kvm_test_plan.rst create mode 100644 tests/TestSuite_sriov_kvm.py -- 1.9.3