From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1FFDFA04B7; Mon, 7 Sep 2020 13:11:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 18B121C0DB; Mon, 7 Sep 2020 13:11:32 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 92D861BE0C for ; Mon, 7 Sep 2020 13:11:30 +0200 (CEST) IronPort-SDR: r9BUGvi4zJKi1DO/HIxsmxJl+iPQ7kN+W1p6RdaZ26RiJFEofvxDbNk/oZKI1KAPRLruqWozzH DDRfJ6XONJGw== X-IronPort-AV: E=McAfee;i="6000,8403,9736"; a="222197531" X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="222197531" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2020 04:11:30 -0700 IronPort-SDR: 0+r2Wmj+hmKuYdML5e9wn/Qaq1HVN+7AEEBdJX48ULGgFuYjl/zrsgNprQKEJ+gE9z7+3htzKz ZhaLr98o65zA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="316841869" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 07 Sep 2020 04:11:28 -0700 From: "Jiang, YuX" To: dts@dpdk.org Cc: "Jiang,yu" , Jiang@dpdk.org Date: Mon, 7 Sep 2020 19:10:33 +0800 Message-Id: <20200907111035.7697-8-yux.jiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907111035.7697-1-yux.jiang@intel.com> References: <20200907111035.7697-1-yux.jiang@intel.com> Subject: [dts] [PATCH V1 7/9] tests/TestSuite_virtio_perf_cryptodev_func: support meson 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" From: "Jiang,yu" adapt to support both meson and makefile build Signed-off-by: Jiang,yu --- tests/TestSuite_virtio_perf_cryptodev_func.py | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/tests/TestSuite_virtio_perf_cryptodev_func.py b/tests/TestSuite_virtio_perf_cryptodev_func.py index 5323fc6..5126a06 100644 --- a/tests/TestSuite_virtio_perf_cryptodev_func.py +++ b/tests/TestSuite_virtio_perf_cryptodev_func.py @@ -41,8 +41,8 @@ import cryptodev_common as cc class VirtioCryptodevPerfTest(TestCase): def set_up_all(self): - self.sample_app = "./examples/vhost_crypto/build/vhost-crypto" - self.user_app = "./{target}/build/app/test-crypto-perf/dpdk-test-crypto-perf".format(target=self.dut.target) + self.sample_app = self.dut.apps_name['vhost_crypto'] + self.user_app = self.dut.apps_name['test-crypto-perf'] self._default_crypto_perf_opts = { "ptest": "throughput", "silent": "", @@ -85,7 +85,7 @@ class VirtioCryptodevPerfTest(TestCase): if not cc.is_build_skip(self): self.dut.skip_setup = False cc.build_dpdk_with_cryptodev(self) - self.build_vhost_app() + self.dut.build_dpdk_apps("./examples/vhost_crypto") cc.bind_qat_device(self) self.vf_assign_method = "vfio-pci" @@ -119,16 +119,7 @@ class VirtioCryptodevPerfTest(TestCase): "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") - - self.verify("Error" not in out, "compilation error 1") - self.verify("No such file" not in out, "compilation error 2") + user_dut.build_install_dpdk(self.target) def get_vhost_eal(self): default_eal_opts = { @@ -260,7 +251,8 @@ class VirtioCryptodevPerfTest(TestCase): self.used_dut_port = None self.dut_execut_cmd("^C", "# ") - self.dut_execut_cmd("killall -s INT vhost-crypto") + self.app_name = self.sample_app[self.sample_app.rfind('/')+1:] + self.dut.send_expect("killall -s INT %s" % self.app_name, "#") self.dut_execut_cmd("killall -s INT qemu-system-x86_64") self.dut_execut_cmd("rm -r /tmp/*") cc.clear_dpdk_config(self) -- 2.7.4