From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0080.outbound.protection.outlook.com [104.47.32.80]) by dpdk.org (Postfix) with ESMTP id 51E5E1B00F for ; Thu, 11 Jan 2018 11:24:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=p8o3p9j5LJ7VlaojM/CzTcN51d51FxydNzlr1EgVylI=; b=RxziRWrYJrkgOZRDmEuRX2tcLR8EiR4T/0kjWueqWpFDRg+WqKZNH4r/+MkFLw17yd2HT65NypW8KbCFo3QgmU1+9me3JuRozkKsUopJI1sK72c9Gk1coz1IU6+j9DWTcdSItBk2x9QavzJyoNRntni47Ad2t0wxgA8DIJYjyzo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Thu, 11 Jan 2018 10:24:07 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, gage.eads@intel.com, liang.j.ma@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Thu, 11 Jan 2018 15:51:55 +0530 Message-Id: <20180111102156.12726-10-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180111102156.12726-1-pbhagavatula@caviumnetworks.com> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20180111102156.12726-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR2001CA0023.namprd20.prod.outlook.com (10.172.58.161) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 75317b80-bc7e-4ac1-0538-08d558dd744b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:oL0CS1kTj6jcxhHEUEDxxbDjzli4Z+zE9/aqMTKCuHL8QuYUfbO/11+f/qRTgo3/lrfwEb15yPJpLYSLJxBCKW4ez2ffGDu6OB5EmvN2L03shxTKci5+yS5ZNCcYhqWlw4cMQ0EbJCDiIkis/YOMI3Yflvh2Vyh6bmuYRjbCklvnc83eare9qZ7IuqGmUTUyEiHSCSlde6wJ7Y1i1BKZPnxsVTnI8NBeSad2pEPRIGfon1avmTJMV3WFQrJPWOLu; 25:gcZu70753RtqNDsqu+tH06Dv4uoekT45wskjUtl1HdEsYMrkNQ0OV8RNfgCTJZBr/z9n5r1V2n0xhV9XZWYF8nNmemmaYOjCmX+PF1hNGt/WVkU888WdVXC+cAYtVNcrf6ZBHLyrp42z14OFiebZSAjlbvMLg1E7jbl2lQSG9Zc4s3dpOn7iqslu2t6Ji//2DBSCqdM6I1JH6okGb6QGem38Lzlydib0gi4DjgnuHh5ecky5g4mhJ7pC0VXoRvlVHFe6VHHBMnKD7dFinMHHZysMP/rkoZNR4Z2vRujDrzmR1ycn6n3lJNG1+SpXoxm0fLzaxWgDNrSla/YsJZI8vQ==; 31:VB8peZ7HoHndrGRdYyaUyYri/IXuLDeEBmpKc9KfQnYZ0FH7Kvqez6HDFIhkswW9mRuXr+TCbZReTF8BESK8uj5XckA0BSn4KL9aZxKCVh1rPT2OSne+r8HOHG/gglAZjaGEuFkei5xzb1db9yPo7lIA9hkyKQrwFWMLwGaGcRCT+H9ORJEmE2F1yJhOna2NZQgMhRVGuIovjng0HbKZb6sCRqXfZNjbaUPRXUQXg4U= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:mJRARLQM0mLP0PNXdXDZt/11LXHx7SsrPRl4TqiVl9bmuPDkdn+fztGDZidPOUSvmPv/HVZRXNa/V2CTm3eKsUwiBcrtsBZm3xwETN/6GY0J/16hM81eNpVqRTniel2AWcu6L4qha6KCUazGSHOveXRt1AF5clgezQxzbQhBIKJpxMJ7IERDeR3gOqWWqPBN44ETJKPxHWJde4qAD5hKEV+ZTNYQmlxptxbgmjCfj7FAE8zyx9V6QNqmBgVXB4U25es3fLoNIpzQN4/F1l9sOd+5AGUl2LwBmBYeSWjGxRIL0jWGHxk/pbFwCusj9MsIQMDmrqE3XdWO8fhmdVUuNDBCJXKGliKoFrUMcz59z7iYN6rYflPkSXFzQTqqkqJuAJvX2aeDSIpflvDzvKCb85UGLqo3pdbmzJjbW/0KcBL3AoU69shnYWCTW/ve3N8B+QsLVUG2Zz/772EdV7HivBZPkuSXc5SsdgiX8ef1lX/fp8ZgzvFpXmlueJPW5+p4uBVRIV3A2OvsikOB+8X1Lztd+6QALlEsFVhUbZUE8o0QsNdiF1Ns8edN+GrLpR7RdYWGcdBFbcSglbOASQkUaA4BknEYy/jvBiL35wR7vG8=; 4:wjjlLGPeXoqeXO2RKnHfPSZe1yG0hOe+/Rwg9YhzWYaka8CUlfbjxa0Ut8t74b6aYqcjMyQzfgYsgJwuxtNO0yJuMffYM8fm1yG4Sw14q/fqHPq5Hp/Rq17M/jusGMs+JMf/KJEFPNJgqujNmy61LlWEoBQsQpsU4eYeniC9h6iwGkEbqmPRxNNrsNonJ5OPwX4FpEC9dA3fn6Di9655gxOfeLjz1X1PZG69IsTmSooaK9GvNj5HeT4z9CrZ2kwljhI9ouTzObY/rg1/EV81rA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(3231023)(944501075)(10201501046)(3002001)(6041268)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 0549E6FD50 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(39380400002)(366004)(376002)(396003)(189003)(199004)(6116002)(2906002)(8676002)(6506007)(47776003)(97736004)(53936002)(5009440100003)(72206003)(1076002)(16526018)(53416004)(51416003)(66066001)(50226002)(16586007)(386003)(76176011)(25786009)(6486002)(316002)(69596002)(48376002)(42882006)(106356001)(52116002)(8936002)(6666003)(7736002)(6512007)(3846002)(81166006)(2950100002)(4326008)(478600001)(107886003)(5660300001)(81156014)(68736007)(105586002)(50466002)(305945005)(36756003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:Pavan-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3464; 23:nGI5xqtMtDatUwtYS4Z1EFifMqvdMBxIq3tm+2isY?= =?us-ascii?Q?PKVLg0b81qYQvOS5aNN7sup+4cku9Uo9ruTFHYhOePYn94Pn47FAyYE541iX?= =?us-ascii?Q?tB4sPQRkTr/QbsWUaoYLpQEGPLFMud2hLnCZAJPtH8WiRvpo8EYcTS/q5C89?= =?us-ascii?Q?3iH+xDm5nVRu9+BjevYXOfPu/B1CH3UqoIzrMHTvCzbGB1rAMNVuP6xC6xzG?= =?us-ascii?Q?MdsKkI9DTpZ/Ob4YP67pxSRa462RAmrCLnW9iAL0L/obJOtJnCGWBORtqs77?= =?us-ascii?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u9G0gSgaUKy?= =?us-ascii?Q?XEraSB84udLQW9lO8Mk//ZViDB62ITOsgNC?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 6:JyU6N57V4cqpGvQXBfRyha6PXR3WC3MTNBD+djgTZymnLdCDu5FOZNZULUoSCd+uvUJLxN/7ikQIZIfn7q5uW5fuTz1uiinT9N2PGRTicYVvnJE5d1D4mKUWw2btis382rH7Q0wD1txwt7oCQ3T3r5+5LUl5eotF6kC3Am5bRdJZ+o+JJaRhRtMVX44YtAQxAao1g0h0fDrpGUeZjpEmpuG7nceDjSuT+RRoTjglI1iIQGidERx13N81wEaakf403HQmcbzIoUkzBd8KvwwGkM7m4NjluUJwR8jF+cIsJGQgd7Prb2v1V05Djee3XR+qYy35pL/15Dun60XvmLtuBOhIuLcWHPbdK6HJyAOj8Fs=; 5:ShG2b1m3bHCo00IK+P0KTIEzPtlldt6VV+TVp94pMO37W5sU+yLpK+6IWfNdHFOSouAgYYYFXfF6Vk000k72GBhaDbvdM10ySCJrgyf+clV7btUeMpZ4btNawBS6eycSezFbIFGARX10r6xUx2jzyO6/TioT/tSMYzYykbBVo5Q=; 24:6zOnbZXjU6Xxc07RMxhohapMSizPRUXmg9LqwFpIQeftFr5QbLk/RVsfCLABKenNdjLXtesfFBe9Pr3a4z5jMlmVaugk9hY70Z24wlWk1qs=; 7:mMixqP1gBezMgL+lLdZPGNC2bY+f5zC44e4/chYoGJIExr/bkbXPJTI4fl+oMom0Om1gDsxs2Exkr1PVRpJsNK4C1s56b1C0pp6g5UayVp6YuCaQxWNHjjaik9LVFG4hKF9y/zvABF2z8hTH0dGI0mUreFz+LyGpjOvqZWqHz2kQd8QZsoLgZ1LO2RUFVMm7zKTIiaxDQgDSNqUH7YW8CgybcPhd1/isceLJFaZuhK1yQUL3686Vq43zaG+F5xs1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2018 10:24:07.8008 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75317b80-bc7e-4ac1-0538-08d558dd744b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH v5 10/11] test: register eventdev selftest X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 10:24:15 -0000 Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- test/test/test_eventdev.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/test/test_eventdev.c b/test/test/test_eventdev.c index f8ee1bef6..7465251dc 100644 --- a/test/test/test_eventdev.c +++ b/test/test/test_eventdev.c @@ -1018,4 +1018,26 @@ test_eventdev_common(void) return unit_test_suite_runner(&eventdev_common_testsuite); } +static int +test_eventdev_selftest_impl(const char *pmd, const char *opts) +{ + rte_vdev_init(pmd, opts); + return rte_event_dev_selftest(rte_event_dev_get_dev_id(pmd)); +} + +static int +test_eventdev_selftest_sw(void) +{ + return test_eventdev_selftest_impl("event_sw", ""); +} + +static int +test_eventdev_selftest_octeontx(void) +{ + return test_eventdev_selftest_impl("event_octeontx", ""); +} + REGISTER_TEST_COMMAND(eventdev_common_autotest, test_eventdev_common); +REGISTER_TEST_COMMAND(eventdev_selftest_sw, test_eventdev_selftest_sw); +REGISTER_TEST_COMMAND(eventdev_selftest_octeontx, + test_eventdev_selftest_octeontx); -- 2.15.1