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 D87D2A054F; Tue, 18 Feb 2020 08:31:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 939411C1BC; Tue, 18 Feb 2020 08:31:40 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 9E1C41C1B4 for ; Tue, 18 Feb 2020 08:31:39 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 23:31:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,455,1574150400"; d="scan'208";a="268661865" Received: from unknown (HELO dpdk-zhushuai-tester.sh.intel.com) ([10.238.54.214]) by fmsmga002.fm.intel.com with ESMTP; 17 Feb 2020 23:31:35 -0800 From: lihong To: dts@dpdk.org Cc: lihong Date: Tue, 18 Feb 2020 00:18:26 +0000 Message-Id: <20200218001826.47347-1-lihongx.ma@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/unit_tests_eal: modify cmd according to dpdk 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: lihong --- tests/TestSuite_unit_tests_eal.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py index 84520a3..bd1696b 100644 --- a/tests/TestSuite_unit_tests_eal.py +++ b/tests/TestSuite_unit_tests_eal.py @@ -168,7 +168,7 @@ class TestUnitTestsEal(TestCase): self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time) - out = self.dut.send_expect("hash_readwrite_autotest", + out = self.dut.send_expect("hash_readwrite_func_autotest", "RTE>>", self.run_cmd_time) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -181,7 +181,20 @@ class TestUnitTestsEal(TestCase): eal_params = self.dut.create_eal_parameters() self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time) - out = self.dut.send_expect("hash_readwrite_lf_autotest", + out = self.dut.send_expect("hash_readwrite_lf_perf_autotest", + "RTE>>", self.run_cmd_time*3) + self.dut.send_expect("quit", "# ") + self.verify("Test OK" in out, "Test failed") + + def test_hash_readwrite_perf(self): + """ + Run hash readwrite perf autotest. + """ + + eal_params = self.dut.create_eal_parameters() + self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), + "R.*T.*E.*>.*>", self.start_test_time) + out = self.dut.send_expect("hash_readwrite_perf_autotest", "RTE>>", self.run_cmd_time*3) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") -- 2.17.1