From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0045.outbound.protection.outlook.com [104.47.41.45]) by dpdk.org (Postfix) with ESMTP id 609CB1B1A8 for ; Tue, 23 Jan 2018 15:25:04 +0100 (CET) Received: from DM5PR03CA0059.namprd03.prod.outlook.com (10.174.189.176) by BLUPR03MB1411.namprd03.prod.outlook.com (10.163.81.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Tue, 23 Jan 2018 14:25:03 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::197) by DM5PR03CA0059.outlook.office365.com (2603:10b6:4:3b::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Tue, 23 Jan 2018 14:25:02 +0000 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 BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Tue, 23 Jan 2018 14:24:50 +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 w0NDj5Rk022838; Tue, 23 Jan 2018 06:45:35 -0700 From: Shreyansh Jain To: , CC: , , , Shreyansh Jain Date: Tue, 23 Jan 2018 19:29:09 +0530 Message-ID: <20180123135910.10755-10-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180123135910.10755-1-shreyansh.jain@nxp.com> References: <20180102125749.2379-1-shreyansh.jain@nxp.com> <20180123135910.10755-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131611911025357035; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(26005)(110136005)(336011)(54906003)(104016004)(316002)(47776003)(16586007)(305945005)(8936002)(50226002)(86362001)(51416003)(97736004)(1076002)(76176011)(106466001)(2906002)(50466002)(77096007)(356003)(105606002)(81166006)(81156014)(8676002)(53936002)(4326008)(498600001)(48376002)(36756003)(68736007)(6346003)(2950100002)(6666003)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB1411; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC013; 1:JBdsdGVjO0X6h9bPhlWmNyKQ7lbhnKv217W5QLZjZI85RYtYO06rdkQQhH1bnyYENkHwbR7gz/TimDBJRbgLJscAqM7Ib6peT2KsGW7LsWSD13QDJTZgCa9g5dvA0glo MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7dc9e7b3-d14d-49d6-a33f-08d5626d173f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BLUPR03MB1411; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1411; 3:Dnf/r4NAMMiOX2NLrKB/+qxbVc/NsYiOi9eaaKZ/VHjjT2R5BZqGyMJ+OERFzXUjEG75g0rTNAJVNMSWlAJcBT3ZaPlN4gfI+CMidNQwI60iVtS+tbF4W7w1NvkTFL0TbzADUc6p5URKkR9uc1lMl2FTwlYML+yYEC+RrGvjBmBIh1uehe2Ekb/Dvmj5ft+bVG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qsMwueSzoz3onMd5YlL6UPlJqK3zcn26rJucwbOzoMHVZ66NeMzPoU11G7B++wWLHq1IXgB/R 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)(93006095)(93001095)(3231023)(2400081)(944501161)(3002001)(6055026)(6096035)(20161123556025)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131448075)(201703151042153)(20161123559100)(20161123565025)(201708071742011); SRVR:BLUPR03MB1411; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BLUPR03MB1411; X-Forefront-PRVS: 05610E64EE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB1411; 23:Gc4dv58nQGSIsEXEsn8qZyG/0Xl1YMLZM0+rPNp8/?= =?us-ascii?Q?2mdn1iXRM7QIx3vlzv2KShnURAKqP6ZCwmruHysslaTMMPcFQbjAxWw95RoP?= =?us-ascii?Q?zNMRJp4uDAAmcsJHlxd2MfghzA5ozWxVfvZCTTI1ud5RMuLf+sSOj34PK+Ql?= =?us-ascii?Q?4OxFlMcTvXlpy3gA6zwhS2CMvXmyFF3kCG86CaFOW1sdmzTOMK2gYqW6Fvyv?= =?us-ascii?Q?jWOL2RIr7brhQj7fUKF6ujANymZswHo5xgDruekpmJ9UW7KlFReADVAfP1sI?= =?us-ascii?Q?TsI279p2FWDxYMSoUk/RzQdrblhUQfRgPToSJQFnksXI8kw7ukQn7CfIde4d?= =?us-ascii?Q?KF57Ex11XJhf8Sev7q3l+dZ2y+5g6/OO8hz5cipeSDwCNIbpdxrMEl8kd3H+?= =?us-ascii?Q?8/k6IgdqvERaRT307kwJx7P8caWTXhMO9UpQc2ZvWcXltgccabsgwTnntomg?= =?us-ascii?Q?seTys7W6xizwFL+KJJMQk7oXQqb46Ag+SRlhWLEuVJl0S5XOJdta++2PSld1?= =?us-ascii?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xAAuPEUxL8phRUhUt61tQXw=; 5:9iJNF/mh0KsAVtIXN0BXP6zEa6tKAIz5TirHcVVrLiMyx6JczOhLzDN/m66gpt//DmrsfCZ9hNTExK3xj4XrFH6VWdQusPX16e0IHTSgxiGYSjtguymESHOLyXIpkH9hrp/+o5RHgyTN2ZPoOTs6WNU32vIVFOzb+CdwFvst9CQ=; 24:F6oqLKwA5IF3ALkdFeYpeNyvh1lWf1VyeCcDaOc3NskIOQIEtxPzRVvIQ3Do1/1K+RIE8RY7owB8PCYVs+WfYaW6VjHFWUHdi7fkA3Jb3Ok=; 7:07dxGHtlEJtELscYD9RyDbjZPMFia7Z/huRLs00PBPpZRcFqUkaR9JJCFFTaN/QaUJscF8NRT3V27WPC/uop9niilE79Ol3nOEjRMefUcyX1HLmCwJYoG0EaHTlOzkEQYrz6yHhbdqp4TQ07pcK7Tm6xXgCnM7cgN0CSxt4yh/DjpM7W5ulc/ldD5jIHC+zTnxdpcU0VmE3UvshLRbnFUUBpIspVQ3E4h78mRWrqbCHzsRVFQfdcLYIJ5CzynOwb SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2018 14:24:50.1806 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7dc9e7b3-d14d-49d6-a33f-08d5626d173f 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: BLUPR03MB1411 Subject: [dpdk-dev] [PATCH v2 09/10] 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, 23 Jan 2018 14:25:04 -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 5ba5a9ac7..8dfb122bb 100644 --- a/test/test/Makefile +++ b/test/test/Makefile @@ -184,6 +184,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 += -O3 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