From patchwork Tue Aug 18 07:52:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, XinfengX" X-Patchwork-Id: 75609 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5A395A0351; Tue, 18 Aug 2020 09:52:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4EA161C0AF; Tue, 18 Aug 2020 09:52:50 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id BA7981C05C for ; Tue, 18 Aug 2020 09:52:48 +0200 (CEST) IronPort-SDR: Ycm2kKbMepcXbYweJQo+dc/vDk1UvYktLefv4ZpBxq5fC4v/qHLoAzI1Gw0c6JXsAHNb2uT8G8 Uece7wu1lVFA== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="216382916" X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="216382916" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 00:52:48 -0700 IronPort-SDR: iA6KUaAUtHh0nw4b04XJm/qztuGxm+QIbQjCalO5pqHNU0SjgoWxVlJ7PWxW0ekmDEcHvxHmao 7TSvkKhxD1tw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="320002892" Received: from dpdk-xinfengx-tester.sh.intel.com ([10.67.116.161]) by fmsmga004.fm.intel.com with ESMTP; 18 Aug 2020 00:52:47 -0700 From: xinfeng zhao To: dts@dpdk.org Cc: xinfeng zhao Date: Tue, 18 Aug 2020 15:52:55 +0800 Message-Id: <20200818075255.19830-4-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200818075255.19830-1-xinfengx.zhao@intel.com> References: <20200818075255.19830-1-xinfengx.zhao@intel.com> Subject: [dts] [PATCH V1 4/4] tests: remove unnecessary common_base modification and build 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: xinfeng zhao Tested-by: Zhao, Xinfeng Signed-off-by: xinfeng zhao --- tests/TestSuite_virtio_unit_cryptodev_func.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/TestSuite_virtio_unit_cryptodev_func.py b/tests/TestSuite_virtio_unit_cryptodev_func.py index 47e9c47..d8f56e2 100644 --- a/tests/TestSuite_virtio_unit_cryptodev_func.py +++ b/tests/TestSuite_virtio_unit_cryptodev_func.py @@ -86,15 +86,6 @@ class VirtioCryptodevUnitTest(TestCase): def dut_execut_cmd(self, cmdline, ex='#', timout=30): return self.dut.send_expect(cmdline, ex, timout) - def build_user_dpdk(self, user_dut): - user_dut.send_expect( - "sed -i 's/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=n$/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=y/' config/common_base", '#', 30) - user_dut.send_expect( - "sed -i 's/CONFIG_RTE_EAL_IGB_UIO=n/CONFIG_RTE_EAL_IGB_UIO=y/g' config/common_base", '#', 30) - out = user_dut.send_expect("make -j %d install T=%s MAKE_PAUSE=n" % (user_dut.number_of_cores, self.target), "# ", 900) - self.verify("Error" not in out, "compilation error 1") - self.verify("No such file" not in out, "compilation error 2") - def build_vhost_app(self): out = self.dut_execut_cmd("make -C ./examples/vhost_crypto") @@ -155,24 +146,14 @@ class VirtioCryptodevUnitTest(TestCase): vm = QEMUKvm(self.dut, vm_name, 'virtio_unit_cryptodev_func') vf0 = {'opt_host': self.sriov_vfs_port[0].pci} vm.set_vm_device(driver=self.vf_assign_method, **vf0) - skip_setup = self.dut.skip_setup try: - self.dut.skip_setup = True vm_dut = vm.start() if vm_dut is None: print(('{} start failed'.format(vm_name))) except Exception as err: raise err - self.dut.skip_setup = skip_setup - vm_dut.restore_interfaces() - - if not self.dut.skip_setup: - self.build_user_dpdk(vm_dut) - - vm_dut.setup_modules(self.target, "igb_uio", None) - vm_dut.bind_interfaces_linux('igb_uio') vm.virtio_list = self.set_virtio_pci(vm_dut) self.logger.info("{} virtio list: {}".format(vm_name, vm.virtio_list)) vm.cores = vm_dut.get_core_list("all")