Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/76513/?format=api
http://patches.dpdk.org/api/patches/76513/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/1599207525-22123-17-git-send-email-xix.zhang@intel.com/", "project": { "id": 3, "url": "http://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<1599207525-22123-17-git-send-email-xix.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/1599207525-22123-17-git-send-email-xix.zhang@intel.com", "date": "2020-09-04T08:18:24", "name": "[17/38] tests/TestSuite_multiple_pthread.py:support meson build", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "b8bd0f624a438763dfcaebe4d6b832fa2838519b", "submitter": { "id": 1728, "url": "http://patches.dpdk.org/api/people/1728/?format=api", "name": "Zhang, XiX", "email": "xix.zhang@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/1599207525-22123-17-git-send-email-xix.zhang@intel.com/mbox/", "series": [ { "id": 11948, "url": "http://patches.dpdk.org/api/series/11948/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=11948", "date": "2020-09-04T08:14:07", "name": "Modify suite to support meson & makefile", "version": 1, "mbox": "http://patches.dpdk.org/series/11948/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/76513/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/76513/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 470C8A04C5;\n\tFri, 4 Sep 2020 10:17:30 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 40AE51C0CA;\n\tFri, 4 Sep 2020 10:17:30 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id E1FBADE0\n for <dts@dpdk.org>; Fri, 4 Sep 2020 10:17:27 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 04 Sep 2020 01:17:26 -0700", "from unknown (HELO localhost.localdomain.sh.intel.com)\n ([10.240.182.150])\n by orsmga002.jf.intel.com with ESMTP; 04 Sep 2020 01:17:25 -0700" ], "IronPort-SDR": [ "\n hjVUw8Uo5RjchHnCwGDO+sC/PKn5wT3vUIYHnB52YSj0kNpcHetOCDeqEUj+ARH+zhv/j/GY0u\n af+1ROn5+Dtw==", "\n rNACanqpS3AaxpGfRUYO5MsO81ZyZSOKDGIM4qM0bE3az/MtORuBisLv6FYUygHHgYT0l4H3YG\n 2cavdqgy5TdQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9733\"; a=\"175763290\"", "E=Sophos;i=\"5.76,389,1592895600\"; d=\"scan'208\";a=\"175763290\"", "E=Sophos;i=\"5.76,389,1592895600\"; d=\"scan'208\";a=\"315782669\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "xizhan4x <xix.zhang@intel.com>", "To": "dts@dpdk.org", "Cc": "xizhan4x <xix.zhang@intel.com>", "Date": "Fri, 4 Sep 2020 16:18:24 +0800", "Message-Id": "<1599207525-22123-17-git-send-email-xix.zhang@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1599207525-22123-1-git-send-email-xix.zhang@intel.com>", "References": "<1599207525-22123-1-git-send-email-xix.zhang@intel.com>", "Subject": "[dts] [dts 17/38] tests/TestSuite_multiple_pthread.py:support meson\n\tbuild", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org", "Sender": "\"dts\" <dts-bounces@dpdk.org>" }, "content": "Signed-off-by: xizhan4x <xix.zhang@intel.com>\n---\n tests/TestSuite_multiple_pthread.py | 42 +++++++++++++++++++------------------\n 1 file changed, 22 insertions(+), 20 deletions(-)", "diff": "diff --git a/tests/TestSuite_multiple_pthread.py b/tests/TestSuite_multiple_pthread.py\nindex 83ab7bd..d46ac70 100644\n--- a/tests/TestSuite_multiple_pthread.py\n+++ b/tests/TestSuite_multiple_pthread.py\n@@ -56,6 +56,7 @@ class TestMultiplePthread(TestCase):\n self.cores = self.dut.get_core_list(\"1S/8C/1T\", socket=self.socket)\n self.verify(self.cores is not None, \"Requested 8 cores failed\")\n self.out_view = {'header': [], 'data': []}\n+ self.path=self.dut.apps_name[\"test-pmd\"].rstrip()\n \n def set_up(self):\n \"\"\"\n@@ -80,7 +81,8 @@ class TestMultiplePthread(TestCase):\n Get cpu and thread statistics.\n \"\"\"\n mutiple_pthread_session = self.dut.new_session()\n- out = mutiple_pthread_session.send_expect(\"ps -C testpmd -L -opid,tid,%cpu,psr,args\", \"#\", 20)\n+ testpmd_name = self.path.split(\"/\")[-1]\n+ out = mutiple_pthread_session.send_expect(f\"ps -C {testpmd_name} -L -opid,tid,%cpu,psr,args\", \"#\", 20)\n m = cmdline.replace('\"', '', 2)\n out_list = out.split(m)\n mutiple_pthread_session.send_expect(\"^C\", \"#\")\n@@ -127,9 +129,9 @@ class TestMultiplePthread(TestCase):\n # Allocate enough streams based on the number of CPUs\n if len(cpu_list) > 2:\n queue_num = len(cpu_list)\n- cmdline = './%s/app/testpmd --lcores=\"%s\" -n 4 -- -i --txq=%d --rxq=%d' % (self.target, lcores, queue_num, queue_num)\n+ cmdline = './%s --lcores=\"%s\" -n 4 -- -i --txq=%d --rxq=%d' % (self.path, lcores, queue_num, queue_num)\n else:\n- cmdline = './%s/app/testpmd --lcores=\"%s\" -n 4 -- -i' % (self.target, lcores)\n+ cmdline = './%s --lcores=\"%s\" -n 4 -- -i' % (self.path, lcores)\n # start application\n self.dut.send_expect(cmdline, \"testpmd\", 60)\n \n@@ -203,25 +205,25 @@ class TestMultiplePthread(TestCase):\n \"\"\"\n Test an random parameter from an defined table which has a couple of invalid lcore parameters.\n \"\"\"\n- cmdline_list = [\"./%s/app/testpmd --lcores='(0-,4-7)@(4,5)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(-1,4-7)@(4,5)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0,4-7-9)@(4,5)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0,abcd)@(4,5)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0,4-7)@(1-,5)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0,4-7)@(-1,5)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0,4-7)@(4,5-8-9)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0,4-7)@(abc,5)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0,4-7)@(4,xyz)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0,4-7)=(8,9)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='2,3 at 4,(0-1,,4))' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='[0-,4-7]@(4,5)' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='(0-,4-7)@[4,5]' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='3-4 at 3,2 at 5-6' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='2,,3''2--3' -n 4 -- -i\",\n- \"./%s/app/testpmd --lcores='2,,,3''2--3' -n 4 -- -i\"]\n+ cmdline_list = [\"./%s --lcores='(0-,4-7)@(4,5)' -n 4 -- -i\",\n+ \"./%s --lcores='(-1,4-7)@(4,5)' -n 4 -- -i\",\n+ \"./%s --lcores='(0,4-7-9)@(4,5)' -n 4 -- -i\",\n+ \"./%s --lcores='(0,abcd)@(4,5)' -n 4 -- -i\",\n+ \"./%s --lcores='(0,4-7)@(1-,5)' -n 4 -- -i\",\n+ \"./%s --lcores='(0,4-7)@(-1,5)' -n 4 -- -i\",\n+ \"./%s --lcores='(0,4-7)@(4,5-8-9)' -n 4 -- -i\",\n+ \"./%s --lcores='(0,4-7)@(abc,5)' -n 4 -- -i\",\n+ \"./%s --lcores='(0,4-7)@(4,xyz)' -n 4 -- -i\",\n+ \"./%s --lcores='(0,4-7)=(8,9)' -n 4 -- -i\",\n+ \"./%s --lcores='2,3 at 4,(0-1,,4))' -n 4 -- -i\",\n+ \"./%s --lcores='[0-,4-7]@(4,5)' -n 4 -- -i\",\n+ \"./%s --lcores='(0-,4-7)@[4,5]' -n 4 -- -i\",\n+ \"./%s --lcores='3-4 at 3,2 at 5-6' -n 4 -- -i\",\n+ \"./%s --lcores='2,,3''2--3' -n 4 -- -i\",\n+ \"./%s --lcores='2,,,3''2--3' -n 4 -- -i\",]\n \n cmdline = random.sample(cmdline_list, 1)\n- out = self.dut.send_expect(cmdline[0] % self.target, \"#\", 60)\n+ out = self.dut.send_expect(cmdline[0]%self.path, \"#\", 60)\n self.verify(\"invalid parameter\" in out, \"it's a valid parameter\")\n \n def tear_down(self):\n", "prefixes": [ "17/38" ] }{ "id": 76513, "url": "