From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0073.outbound.protection.outlook.com [104.47.40.73]) by dpdk.org (Postfix) with ESMTP id 2D9F71B3E7 for ; Mon, 25 Dec 2017 20:18:53 +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=8lMkhkGAUx0lW3VWF/M1CqpoKa39x2o/d5+ohOTOt9k=; b=QNSorsVxoc/KWFUs5EgknNJSgg4xbyBZOrzdsCJFsPqMF9qZVlaioOYThmDiB8n85su3M3EqEBzjqho0xQxyR+KExZ8J8GmzeuQIZT1Drr9ocGTJMir1fYSIgBRQSlNKvAID0pXcYHWIDKESzHBzPtf18LonryPf49BUD/+/eWE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Mon, 25 Dec 2017 19:18:49 +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: Tue, 26 Dec 2017 00:47:37 +0530 Message-Id: <20171225191738.17151-10-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171225191738.17151-1-pbhagavatula@caviumnetworks.com> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20171225191738.17151-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR0601CA0004.apcprd06.prod.outlook.com (10.170.128.14) To DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a83f1058-2e19-4e0f-a63e-08d54bcc5543 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:DM5PR07MB3466; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 3:OOVJTGn5Ld0XYbAiIiy5BOGXqGnCJ1aPI0x0T5OhPH7sbJpr7fDS9+pVmMIoLb4AOrQ7XDL/wGu1c5vU2PcKe9zpJl+D3PmBBg4yalDrdlJBBRDxEUft74NmBvMUxFPyG8IPQVgxM+of0QH0fEwsh6lBL++N7piNZJ7D/1PIQWH8VcBDeqeZ2JzhD183UF4YhN9cbsLmc8YBsz8iEVCC8xpWRdpYlVEN5RJDbFz7EoKQcSD5Lzvz0AuugfmwJW5G; 25:4nPL90rTiyNLdHylVBsait4fNUlRWvwpffT2LRhO0mL2ZFy0Q69Xs3Fu2+ZiGmy57ay9P7UtUcPw0Ys2G7sRVI0QwjOvCwLmOVQtDtOU5le+Zfdb/LSyeYTzLrgYBsg0BgIkxHwGNRv79BUpU3laEKszj93D+IbldZB6cEpOR9f3/rlVpAZFdON346QXHdSGB46pQfLCUMyqmX0cdM2Bnj81dE5vIvQimskOlQE/auAyGbtzAWDLUN2K/rsPHCwhZHQ/1Ixq/kp/vAHcojeYZ3U/Iahh5PnbpxILH1N8xNu71MODD2nqOgwx6ZdB+wZlZaiYKzSQ9IQGQDerjkRqHg==; 31:F0gtrgke3o60XgJ3QA8dwd5OfxtIJFxgV5hsCrNlDk5ZqsSA2ZG8JmI7EmmApF3EzQCKguRkGekDeyg+M9n7Ep0B9UVBlBT85HvUhO1Au3MbVS5oViQF3/U1K3R9uIJjK338O5/0u7lMGam5DhmgOG4gCMhLMLuDW/MfzGlnRlzklifEoOmRFWbwap4IGEP3DHOpZ/ZWGujIG0CbGtM23IzoGFYhTHe70sbnr8AEWYY= X-MS-TrafficTypeDiagnostic: DM5PR07MB3466: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 20:xNCPFSdYSnDgBcxAQqnDJR6lRy89Plok2w4hvkCn7yhrwxj5VfXvBDC5/L9rVczcEWLwagUkDB7lz2lyr6pO6mHr9J2Dd38jcwkniBOS2EJyvLA/OhaTLz8q/9Bug9sQvMVDTxLhIaRDmFAK5kZnFpjosQdt2V9f6IZRn5eOiV0aOKC0Ku9OVgdQK/mblIH7X/f4duXu3hmN4rlNTOIpwxffGPRVCCk0Rvozqpr+ot0Y1ahnfczbBZfYhyVzzPwVpaWyenk0nCau4aGl9+NLNrGswbqlNTl19cHfm9sT2W75dUggapMoNgwX9wVp4I+nFYgOURMAmfVBxVd762Ba/5U8MSYwUj///5YgqCsE/GaKnxX2VohO2mNb+JfwlnzCF5jeF65xsHRj1hTorN3bnCMJWcMS9BEqpNpBZ3dIO5E8vGUz+xOnzjFOMqT7RRegUvMgZzQtzNtSSZKFcinFktI6UVGPQJSyOwhSVIgcVfrG7tNMjFi/r3L7h5ZWMsB1C0FEzVxt31oKmWykbxq78cDlFkt5+/YMEIXyt9//99GeiybDRIBUYgwY5EIFBuKwEM7fdQ/nZW7TD1ZbdPd4hHJRt/9dGM7pm+RKNmEmj/g=; 4:sxe0HRwL/NZTeeKZbyDLsQA+XEAp0B/pLUrORelV0grJRvF/5pcPN7EIW2d4OSP1GmQc/JTKKF3SYGzqME7c/NZvYpkvadjOtvocKj6dC2xIVnF+bJmM52gV3KvmEc5NKj8rxFNsTFRwvwkzPGIql32nv93U1Rwk8CAaEdrJgIvEQbGZF+O5uHatcyqcx/n+617gF+3l2W2flGub+s7GCnFGoiCKvj8TgxddMuoA6jAoDRAbwzRUmMi2vKMQ49HCwAyE29ytA12mDadN6y70wg== 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)(3231023)(944501075)(10201501046)(3002001)(93006095)(6041268)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DM5PR07MB3466; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR07MB3466; X-Forefront-PRVS: 0532BF6DC2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(396003)(376002)(39380400002)(346002)(39850400004)(199004)(189003)(36756003)(68736007)(5009440100003)(7736002)(66066001)(81166006)(478600001)(81156014)(305945005)(47776003)(16526018)(8676002)(6506007)(386003)(316002)(97736004)(16586007)(5660300001)(52116002)(106356001)(25786009)(53936002)(48376002)(2906002)(105586002)(76176011)(51416003)(1076002)(3846002)(107886003)(6486002)(4326008)(6666003)(50226002)(72206003)(8936002)(6512007)(6116002)(42882006)(2950100002)(50466002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3466; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; DM5PR07MB3466; 23:eLGcqTzuK6P7t3bq2KssjtLjFW/vDmLOBj+nnzcf1?= =?us-ascii?Q?HvRoeLYWhC2WVMWDEE4v7Vejn2TCks062saLQQbSkqktr4zsMuZBJk6CioOc?= =?us-ascii?Q?BG6Jr+5Ii3nxrEVKRYczAZCij5t7QcptKhywGlSKjQW7fNsfyzm6zFXCQKkK?= =?us-ascii?Q?V+BuelguUQzeUM7VQGB9u9nsElIYByx31gv9sPdUHhD6ttOo0xpJK5fqTmpT?= =?us-ascii?Q?kDpxZGn3+aPAtUkmyQY7IDdBES73ZxXw3L0B8qkrDhWcQ4f0PrGZC+i/rses?= =?us-ascii?Q?QB+c9iHEH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rossTenant-OriginalArrivalTime: 25 Dec 2017 19:18:49.6357 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a83f1058-2e19-4e0f-a63e-08d54bcc5543 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3466 Subject: [dpdk-dev] [PATCH v3 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, 25 Dec 2017 19:18:53 -0000 Signed-off-by: Pavan Nikhilesh --- 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.14.1