From patchwork Thu Sep 3 08:28:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76357 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 17B69A04DB; Thu, 3 Sep 2020 10:30:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8A17F1C0B4; Thu, 3 Sep 2020 10:30:28 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7E15EE07 for ; Thu, 3 Sep 2020 10:30:27 +0200 (CEST) IronPort-SDR: 8uMaN4AZWr9Y+JdIZ7KyERQF3wE4fftiSASQbt3usB3IqJic+dFnTBEq3aXiDRL9qFWbpe2kfa E/CC7wtt1qUg== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753245" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753245" 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; 03 Sep 2020 01:30:27 -0700 IronPort-SDR: 3yZjoBKe2vaLV4Hm3Zi5Ls9dBxJt/tpuPBwW4+gh0O7v0TzgMK31PStdJhaDDzQVs10MJcdopl oOIhY8ROzk0g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404150" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:25 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:25 +0800 Message-Id: <20200903082839.30213-2-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 01/15] tests/TestSuite_unit_tests_cmdline:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_cmdline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_unit_tests_cmdline.py b/tests/TestSuite_unit_tests_cmdline.py index 057020c..ac49c1b 100644 --- a/tests/TestSuite_unit_tests_cmdline.py +++ b/tests/TestSuite_unit_tests_cmdline.py @@ -71,7 +71,8 @@ class TestUnitTestsCmdline(TestCase): Run cmdline autotests in RTE command line. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("cmdline_autotest", "RTE>>", 60) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") From patchwork Thu Sep 3 08:28:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76358 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 CC692A04DC; Thu, 3 Sep 2020 10:30:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ACD571C0B2; Thu, 3 Sep 2020 10:30:29 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E58CF1C0B7 for ; Thu, 3 Sep 2020 10:30:28 +0200 (CEST) IronPort-SDR: qyNFApTwByQDcxKdNMRUhjY/h7xCAceoFqrRUYdnSY36St2H0uT8OHX01T5Q1S+u3OV+D0fIQ8 PBfsS7i7AjAw== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753250" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753250" 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; 03 Sep 2020 01:30:28 -0700 IronPort-SDR: 3VRDBEfYoDiPQLOLcQlGN2yuqQEx7zve4WA6kc8wM3Ckcrvdvp4EufA30ydzIptvrxKjLmYzxg BnsvkS+cFwmw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404158" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:27 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:26 +0800 Message-Id: <20200903082839.30213-3-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 02/15] tests/TestSuite_unit_tests_crc:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_crc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_unit_tests_crc.py b/tests/TestSuite_unit_tests_crc.py index f182d35..9bc5e62 100644 --- a/tests/TestSuite_unit_tests_crc.py +++ b/tests/TestSuite_unit_tests_crc.py @@ -70,7 +70,8 @@ class TestUnitTestsCrc(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("crc_autotest", "RTE>>", 60) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") From patchwork Thu Sep 3 08:28:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76359 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 EBFB4A04D9; Thu, 3 Sep 2020 10:30:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD7E11C0BC; Thu, 3 Sep 2020 10:30:31 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 52735E07 for ; Thu, 3 Sep 2020 10:30:30 +0200 (CEST) IronPort-SDR: uIcfNQNPOysjA03hYeO4NYeaP9SYfbToEJnZFxJh6rzh6wY05WHJHMr924Nz4CHa54lSfjQXlB pTMTV0XHLzTQ== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753253" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753253" 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; 03 Sep 2020 01:30:30 -0700 IronPort-SDR: rIfDzDPkVcWebtY/JZjFh0kvuo8mvsxAkT/wEKQla0tGgXCLXloHyJkOOL++sLcZilz9kJGE7Y 2FzZPFrnZwAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404167" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:28 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:27 +0800 Message-Id: <20200903082839.30213-4-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 03/15] tests/TestSuite_unit_tests_dump:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_dump.py | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py index 57dfc3a..603cc1a 100644 --- a/tests/TestSuite_unit_tests_dump.py +++ b/tests/TestSuite_unit_tests_dump.py @@ -80,7 +80,8 @@ class TestUnitTestsDump(TestCase): Run history log dump test case. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", self.start_test_time) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_log_history", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") self.verify("EAL" in out, "Test failed") @@ -90,7 +91,7 @@ class TestUnitTestsDump(TestCase): Run history log dump test case. """ eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T') - cmd = "./%s/app/testpmd %s -- -i" % (self.target,eal_params) + cmd = self.dut.apps_name['test-pmd'] + eal_params + '-- -i' self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time) out = self.dut.send_expect("dump_ring", "testpmd>", self.run_cmd_time) @@ -113,7 +114,7 @@ class TestUnitTestsDump(TestCase): Run mempool dump test case. """ eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T') - cmd = "./%s/app/testpmd %s -- -i" % (self.target,eal_params) + cmd = self.dut.apps_name['test-pmd'] + eal_params + '-- -i' self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time) out = self.dut.send_expect("dump_mempool", "testpmd>", self.run_cmd_time * 2) @@ -135,7 +136,8 @@ class TestUnitTestsDump(TestCase): Run physical memory dump test case. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_physmem", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") elements = ['Segment', 'IOVA', 'len', 'virt', 'socket_id', 'hugepage_sz', 'nchannel', 'nrank'] @@ -156,7 +158,7 @@ class TestUnitTestsDump(TestCase): Run memzone dump test case. """ eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T') - cmd = "./%s/app/testpmd %s -- -i" % (self.target,eal_params) + cmd = self.dut.apps_name['test-pmd'] + eal_params + '-- -i' self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time) out = self.dut.send_expect("dump_memzone", "testpmd>", self.run_cmd_time * 2) @@ -180,7 +182,8 @@ class TestUnitTestsDump(TestCase): Run struct size dump test case. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_struct_sizes", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") @@ -201,14 +204,16 @@ class TestUnitTestsDump(TestCase): test_port = self.dut_ports[0] pci_address = self.dut.ports_info[test_port]['pci']; eal_params = self.dut.create_eal_parameters(cores=self.cores,b_ports=[pci_address]) - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") black_str = " %s" % pci_address self.verify(black_str in out, "Dump black list failed") eal_params1 = self.dut.create_eal_parameters(cores=self.cores,ports=[pci_address]) - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params1), "R.*T.*E.*>.*>", self.start_test_time) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params1,"R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") @@ -220,7 +225,8 @@ class TestUnitTestsDump(TestCase): Run dump malloc dump test case. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_malloc_stats", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") match_regex = "Heap id:(\d*)" @@ -236,7 +242,8 @@ class TestUnitTestsDump(TestCase): Run malloc heaps dump test case. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_malloc_heaps", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") @@ -256,7 +263,8 @@ class TestUnitTestsDump(TestCase): Run log types dump test case. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_log_types", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") From patchwork Thu Sep 3 08:28:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76360 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 14BB7A04D9; Thu, 3 Sep 2020 10:30:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0CCD81C0B9; Thu, 3 Sep 2020 10:30:34 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 74CE0E07 for ; Thu, 3 Sep 2020 10:30:31 +0200 (CEST) IronPort-SDR: j/aq46ECQ1DI0VNuAGZdgvguw+/9j5BW33RPTU8FwNAKb60v+MpDtg+JhDw7QCYQ28v5UH5lXJ /MY0IyBdsrxA== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753259" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753259" 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; 03 Sep 2020 01:30:31 -0700 IronPort-SDR: 1m6jpP+gNMnuv+vAcMo1AKIEwzDcib0lC5ss8FHIS0neb61Ykjf21mJWg6W4VGCxX2Qu7pPbgF QtHZew9PhkLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404173" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:30 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:28 +0800 Message-Id: <20200903082839.30213-5-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 04/15] tests/TestSuite_unit_tests_eal:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_eal.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py index 9c80663..99710a9 100644 --- a/tests/TestSuite_unit_tests_eal.py +++ b/tests/TestSuite_unit_tests_eal.py @@ -36,7 +36,8 @@ class TestUnitTestsEal(TestCase): self.run_cmd_time = 180 default_cores = '1S/4C/1T' eal_params = self.dut.create_eal_parameters(cores=default_cores) - self.test_app_cmdline = "./%s/app/test %s" % (self.target,eal_params) + app_name = self.dut.apps_name['test'] + self.test_app_cmdline = app_name + eal_params def set_up(self): """ @@ -179,7 +180,7 @@ class TestUnitTestsEal(TestCase): """ eal_params = self.dut.create_eal_parameters() - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), + self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("hash_readwrite_lf_perf_autotest", "RTE>>", self.run_cmd_time*3) @@ -192,7 +193,7 @@ class TestUnitTestsEal(TestCase): """ eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T') - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), + self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("hash_readwrite_perf_autotest", "RTE>>", self.run_cmd_time*3) @@ -208,7 +209,8 @@ class TestUnitTestsEal(TestCase): cmdline = self.test_app_cmdline else: # mask cores only on socket 0 - cmdline = "%s ./%s/app/test -n 1 -c 5" % (self.dut.taskset(1), self.target) + app_name = self.dut.apps_name['test'] + cmdline = self.dut.taskset(1)+ ' ' +app_name+' -n 1 -c 5' self.dut.send_expect(cmdline, "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("func_reentrancy_autotest", "RTE>>", self.run_cmd_time) self.dut.send_expect("quit", "# ") From patchwork Thu Sep 3 08:28:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76361 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 40D84A04DB; Thu, 3 Sep 2020 10:30:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3A8F91C0C5; Thu, 3 Sep 2020 10:30:34 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 734861C0B9 for ; Thu, 3 Sep 2020 10:30:33 +0200 (CEST) IronPort-SDR: 4OL0UkiUkakFvpYRKD0hfQJhUy525GVnGUzfdgMmIBq6aOqrWhQhFL4dVGwlZ9rVoqlRrwzyhE aSFVgOtlpmtA== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753266" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753266" 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; 03 Sep 2020 01:30:32 -0700 IronPort-SDR: pLfs8UlRH1SWiAiTJUOQpO54TSpR5iPcJXxpim5YvN5UO0bAiarde3Z2kK+Aey5SzdsOPjDGXe pkjR49A2yfXQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404178" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:31 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:29 +0800 Message-Id: <20200903082839.30213-6-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 05/15] tests/TestSuite_unit_tests_kni:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_kni.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py index ecf412b..abf8a80 100644 --- a/tests/TestSuite_unit_tests_kni.py +++ b/tests/TestSuite_unit_tests_kni.py @@ -90,7 +90,8 @@ class TestUnitTestsKni(TestCase): Run kni autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("kni_autotest", "RTE>>", 60) self.dut.send_expect("quit", "# ") From patchwork Thu Sep 3 08:28:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76362 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 6B682A04DC; Thu, 3 Sep 2020 10:30:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 635811C0C0; Thu, 3 Sep 2020 10:30:35 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 255431C0C0 for ; Thu, 3 Sep 2020 10:30:33 +0200 (CEST) IronPort-SDR: gmIDKBugXg0JolWMldVDW9nVgxaWd1YWyvrVk8S33eQfz2Y8vCxjLqszCZLRWNPHL/qbfoyXrB lQcFy+d2ryrg== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753268" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753268" 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; 03 Sep 2020 01:30:33 -0700 IronPort-SDR: P/PoOufTRLkBLm0VwPQJpKUakW5ofyAN8IWKsnHFuXQo5srlTGnQwPodp9zoDVqG2U93tkBUq7 ioeCIAwJFV6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404182" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:32 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:30 +0800 Message-Id: <20200903082839.30213-7-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 06/15] tests/TestSuite_unit_tests_loopback:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_loopback.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/tests/TestSuite_unit_tests_loopback.py b/tests/TestSuite_unit_tests_loopback.py index c1d37b2..6babc2a 100644 --- a/tests/TestSuite_unit_tests_loopback.py +++ b/tests/TestSuite_unit_tests_loopback.py @@ -92,14 +92,13 @@ class TestUnitTestsLoopback(TestCase): Run pmd stream control mode burst test case. """ self.dut.send_expect("sed -i -e 's/lpbk_mode = 0/lpbk_mode = 1/' app/test/test_pmd_perf.c", "# ", 30) - out = self.dut.send_expect("make -j %s app/test_sub O=%s" % (self.dut.number_of_cores, self.target), "#") - self.verify("Error" not in out, "compilation l3fwd-power error") - self.verify("No such" not in out, "Compilation error") + self.dut.build_install_dpdk(self.target) self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#") self.tester.send_expect("tcpdump -i %s ether[12:2] != '0x88cc' -w ./getPackageByTcpdump.cap 2> /dev/null& " % self.tester_itf, "#") eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120) print(out) self.dut.send_expect("quit", "# ") @@ -115,14 +114,13 @@ class TestUnitTestsLoopback(TestCase): """ self.dut.send_expect("sed -i -e 's/lpbk_mode = 1/lpbk_mode = 0/' app/test/test_pmd_perf.c", "# ", 30) self.dut.send_expect("sed -i -e '/check_all_ports_link_status(nb_ports, RTE_PORT_ALL);/a\ sleep(6);' app/test/test_pmd_perf.c", "# ", 30) - out = self.dut.send_expect("make -j %s app/test_sub O=%s" % (self.dut.number_of_cores, self.target), "#") - self.verify("Error" not in out, "compilation l3fwd-power error") - self.verify("No such" not in out, "Compilation error") + self.dut.build_install_dpdk(self.target) self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#") self.tester.send_expect("tcpdump -i %s -w ./getPackageByTcpdump.cap 2> /dev/null& " % self.tester_itf, "#") eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) self.dut.send_command("pmd_perf_autotest", 30) # There is no packet loopback, so the test is hung. # It needs to kill the process manually. @@ -144,7 +142,5 @@ class TestUnitTestsLoopback(TestCase): """ self.dut.send_expect("cp %s app/test/test_pmd_perf.c" % self.tmp_path, "# ") self.dut.send_expect("sed -i -e 's/#define MAX_TRAFFIC_BURST 32/#define MAX_TRAFFIC_BURST %s/' app/test/test_pmd_perf.c" % self.max_traffic_burst, "# ", 30) - out = self.dut.send_expect("make -j %s app/test_sub O=%s" % (self.dut.number_of_cores, self.target), "#") - self.verify("Error" not in out, "compilation l3fwd-power error") - self.verify("No such" not in out, "Compilation error") + self.dut.build_install_dpdk(self.target) self.dut.kill_all() From patchwork Thu Sep 3 08:28:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76363 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 9C237A04D9; Thu, 3 Sep 2020 10:30:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 956E01C0B6; Thu, 3 Sep 2020 10:30:36 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7A1DD1C0CC for ; Thu, 3 Sep 2020 10:30:35 +0200 (CEST) IronPort-SDR: 6FPlZcifyf6bsImeZ3HGQfeaGjwJVMuPTdeyRyCWG1EwI+bUzscZq57NR3J5C9SfstUUPENmH3 7O/HbZ2B0V6A== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753273" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753273" 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; 03 Sep 2020 01:30:35 -0700 IronPort-SDR: kjZB51AN2m8I1g3oPhc/sAno+LanEqdWXpWBKnD2l8qonY5FSSW931SB8UbWG9HwcH/fMKsH0u IxEPqti8FnLg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404187" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:34 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:31 +0800 Message-Id: <20200903082839.30213-8-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 07/15] tests/TestSuite_unit_tests_lpm:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_lpm.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py index 7a35935..dd4d534 100644 --- a/tests/TestSuite_unit_tests_lpm.py +++ b/tests/TestSuite_unit_tests_lpm.py @@ -73,9 +73,8 @@ class TestUnitTestsLpmIpv6(TestCase): Run lpm for IPv4 autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect( - "./%s/app/test %s" - % (self.target,eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -85,9 +84,8 @@ class TestUnitTestsLpmIpv6(TestCase): Run lpm for IPv6 autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect( - "./%s/app/test %s" - % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm6_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -97,9 +95,8 @@ class TestUnitTestsLpmIpv6(TestCase): Run lpm for IPv4 performance autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect( - "./%s/app/test %s" - % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm_perf_autotest", "RTE>>", 600) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -109,9 +106,8 @@ class TestUnitTestsLpmIpv6(TestCase): Run lpm for IPv6 performance autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect( - "./%s/app/test %s" - % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm6_perf_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") From patchwork Thu Sep 3 08:28:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76364 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 CB5D3A04D9; Thu, 3 Sep 2020 10:30:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C076E1C0B0; Thu, 3 Sep 2020 10:30:38 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 04E7A1C0B0 for ; Thu, 3 Sep 2020 10:30:36 +0200 (CEST) IronPort-SDR: AqW21/Zh+29/d7BcoWk+ylpJJ1NhreLjMbprk4ZMq8TCY/jQXOqm7IxejUQAxGFjOZ6GuZZrpf FG9fJ1nlfQSQ== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753278" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753278" 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; 03 Sep 2020 01:30:36 -0700 IronPort-SDR: ODAeXYgbfTGqFZtSF9BZMdM2zSje6SqLy703SpY2/8qjhtjb4MtdUqJyMeycEZrX4uD9w/lSRv 766f3m5O7xlA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404197" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:35 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:32 +0800 Message-Id: <20200903082839.30213-9-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 08/15] tests/TestSuite_unit_tests_mbuf:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_mbuf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_unit_tests_mbuf.py b/tests/TestSuite_unit_tests_mbuf.py index 366ee3f..05b633c 100644 --- a/tests/TestSuite_unit_tests_mbuf.py +++ b/tests/TestSuite_unit_tests_mbuf.py @@ -71,7 +71,8 @@ class TestUnitTestsMbuf(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("mbuf_autotest", "RTE>>", 180) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") From patchwork Thu Sep 3 08:28:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76365 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 0B47FA04D9; Thu, 3 Sep 2020 10:30:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 03B4C1C0C2; Thu, 3 Sep 2020 10:30:40 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id EF6DC1C0B0 for ; Thu, 3 Sep 2020 10:30:37 +0200 (CEST) IronPort-SDR: IyrrrZNkQNx4Yvb+q8qWL3wNm68iwgCpiDNiLphgg9dHqARIzrIuhtJowZe72RJtaKyw8kLZhP QkcBRPs624dQ== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753281" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753281" 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; 03 Sep 2020 01:30:37 -0700 IronPort-SDR: FzjMTma6MKazJOtBQR4RIW8JrbPRZil/s53E0s6yXKc7WLzNfCTn4qGBAqOovOm0CvJXZYYlWx YYblgRqJi2bw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404205" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:36 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:33 +0800 Message-Id: <20200903082839.30213-10-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 09/15] tests/TestSuite_unit_tests_mempool:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_mempool.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_mempool.py b/tests/TestSuite_unit_tests_mempool.py index 1a41daf..4907fd4 100644 --- a/tests/TestSuite_unit_tests_mempool.py +++ b/tests/TestSuite_unit_tests_mempool.py @@ -71,7 +71,8 @@ class TestUnitTestsMempool(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("mempool_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -81,7 +82,8 @@ class TestUnitTestsMempool(TestCase): Run memory pool performance autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("mempool_perf_autotest", "RTE>>", 2000) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") From patchwork Thu Sep 3 08:28:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76366 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 359F3A04D9; Thu, 3 Sep 2020 10:30:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 264C01C0CE; Thu, 3 Sep 2020 10:30:42 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id CAFDA1C0AF for ; Thu, 3 Sep 2020 10:30:39 +0200 (CEST) IronPort-SDR: OQL1m7WyInBOkmq63IzwOFcob5BUSCUxNhvZFdq0w5KFm1o5wu9z5EalPls/TFaRk7EN/Obmvq aAe70eUTPoGQ== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753285" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753285" 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; 03 Sep 2020 01:30:38 -0700 IronPort-SDR: 0OSvxSiSy6CnNhrCoOvj5or7Y2ywX9LxTvJKzozAihZRlZqBEfiHTQb/mrcrsD5gctmU6uCYVn +9Le6KGn6YVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404210" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:37 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:34 +0800 Message-Id: <20200903082839.30213-11-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 10/15] tests/TestSuite_unit_tests_pmd_perf:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_pmd_perf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py index f8b36d1..4546169 100644 --- a/tests/TestSuite_unit_tests_pmd_perf.py +++ b/tests/TestSuite_unit_tests_pmd_perf.py @@ -80,7 +80,8 @@ class TestUnitTestsPmdPerf(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=[0,1]) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) for mode in self.burst_ctlmodes: self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10) out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120) @@ -102,7 +103,8 @@ class TestUnitTestsPmdPerf(TestCase): self.result_table_create(self.table_header) eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=[0,1]) print((self.table_header)) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) for mode in self.rxtx_modes: table_row = [mode] self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 10) From patchwork Thu Sep 3 08:28:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76367 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 5733BA04DB; Thu, 3 Sep 2020 10:30:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4BF011C0B7; Thu, 3 Sep 2020 10:30:43 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D22C61C0AF for ; Thu, 3 Sep 2020 10:30:40 +0200 (CEST) IronPort-SDR: KsoVAG7K0/RuAjtY+mgyoB/Eap7SIh1sFmggZtLGq8GHc2aoCJgoFgULNfiNMMYz1uZP1HmXpj hCkY4JJkuSXQ== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753294" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753294" 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; 03 Sep 2020 01:30:40 -0700 IronPort-SDR: 6cc+ShkhksohsILqCeMnIHeEtalSyx7SMza5AX/19Un5trqYJPPiuYoB6corvIC1/T3oeaKvgc zeTVddRmeFEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404217" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:39 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:35 +0800 Message-Id: <20200903082839.30213-12-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 11/15] tests/TestSuite_unit_tests_power:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_power.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_unit_tests_power.py b/tests/TestSuite_unit_tests_power.py index fb79505..b09bcd6 100644 --- a/tests/TestSuite_unit_tests_power.py +++ b/tests/TestSuite_unit_tests_power.py @@ -72,7 +72,8 @@ class TestUnitTestsPower(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("power_autotest", "RTE>>", 60) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -84,7 +85,8 @@ class TestUnitTestsPower(TestCase): # This acpi driver test case need correct BIOS and Grub settings. # otherwise, the power lib initialization will be failed eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("power_cpufreq_autotest", "RTE>>", 60) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -96,7 +98,8 @@ class TestUnitTestsPower(TestCase): # This acpi driver test case need correct BIOS and Grub settings. # otherwise, the power lib initialization will be failed eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("power_caps_autotest", "RTE>>", 60) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") From patchwork Thu Sep 3 08:28:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76368 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 81077A04DC; Thu, 3 Sep 2020 10:30:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7BB851C0D1; Thu, 3 Sep 2020 10:30:43 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id B509E1C0AF for ; Thu, 3 Sep 2020 10:30:41 +0200 (CEST) IronPort-SDR: t3qwMds+g4Q8LF4rwkRxI0e/dO1luPQ2l3NIZwXGEOPglXLAa/wEqS3WLzzS3jklcPSnAXmSno iIcX8Wq+YmoA== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753300" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753300" 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; 03 Sep 2020 01:30:41 -0700 IronPort-SDR: aGP6y5NnVVio49bg+4k4KOFcLi/g8eIWrXPETOPQa0rW8FfScE672ScY+4EkdWewP4tzYaSHie pvz2SJDpF6nw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404224" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:40 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:36 +0800 Message-Id: <20200903082839.30213-13-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 12/15] tests/TestSuite_unit_tests_qos:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_qos.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_unit_tests_qos.py b/tests/TestSuite_unit_tests_qos.py index 5047b8e..8ccaea1 100644 --- a/tests/TestSuite_unit_tests_qos.py +++ b/tests/TestSuite_unit_tests_qos.py @@ -74,7 +74,8 @@ class TestUnitTestsQos(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 30) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 30) out = self.dut.send_expect("red_autotest", "RTE>>", 180) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -85,7 +86,8 @@ class TestUnitTestsQos(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 30) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 30) out = self.dut.send_expect("meter_autotest", "RTE>>", 5) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -99,7 +101,8 @@ class TestUnitTestsQos(TestCase): self.verify(arch in ["x86_64" ,"arm64" ,"ppc_64"], "Sched auto_test only support in x86_64 or arm64 ppc_64") eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 30) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 30) out = self.dut.send_expect("sched_autotest", "RTE>>", 5) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") From patchwork Thu Sep 3 08:28:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76369 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 B03C6A04D9; Thu, 3 Sep 2020 10:30:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9B6FA1C0BD; Thu, 3 Sep 2020 10:30:44 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C893F1C0B7 for ; Thu, 3 Sep 2020 10:30:42 +0200 (CEST) IronPort-SDR: ksr/i3mFf6B30xBlui+tjZalsHjwjzwsWWoEoE5xpVwahuIdHjt4ygsAJ6LXRZz8trAXF4JPNU iti5viL/XgBg== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753301" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753301" 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; 03 Sep 2020 01:30:42 -0700 IronPort-SDR: ttv5+XPCBg+e90ahkxcXGfab6lRu/VWDY7tOB/NUFUwg8WIwIChBFejYXZ0pKfhFBbQcZZjp+p Oq3YjmulqFrQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404229" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:41 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:37 +0800 Message-Id: <20200903082839.30213-14-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 13/15] tests/TestSuite_unit_tests_ringpmd:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_ringpmd.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_ringpmd.py b/tests/TestSuite_unit_tests_ringpmd.py index 19abb6e..7050a44 100644 --- a/tests/TestSuite_unit_tests_ringpmd.py +++ b/tests/TestSuite_unit_tests_ringpmd.py @@ -75,13 +75,15 @@ class TestUnitTestsRingPmd(TestCase): dev_str2 = "net_ring1" eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 10) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 10) out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Default no eth_ring devices Test failed") eal_params = self.dut.create_eal_parameters(cores=self.cores,vdevs=[dev_str1,dev_str2]) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 10) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 10) out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Two eth_ring devices test failed") From patchwork Thu Sep 3 08:28:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76370 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 C8AF7A04D9; Thu, 3 Sep 2020 10:30:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C08F81C0AF; Thu, 3 Sep 2020 10:30:45 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id ED033E07 for ; Thu, 3 Sep 2020 10:30:43 +0200 (CEST) IronPort-SDR: UcErevl68O41apN0WN0U51aZC3/TkNP26TbpTe83C+iJGAok3VLbT5UxG24moq7q8bW2VBTUGu D3H6yloDxm1g== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753306" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753306" 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; 03 Sep 2020 01:30:43 -0700 IronPort-SDR: r1KjesRId93od5yv2p2H+CRdTTvPlyDwLOg7FMDOPuFUO+nT1Q0KYqGOpfcXkQIpu12+suzlvm u6fzg2c07DAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404232" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:42 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:38 +0800 Message-Id: <20200903082839.30213-15-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 14/15] tests/TestSuite_unit_tests_ring:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_ring.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_ring.py b/tests/TestSuite_unit_tests_ring.py index 896912b..8c7e062 100644 --- a/tests/TestSuite_unit_tests_ring.py +++ b/tests/TestSuite_unit_tests_ring.py @@ -71,7 +71,8 @@ class TestUnitTestsRing(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("ring_autotest", "RTE>>", 36000) self.verify("Test OK" in out, "Test failed") @@ -81,7 +82,8 @@ class TestUnitTestsRing(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target ,eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("ring_perf_autotest", "RTE>>", 210) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") From patchwork Thu Sep 3 08:28:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 76371 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 ED494A04D9; Thu, 3 Sep 2020 10:30:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E58591C0B8; Thu, 3 Sep 2020 10:30:46 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 279ACE07 for ; Thu, 3 Sep 2020 10:30:45 +0200 (CEST) IronPort-SDR: /A76t3jGkjc+8y203T/zjoyOwTKigLKJa9NCsN/JSsbrJ85Nj5A+EgwyggS69Ko0mQxnpEu5eZ BkNecut3ZBsA== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753312" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753312" 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; 03 Sep 2020 01:30:44 -0700 IronPort-SDR: wkfbYHPMehbNyYXoWaEjf/he+pR5Bf2GJpL8LCDbjlYLiwvxhxdtDI0cxBjXSlnpj80fCqdw5y qYEwjKuvfhvw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404239" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:43 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:39 +0800 Message-Id: <20200903082839.30213-16-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 15/15] tests/TestSuite_unit_tests_timer:update to 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" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_timer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_timer.py b/tests/TestSuite_unit_tests_timer.py index 525220c..fef8408 100644 --- a/tests/TestSuite_unit_tests_timer.py +++ b/tests/TestSuite_unit_tests_timer.py @@ -83,7 +83,8 @@ class TestUnitTestsTimer(TestCase): """ eal_params = self.dut.create_eal_parameters(cores=self.cores) timeout = self.get_nic_timeout() - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", timeout) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", timeout) out = self.dut.send_expect("timer_autotest", "RTE>>", self.this_timeout) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -93,7 +94,8 @@ class TestUnitTestsTimer(TestCase): Run timer autotest. """ eal_params = self.dut.create_eal_parameters(cores=self.cores) - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) + app_name = self.dut.apps_name['test'] + self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60) out = self.dut.send_expect("timer_perf_autotest", "RTE>>", self.this_timeout) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed")