From: xinfengx <xinfengx.zhao@intel.com>
To: dts@dpdk.org
Cc: xinfengx <xinfengx.zhao@intel.com>
Subject: [dts] [PATCH V1 6/6] tests/unit_tests_cryptodev_func: rework cryptodev unit test script
Date: Thu, 4 Jun 2020 08:54:45 +0800 [thread overview]
Message-ID: <20200604005445.110297-7-xinfengx.zhao@intel.com> (raw)
In-Reply-To: <20200604005445.110297-1-xinfengx.zhao@intel.com>
rework cryptodev unit test script
remove the redundant code
Signed-off-by: xinfengx <xinfengx.zhao@intel.com>
---
tests/TestSuite_unit_tests_cryptodev_func.py | 56 ++++++++------------
1 file changed, 21 insertions(+), 35 deletions(-)
diff --git a/tests/TestSuite_unit_tests_cryptodev_func.py b/tests/TestSuite_unit_tests_cryptodev_func.py
index a370fc4..e990192 100644
--- a/tests/TestSuite_unit_tests_cryptodev_func.py
+++ b/tests/TestSuite_unit_tests_cryptodev_func.py
@@ -54,77 +54,63 @@ class UnitTestsCryptodev(TestCase):
cc.clear_dpdk_config(self)
def test_cryptodev_qat_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_qat_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_qat_autotest")
def test_cryptodev_qat_asym_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_qat_asym_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_qat_asym_autotest")
def _test_cryptodev_qat_perftest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_qat_perftest", eal_opt_str)
+ self.__run_unit_test("cryptodev_qat_perftest")
def _test_cryptodev_qat_continual_perftest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_qat_continual_perftest", eal_opt_str)
+ self.__run_unit_test("cryptodev_qat_continual_perftest")
def _test_cryptodev_qat_snow3g_perftest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_qat_snow3g_perftest", eal_opt_str)
+ self.__run_unit_test("cryptodev_qat_snow3g_perftest")
def test_cryptodev_aesni_mb_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_aesni_mb_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_aesni_mb_autotest")
def _test_cryptodev_aesni_mb_perftest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_aesni_mb_perftest", eal_opt_str)
+ self.__run_unit_test("cryptodev_aesni_mb_perftest")
def test_cryptodev_aesni_gcm_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_aesni_gcm_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_aesni_gcm_autotest")
def _test_cryptodev_aesni_gcm_perftest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_aesni_gcm_perftest", eal_opt_str)
+ self.__run_unit_test("cryptodev_aesni_gcm_perftest")
def test_cryptodev_sw_snow3g_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_sw_snow3g_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_sw_snow3g_autotest")
def _test_cryptodev_sw_snow3g_perftest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_sw_snow3g_perftest", eal_opt_str)
+ self.__run_unit_test("cryptodev_sw_snow3g_perftest")
def test_cryptodev_sw_kasumi_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_sw_kasumi_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_sw_kasumi_autotest")
def test_cryptodev_sw_zuc_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_sw_zuc_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_sw_zuc_autotest")
def test_cryptodev_null_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_null_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_null_autotest")
def test_cryptodev_openssl_autotest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_openssl_autotest", eal_opt_str)
+ self.__run_unit_test("cryptodev_openssl_autotest")
def _test_cryptodev_openssl_perftest(self):
- eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_openssl_perftest", eal_opt_str)
+ self.__run_unit_test("cryptodev_openssl_perftest")
def test_cryptodev_scheduler_autotest(self):
+ self.__run_unit_test("cryptodev_scheduler_autotest")
+
+ def __run_unit_test(self, testsuite, timeout=600):
eal_opt_str = cc.get_eal_opt_str(self)
- self.__run_unit_test("cryptodev_scheduler_autotest", eal_opt_str)
+ w = cc.get_qat_devices(self, num=1)
- def __run_unit_test(self, testsuite, eal_opt_str, timeout=600):
self.logger.info("STEP_TEST: " + testsuite)
self.dut.send_expect("dmesg -C", "# ", 30)
- cmd_str = cc.get_dpdk_app_cmd_str(self._app_path, eal_opt_str)
+ cmd_str = cc.get_dpdk_app_cmd_str(self._app_path, eal_opt_str + " --log-level=6 -w %s" % w[0])
self.dut.send_expect(cmd_str, "RTE>>", 30)
out = ""
--
2.17.1
next prev parent reply other threads:[~2020-06-04 0:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-04 0:54 [dts] [PATCH V1 0/6] rework cryptodev test script and conf xinfengx
2020-06-04 0:54 ` [dts] [PATCH V1 1/6] conf: simplify conf settings for cryptodev test xinfengx
2020-06-04 0:54 ` [dts] [PATCH V1 2/6] tests/cryptodev_common: improve cryptodev common methods xinfengx
2020-06-04 0:54 ` [dts] [PATCH V1 3/6] tests/crypto_perf_cryptodev_perf: rework crypto_perf test script xinfengx
2020-06-04 0:54 ` [dts] [PATCH V1 4/6] tests/l2fwd_cryptodev_func: rework l2fwd_crypto " xinfengx
2020-06-04 0:54 ` [dts] [PATCH V1 5/6] tests/ipsec_gw_cryptodev_func: rework cryptodev ipsec " xinfengx
2020-06-04 0:54 ` xinfengx [this message]
2020-06-12 1:46 ` [dts] [PATCH V1 6/6] tests/unit_tests_cryptodev_func: rework cryptodev unit " Wan, Zhe
2020-06-04 0:59 ` [dts] [PATCH V1 0/6] rework cryptodev test script and conf Zhao, XinfengX
2020-06-19 3:32 ` 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=20200604005445.110297-7-xinfengx.zhao@intel.com \
--to=xinfengx.zhao@intel.com \
--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).