test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Jiang, YuX" <yux.jiang@intel.com>
To: dts@dpdk.org
Cc: "Jiang,yu" <yux.jiang@intel.com>, Jiang@dpdk.org
Subject: [dts] [PATCH V1 8/9] tests/TestSuite_virtio_unit_cryptodev_func: support meson build
Date: Mon,  7 Sep 2020 19:10:34 +0800	[thread overview]
Message-ID: <20200907111035.7697-9-yux.jiang@intel.com> (raw)
In-Reply-To: <20200907111035.7697-1-yux.jiang@intel.com>

From: "Jiang,yu" <yux.jiang@intel.com>

adapt to support both meson and makefile build

Signed-off-by: Jiang,yu <yux.jiang@intel.com>
---
 tests/TestSuite_virtio_unit_cryptodev_func.py | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/tests/TestSuite_virtio_unit_cryptodev_func.py b/tests/TestSuite_virtio_unit_cryptodev_func.py
index d8f56e2..336af7a 100644
--- a/tests/TestSuite_virtio_unit_cryptodev_func.py
+++ b/tests/TestSuite_virtio_unit_cryptodev_func.py
@@ -43,8 +43,8 @@ import cryptodev_common as cc
 
 class VirtioCryptodevUnitTest(TestCase):
     def set_up_all(self):
-        self.sample_app= "./examples/vhost_crypto/build/vhost-crypto"
-        self.user_app = "./{target}/app/test".format(target=self.dut.target)
+        self.sample_app = self.dut.apps_name['vhost_crypto']
+        self.user_app = self.dut.apps_name['test']
 
         self.vm0, self.vm0_dut = None, None
         self.dut.skip_setup = True
@@ -58,7 +58,7 @@ class VirtioCryptodevUnitTest(TestCase):
             self.dut.skip_setup = False
             cc.build_dpdk_with_cryptodev(self)
         cc.bind_qat_device(self)
-        self.build_vhost_app()
+        self.dut.build_dpdk_apps("./examples/vhost_crypto")
 
         self.vf_assign_method = "vfio-pci"
         self.dut.setup_modules(None, self.vf_assign_method, None)
@@ -86,12 +86,6 @@ class VirtioCryptodevUnitTest(TestCase):
     def dut_execut_cmd(self, cmdline, ex='#', timout=30):
         return self.dut.send_expect(cmdline, ex, timout)
 
-    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")
-
     def get_vhost_eal(self):
         default_eal_opts = {
             "c": None,
@@ -202,7 +196,8 @@ class VirtioCryptodevUnitTest(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/*")
 
-- 
2.7.4


  parent reply	other threads:[~2020-09-07 11:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-07 11:10 [dts] [PATCH V1 0/9] Modify suites to support meson & makefile Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 1/9] tests/TestSuite_crypto_perf_cryptodev_perf: support meson build Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 2/9] tests/TestSuite_fips_cryptodev: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 3/9] tests/TestSuite_ipsec_gw_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 4/9] tests/TestSuite_l2fwd_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 5/9] tests/TestSuite_unit_tests_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 6/9] tests/TestSuite_virtio_ipsec_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 7/9] tests/TestSuite_virtio_perf_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` Jiang, YuX [this message]
2020-09-07 11:10 ` [dts] [PATCH V1 9/9] tests/compress_common: " Jiang, YuX
2020-09-08  5:04 ` [dts] [PATCH V1 0/9] Modify suites to support meson & makefile Ma, LihongX
2020-09-10  1:14 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200907111035.7697-9-yux.jiang@intel.com \
    --to=yux.jiang@intel.com \
    --cc=Jiang@dpdk.org \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).