From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0051.outbound.protection.outlook.com [104.47.40.51]) by dpdk.org (Postfix) with ESMTP id D0B081B3FD for ; Tue, 30 Jan 2018 16:24:49 +0100 (CET) Received: from CY1PR03CA0020.namprd03.prod.outlook.com (2603:10b6:600::30) by BN1PR0301MB0594.namprd03.prod.outlook.com (2a01:111:e400:58::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Tue, 30 Jan 2018 15:24:48 +0000 Received: from BY2FFO11FD013.protection.gbl (2a01:111:f400:7c0c::129) by CY1PR03CA0020.outlook.office365.com (2603:10b6:600::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.464.11 via Frontend Transport; Tue, 30 Jan 2018 15:24:48 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD013.mail.protection.outlook.com (10.1.14.75) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.444.13 via Frontend Transport; Tue, 30 Jan 2018 15:24:46 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0UEh7sm023996; Tue, 30 Jan 2018 07:43:38 -0700 From: Shreyansh Jain To: CC: , , , , Shreyansh Jain Date: Tue, 30 Jan 2018 20:27:08 +0530 Message-ID: <20180130145710.24757-10-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180130145710.24757-1-shreyansh.jain@nxp.com> References: <20180123135910.10755-1-shreyansh.jain@nxp.com> <20180130145710.24757-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131617994880295573; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39380400002)(376002)(346002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(6666003)(2950100002)(86362001)(47776003)(104016004)(85426001)(5660300001)(6862004)(54906003)(36756003)(81156014)(81166006)(8936002)(16586007)(498600001)(8676002)(97736004)(105606002)(316002)(50226002)(51416003)(76176011)(68736007)(53936002)(2906002)(48376002)(356003)(4326008)(1076002)(2351001)(106466001)(305945005)(50466002)(336011)(26005)(77096007); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0594; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD013; 1:GAs5cZymi8DnH3APD9j6O+Y3O1OzZ8FXoDXQzdgb35HejNPJk06rI4IAD4IDZCtqNu8m4ddOWnG2qrGYaz0w3zESwJDQvZEmFgtZjtuf3nSauzKSBNCtxLnHs8gIRnCB MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8ce28d5d-19ee-4fe8-362c-08d567f59945 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BN1PR0301MB0594; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0594; 3:hUkYmdtv42buqfS02CXEu5Wc02ON9vd+UrAti9ywWYWfpJbmPAjuj+ftBBAF9VqTvM9LAFDyLPMuvsyM4HOg0NCaxhLp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IOdylBU09pGti3O17IYYAPCGQxuIy+Xs3dtm1obq07Yg2Pgg5+e8M/HP5jD+lIL+a3MOecDAsuqzgQueYAXzvzlIKdIoCB8EKxxRkkUL1Qx8GEGRiSPhuUw4D3WlHHG6d/BNnpGMh34WAuhRcF95A7852RpMusQP0V/+GiordQn5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3231101)(944501161)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123563025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123561025)(20161123556025)(20161123565025)(201708071742011); SRVR:BN1PR0301MB0594; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0594; X-Forefront-PRVS: 0568F32D91 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0594; 23:OKBX0ipukizpbqDDFfz8JrfKOe/vAo/0c1ha99Q?= =?us-ascii?Q?lB7VF+otKFVBewYfsLp1Ys5lrAne8q8w2Ot76Ray/ZoF1dV9pdtO5nIzKVMD?= =?us-ascii?Q?FMzQ9vd5dKwgIDAfmfmsTWrDnn+M2RlLGtaCcxmlf4zKrkUmY9QOmVUEl66v?= =?us-ascii?Q?lN4CJPdVjNOuWmxH1+Q4aMoCVULWQ+WBxGoUAU1mwz4wtuI6Ieq0DnI1ptlz?= =?us-ascii?Q?eZqgh0diEI7l8kHTZgfC2Yja2KSJ/1K5jroME7c5Dz3XbAV6nytCQgoIKy/B?= =?us-ascii?Q?qrbhFuiDn6VHM5Rl1F/m2x6HZEPFJdGpfeGQjO0sq2lSbCipwIX+f2oGoomv?= =?us-ascii?Q?5EIzmMxqGv+OUyPjdUIzLWM+f4HK80SpPst8AYutboQxXFO6d+yt0gX9R+We?= =?us-ascii?Q?c78X+cRRaHYGppa89Puew/OJfQ9ox1u1mo0bzgEYSRWGKeefm/PQzEknn6RD?= =?us-ascii?Q?YtVPg8PG7fK94bZR8QrwsWtqRtz0P9jAny8wB7CQvMMSepk91q2E4sxjJswO?= =?us-ascii?Q?DEZZP1enpMV/W/LgKr62iuJr8A8/bHhzqDPONQKOu5t2BVwcm3e6CI6Jytrv?= =?us-ascii?Q?HPUexM8UfI/FyHQIV/jCCUOLimk/jtuDsdUUSpwN34h/K2PNnYmD9rask4kj?= =?us-ascii?Q?U3oyt0jQPfeQBqq9iaySk0XMIpTeUQEukWAkLujRJgEnoCOohuT8jEN315CP?= =?us-ascii?Q?jHon6gOWSosPId6BZUKcaXAKG7VkCk0s4Q88QR7IbEbTYGC1Ae9mi1gK8Rw/?= =?us-ascii?Q?hO1QrYpRCXdOdeANLTHjhq7NYEv0OXDY3B5xjPXp4/KN14gCGVLB17eoqrf1?= =?us-ascii?Q?kbAAhWPfbVsPOJceCCMhB4iJAvENPI6gDSPlpoerFdWZuDp1YoTcAoqwlxJX?= =?us-ascii?Q?g0PTLBUnJG17dk9n/kdBW1BnCwHkHhayhYrXBsLQp1YpkM1FM7HAXJ+yVrja?= =?us-ascii?Q?7xlHcg68okC7OBOZrVsriHwXaNe87sYcG8dfHd7q2+4viR/yctcHm+FUwsyt?= =?us-ascii?Q?N02v09Ii2/khuF3FxXECXI6swqy6i7zk0DZh6yjkFLwvgGzaKtLemg9/F4z4?= =?us-ascii?Q?1X+rcHpb/D1gfyhHOhS+PzJsG0EiKnQVUwKKyMIEMMqe7toGfkA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0594; 6:2nN3E78CjN7eEv1SXfa13TNDDYMBxsN66vtODCiJTxzX/yCAPHFsW+Qzc51V7kto7aO31yXhWlVN4utodUu1ckU0odHBC4FLDkKpORxif/oKWBUcWCj/ylDMycFkVFzN/vAjGp4z3UBD+fVy9DJ2yiUDRl/9mfxO9/caJJkZvLrya8EW8X7vimzNWssXTxGM9ximdWgsZFV8xLnx+qQPAHW+H+uEQBSVdNt1CjJLLTGgsyVJDSM7GkOMTcTVxzpRqH9v9QFo319qqy+do2+LxRx1s7PAbWrruNeJHa5cy/mGgJi/hleccf0gADhNCfZA5rGYhNKFJjf5HNPK9OESwdmM1lwR8oGY668jr+p4+w0=; 5:sPjARedz208No+n/Q3nqhq5qRNyB78SiT6V62yCQ07aE5txf04rr1l2GAOI9B/+OAxF0j7EyxQgiRgYK0ib7yT+AioiG4MtLZw6P1vDesUk4Kmg04t15nr99EoAxcsIhm1JYMofA6U+hbDhb3DktHGW3EA0aaD3VALaMcviLKZ4=; 24:bUGzb4hSZEINqYKmg4AWNfrXXEznSwTWGxXut7fn5GfwH6DHzfVxWCRTuITrCnvMJ0SmafJqOaCZwpZuzRWUgpFDOKinA5JrZZiG5cAXQG4=; 7:iIypxcy2raOX6KykgBzJhKYHcNsotFxqfV0CGrbLQMk4PvA4wjcmI8SqMAAgV2ChQZzYWbN2Fu6kSagDr25ksJ2piEeWwAp+x2w02+Zci/exTz049nMjluNkt4ayVk/idsfkKImL7S/Z+ihKbdQDlETYJlctdkSELkPJ323SDn5kgr0zQN+rqZ/CzevV4ADbF6cPWb0JC+2I6u8rbYxKOOa6nUFyLsb4DMwdXUAn3Gpvrs3xa+iFw21GWbxK2ebD SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2018 15:24:46.7347 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ce28d5d-19ee-4fe8-362c-08d567f59945 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0594 Subject: [dpdk-dev] [PATCH v3 09/11] test: enable rawdev skeleton test 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: Tue, 30 Jan 2018 15:24:50 -0000 Skeleton rawdevice test cases are part of driver layer. This patch allows test cases to be executed using 'rawdev_autotest' command in test framework. Signed-off-by: Shreyansh Jain --- test/test/Makefile | 4 ++++ test/test/test_rawdev.c | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 test/test/test_rawdev.c diff --git a/test/test/Makefile b/test/test/Makefile index cb3884a69..a88cc38bf 100644 --- a/test/test/Makefile +++ b/test/test/Makefile @@ -187,6 +187,10 @@ SRCS-y += test_event_ring.c SRCS-y += test_event_eth_rx_adapter.c endif +ifeq ($(CONFIG_RTE_LIBRTE_RAWDEV),y) +SRCS-y += test_rawdev.c +endif + SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) += test_kvargs.c CFLAGS += -DALLOW_EXPERIMENTAL_API diff --git a/test/test/test_rawdev.c b/test/test/test_rawdev.c new file mode 100644 index 000000000..043a38a13 --- /dev/null +++ b/test/test/test_rawdev.c @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright 2017 NXP + */ +#include +#include +#include +#include +#include +#include +#include + +#include "test.h" + +static int +test_rawdev_selftest_impl(const char *pmd, const char *opts) +{ + rte_vdev_init(pmd, opts); + return rte_rawdev_selftest(rte_rawdev_get_dev_id(pmd)); +} + +static int +test_rawdev_selftest_skeleton(void) +{ + return test_rawdev_selftest_impl("rawdev_skeleton", ""); +} + +REGISTER_TEST_COMMAND(rawdev_autotest, test_rawdev_selftest_skeleton); -- 2.14.1