From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0041.outbound.protection.outlook.com [104.47.40.41]) by dpdk.org (Postfix) with ESMTP id E691E1B20F for ; Mon, 8 Jan 2018 14:48:46 +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=ZPe1Kk9MbM3bSFieALaHAGEqLYVKwuEoZblwC1UTqnBewkmBASMOX9q3lewDBx2xLe1K1QbibbXBFHZNYg7B0I9xmbhSuTLaEjlPnxY806RfsK2mBsQTtB2ECUr7pQOYN6OI20o/u69Q/he02BrHCHYFs97Tk6UqgWCcVHX0zJo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by MWHPR07MB3470.namprd07.prod.outlook.com (10.164.192.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Mon, 8 Jan 2018 13:48:42 +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: Mon, 8 Jan 2018 19:17:41 +0530 Message-Id: <20180108134742.30857-10-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180108134742.30857-1-pbhagavatula@caviumnetworks.com> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20180108134742.30857-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR06CA0105.apcprd06.prod.outlook.com (10.170.138.31) To MWHPR07MB3470.namprd07.prod.outlook.com (10.164.192.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: feb6a3a4-b184-4b76-7eb7-08d5569e8932 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:MWHPR07MB3470; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 3:4HM2qnR7SoFDm9FzATiCR54wPcz2WKNY9mR2ItNhKXfczjwMzw9Q8qzckxVa8lwdoGI9XR66QnfBkuInU+paCogK8Cx6n+j4akcBDcL/4euVAD9rirQKrcnf463T47OI/SUUidcbEpyCFmdt61ZVukIg/uwkUrwPZUHVv2zNZ4ZycNzO4dYIyecX9hO2rczUvzbQQjJNdh1r41QJkGYumqSzlGcxTujvIJxGTEiGAPKNMKuPmt9to5zg3pneqtFo; 25:iyqQmg0VxM+q2DVniHnl8kJKhAbyL87e78467wztJh/nVQDWeYVh+uTG/aLRmGQ+nabi+Wk60EqhGrStB5oFm2qjxCiu0DxIVt+HtxyckPbLblqrzfEkZoeg2lV73HtfcogJdbKVoSqKrZ0JQU+230XkOuWNDt5+hUNdZwiRWGjm7eqUsW7TPteRH9oRlxxVETtXpqAC6sFGso9i83Q++RDlzdr14o94G/Z4worCpsUYrF8EBwB8Z3l9ZtGRPZHzQ0IJMdxMDWrgjbeZl2IH267lDOZhgtAWza+IrBCSLNLlQfiZJEoWEEjKd1pMJ9Y5ffgETzl2KN5pqE44P1W7AA==; 31:KV//wqID9sT1lB6xJiAgwVcHgveV3PXEAB1nGw5AtxYAga2bLd8QY6KfUDf7N5TNymnB1TDhvEaj+vxDRZxzmxRZj8Fp8bFEkeqmflGjVqv8K+1SBn97q/GAY8EvhhS+R5nzjuOUp0KvGDSQF94pYKQFU6s2DEqDgpPLsv1uHmQVBJdYTCiECOtm4VrWIMTwMkE1Xj/s9sChzT217yT5d5kAF+ufE/hrh8xpoJQEyX8= X-MS-TrafficTypeDiagnostic: MWHPR07MB3470: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 20:egWgqSKuiAPfHNcc2U2syO4SXWnRYAXe6xaYExPaXe1a00RHGRmBU49UGlIcPQnHOqfhyE9/v4DIZkT6DD1mNi/oZs3Vzyco+Ai4pbBrAIPA069nSc5jssH3F7D9eemJCAP7aq+wyD+NjNVi5RvfXYWmQ7ehyuXqYUDJ2Sgul5oWOhAjl8U1v/1lT2yB0ru/+DjCDNQYdBFHG3xOSAhTgnR4A9val/dSUGnFIecNRqUuT5AoX2UjapCwQaFn5c6XdG1G9Xr4B7t6JhLhMqZSfO0GexQU0U25V9svjo6q8fvyKcXQRPMZUxXnwu1dALUfkALz6r9XxMpALTbl9KXoLf5ehwZZ8nxcGORhZ334loXnUvBZp2bUO5q3ThJPtgVUCnce+mY/j/Ecs/PYUBiINK9MU+rHWFSON6yOiROmimYBXsmgVCrzMbgRNz7mHpIaTZ1evUIXXvqYwZJYQnQZ33Zud8DTDNGt3AaYfUwEFS8rmMLV3ybTzhH9fLomWV/sX2ISJwRP3EFX/dkkVhICQiQCj5bOes+GDcL2pVPqon517rnhWeFljhfAS5WU2nx7aZypNTXWOCU7gmOFRaL+y04iZ4Max1BLSns7Zj4jbnk=; 4:D5BmRlYSCBOGx1kzgU77N50e+jjeppiiXXTSOnmZ/RFdkrErLGloZQ2IrnJsJb6tXz58RxnJB3I+hCB8jn5Bdike6TDzyBlZOdlXBlgUdhMp65egUsVfp5dU0EqhYT9fJfmAIYp2XzyqBDW4eXeUIqaAkDwCAfBgvdQjSkDCK/ez4mwiTqkaJRFvxYAl0pIP49jC7SG6eWACxAD9JkwFSZbxmadnMEfzIebr1gBU5esmly3IbDIPeJP13nxk7bc3xjeqOMaOn+i4XVsO1RT94g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(6041268)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011); SRVR:MWHPR07MB3470; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3470; X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(346002)(376002)(39850400004)(39380400002)(396003)(189003)(199004)(1076002)(2906002)(305945005)(7736002)(6486002)(76176011)(51416003)(52116002)(2950100002)(36756003)(16526018)(6116002)(42882006)(316002)(3846002)(5660300001)(5009440100003)(16586007)(53936002)(48376002)(50466002)(8676002)(8936002)(50226002)(107886003)(81166006)(72206003)(68736007)(478600001)(105586002)(6506007)(106356001)(97736004)(386003)(47776003)(25786009)(66066001)(81156014)(6512007)(4326008)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3470; H:localhost.localdomain; 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; MWHPR07MB3470; 23:GQ6S0AtH23ag3OqH0zbkZR7cIgxEDXGk1bTSW5KdA?= =?us-ascii?Q?g3kjkSUvAsGMNGCgGzHHjMpHsrmsMwD53Aei1yZ9rBbjkf+kxXmoSLRO+Cw+?= =?us-ascii?Q?qLKC+cFbM/EtOXAYx3BJeUBzp+icQmcTy7JyT4gdSOGadOma5VlWG2Al3P9U?= =?us-ascii?Q?GwFyh/PD1a6MG2u4kfsM8l/zKcf6iZq5rf6eE47yuIAvRxzNpvG2p2upO7sB?= =?us-ascii?Q?zMIGEFvFeQ11HGnhf+qroXG0dLu9Vt+OB7qYc1MVy1NjC8zHX+bdHRRBOu9X?= =?us-ascii?Q?9wYOC0w8s7xr+myRlgovLNIU9LxSysp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ics: 1; MWHPR07MB3470; 6:FMkQEObukUoNgzBJ61orN3Y61coajMn0WSCy8d0cImosG6jjeji1NlflNcEvOckmHY9/Czm96OhC0H67XWa3AVqnPQ9HMkO5n4okLuStCg92mE+szmXfR9LCrVzh6nLE0GattOlmIQbkQA3TZY58Q0r5QE6OunpvIhxbsEw4cFNiE9LuZIXYusSjPfiMVDFB/NH2AnPl0KmE7PLImQUH3Kuc2jHRIxyNz7s7pi8E6TBeXwXLvcAU9GO5b7Et6GK/tbcdmbmXJyO5pz4U6il+o9AQ3c6mrkTYsiiYCjRW5gZTEnttLd/ZT2wO9cpPfeNSwDFaGYfz3I2B2xEJmnx4OQuzqDzMGT89ExezGkaXyMA=; 5:3hxPErSk298EYCiZwU62kLVl4CZrNsisAjNHR/ZFSy2z0hOyUGCPAtmwOvXkiJW+SRBu28yzj2omyMQLlxPC7X6Xbxo+TEsirwUFNR9a4hs1Z3hxh8io33wDXia+U56hZoU1DjbWmCdRyMb/CsoKCN/gyQ5LGsgTxzRJ2LfgKkc=; 24:kNLLmJ5JVVEFSUUSQwcXhoWJhYmVOkRj7phQtW1Uae/fFkmDx5MfXe0IXOCaJqVKEwNqvFocoowrznJrqgJN7TaKKhMw987AqBp7MoHa23s=; 7:L9wXNK7nWizdDcnvB2aX7aqCdGUwM68N57CNURVVaW4U7ktZ+7Qh3sGe8DcCvbcyuwfNUjcrkfumwECZooU5vTA1L73Im5P+TFYaPkYVehptzMgE96Dz4uU7P5sT0EzKO9Kc6mDEdGEzw7GbJfwpScOKccwsNzFRw0hyvxeILudKPpOxydjl2HGmwkkGpF/D7+Y+DCJDnLAm9fa1UEVojoNBjozf+L9HhyKkvYw/a/KNflpl5MDtVg53i+0lht/J SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 13:48:42.9558 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: feb6a3a4-b184-4b76-7eb7-08d5569e8932 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3470 Subject: [dpdk-dev] [PATCH v4 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: Mon, 08 Jan 2018 13:48:47 -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