From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0086.outbound.protection.outlook.com [104.47.1.86]) by dpdk.org (Postfix) with ESMTP id 9266C1B747 for ; Wed, 31 Jan 2018 09:59:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0Nm+evNjeoLvLzp0swJUf1FPtrz9vjbCuJS1uDjiKgk=; b=RMZ+HrAIvTCzBUog2I4O6BDfFxDKPvyhz52GfrsQMDDN6axWy/yEgf9fVLds4edxp0TYjAXPP+hlNLDAY247N3/SlYjUaWex26neOzOEpyRT6aPwWa53FIOTFo/K+iwXo3QOUgkGQ1eTUUAAV27jPhxWkKLpngGUBO+22XART/c= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (192.88.169.1) by VI1PR0401MB2462.eurprd04.prod.outlook.com (2603:10a6:800:55::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Wed, 31 Jan 2018 08:59:30 +0000 From: Shreyansh Jain To: thomas@monjalon.net Cc: dev@dpdk.org, hemant.agrawal@nxp.com, fiona.trahe@intel.com, rosen.xu@intel.com, Shreyansh Jain Date: Wed, 31 Jan 2018 14:43:17 +0530 Message-Id: <20180131091318.7894-10-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180131091318.7894-1-shreyansh.jain@nxp.com> References: <20180130145710.24757-1-shreyansh.jain@nxp.com> <20180131091318.7894-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.169.1] X-ClientProxiedBy: HK2PR02CA0168.apcprd02.prod.outlook.com (2603:1096:201:1f::28) To VI1PR0401MB2462.eurprd04.prod.outlook.com (2603:10a6:800:55::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8b299ce7-9a3e-4200-b494-08d56888f2e2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0401MB2462; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2462; 3:Wq6joFN1zkB12/0y0d/zdH8wF7eShwciuSjaStycWs/cychu1qoe/9AkBfucSq9WFXIXInKhrm2ORnhN0gF2FvRZtS9v354BJZgJr99CfuCbkseowFwh3aNnZM8cXkNgwSMntiy3HvitLdlK8ismQ/ZNH7tJ5UI+yG3q4iFxzxuZwvLpCT05bubjB7qrpho8yjznlRaBZIhuLcm9wgnkg+WIBF+XmNMzLbMlbgNmXa2xlTfWWpngjBtK2dWWz0nz; 25:kn2VWPxpF66a/RaLR/739LX5jsWKXLF3npdx26JgnsMIzEyN56s6QS+Z3VlEaQwnfB7hx1w02GF6b5xfNMuCXE0GeAbOnTFpIKfwiCf/ggokZy3wfD+x7VvAuiMFUYFUK+CB4a16sCwKqnqXjwXaPtDyiSngRvWyLlhdsmTl7jlZruKm70Ck3VnXE0RZVK5pdWFljpe1Hzr9jmb4gh7bQ3oqY8FpTZvD1Bi9VndWTY5NV235WMnaJe1X1jplr5lYww3JP8T9y5hYM2EWCEtUzJ44yUp/GEJQP2x0lMwmZv8HAS3dmjkDqy4yzwOnruk8BrZwATFoxIGLgteuEoGnKw==; 31:PDWMrNrjL3FMQxtou8rl5o2W9FvNJ8nvh2VSKRSaCJR6M3IZ5OxtCTX68rcu2qfOYyFpySwvx1yL4iUd1M15nXe+847iQRSa2izLqn+l77oZYStiw3tEhEr1UmtHk9jvw6KIjS/a2MRZA2n98wNWPooqPW+9lC2X6D9Qgb7LLRUeWQqWX6zdjaD/w3qSPk+ZlgMy8VjPK/tIUh2I4wNRdFKSApDRSKut/gGM2o9R5ek= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2462: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2462; 20:htWCwwPX4YNpniQrZpSqbocPhV1AI0ES4FzS2zBkoPClbnXvZDsJ0AbmLdhvYCKxWf4THo2+aAk+VSfzGLEv18Ak5oR1Im5yTdN53V+v89wKcOTiz8E2Bk/EQFt3B1CyyTRhlMYokBGzy0R8/Eks7G0AJrna0KvKxIBJD0nQJiJpFMGC63jrf9LHA+3Y5M5UXwxDQhpX0OedlE2cyZDWrwxITVaoi88dLjygvV1mo1+M5VhN4/di/9YRm2X4AjMJCoJTqEGLqmnzeaSIAI6Qum9uyBwRP7lmPdGJFTi+xnODQfSWTHF3RheEIyA0bbKtegvfkSHs67YdugP7GtRy5b9pmtj4Wu7noNyuYmUTvnfWnfTSguhUbaBNZ6rGGpoxRXCIBDbcPL1+Hew/+tRHGJZNqSPEjDP8K7sSe+3gyg5xcRACoMEp8IJmR8tF2jK2aUGIvpc7qwbOQAXVjakaaJZJgGfZYsKiHxRJlTkYwpQLK6QCwhHyDlj1jjv29gLy; 4:R3pov0IfK2VRyKDIwqP++ZNmtQ1RsnYCneq80+tY9aHQZB37RHvswi7qetB1rogBdU1pJ6xVVBD8qwUU6n20LRXUfxhhy6krfac7cTd+NU6uYYm/jndkD391NaD8kc1MidL87/B4Wkhy7J1RaRjLvB44/ezyzC4pcPzWpSrAna0Os0EyNS+/fyvzrr3cp9+qPRyAQWQNwfkYrVXo/U4ineudonNlb3hVA+BVaoOqA47snO6IAo9wp5RgrXQOKowIOytt2/96BQpEMsAloR91ypNNBmygxWM7b9DhavmF0WVxaCQS/+uWJyCAPD+gfy2L X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3002001)(3231101)(2400082)(944501161)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:VI1PR0401MB2462; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2462; X-Forefront-PRVS: 056929CBB8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(376002)(366004)(346002)(39860400002)(199004)(189003)(6486002)(6512007)(50226002)(8676002)(48376002)(4326008)(81156014)(316002)(8936002)(66066001)(6666003)(2950100002)(81166006)(6916009)(53936002)(16526019)(5660300001)(47776003)(186003)(26005)(106356001)(2361001)(97736004)(16586007)(305945005)(478600001)(51416003)(386003)(36756003)(86362001)(105586002)(68736007)(2351001)(76176011)(1076002)(52116002)(2906002)(6506007)(25786009)(3846002)(6116002)(50466002)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2462; H:Tophie.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2462; 23:mbY+1QQ2aCxzmTxKCEoYCTFc43LeBBo5D+Wlc/y?= =?us-ascii?Q?fxF7B+sjM8BWkue7NQURj1/J4sZ2UeDtikKa5SaibBamg9YHaXIgluio+EtK?= =?us-ascii?Q?zKVTbPRWvZY8twv6F8OO9cd0+RFtJ6BkqMtP2YRb9S361sOw7dgewCdRKfdY?= =?us-ascii?Q?r17YLVDaRp/9vZHZa3RC+NZsej0Bnzjn7Ah6SlRnGHsKD3oPhG+FJQpQn0a7?= =?us-ascii?Q?ypQwbqqRkbcFpRZk5Wl1oWXKbYBoXJbIhq9RCOAWJdp2TdR38pB7VyT9g8wc?= =?us-ascii?Q?JkrUg7YdZJdsfvjtInEOBdGJhFlmf97ftPcnEATqDhVKW896gGINs8RqZ0Q5?= =?us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401MB2462; 6:MiCwYa14vC0sp3SaUiwbWhF1NGaqHa0/o+gWnEhSPqLbA7nJCfLGF0O1wAEx5Pl2hlXigoRRP8o/kRvABUTRN5mb9S9Og9+HWlza06v51iYhmSPcV510cYa16o5h9UwDot8jyitw3dzYGe739/EF0HCJL4GuoveoxqHJCm/yvfuEgqZl0yuor9hKyrxZigeDFnGqQGfTu2ai+coDpdjYWxmSA16dcd2GXvjM8J5OqWuAQrZDJJhlAAI3H443aqPBRUvG1cT8j8ktdcO1UElL4Hw9mviz766MS5+shtahH5jnmEp3LqR5nXpaMoLKl3+UmlyWH2aGMLILiD2MQ5IiSWvAq5IfmjHiiM99KvwM4jY=; 5:5Wckt7f6UGQYjvFYkviJzfZzVYbt3YEm4c7mX5+2dZc1FQ79KaqENlo6i0gwP+ZCfIE612MjVoPPEs9zh9nnYw1d6VGxp1Dv75RCD0/OAzawSZiDx9R0I9ss75Ol3PquPC4VOJtwJhamHx0vv4ARQ5E+qfe+mvXBzLQnf4MjUQo=; 24:bH14rAKRz8j/gRojBXtkC2FA/G1eZYh4st61sRnzFHd/BVUw5HT2DJ/XGUZr2kken3NlHxX3N7wyf9D1K5mOPJS5ya15I1beeEoOvAeKnws=; 7:Yk8t4e9Gx5t4A6MI3FDtZLk2FSYq+Ob/OOMT8/E799G/wDEM6NNopufxYRVXE7gTBVF28INK9ekcXsrTUUFcizn5KUF8OySnG3xc6afz8kwMhOyIHCUm3GIf+Me8cfMGCLEZqYSJdqzPJDyIug7dmEvmxjc8QG1g+s7UldKQ8xOZvg+QxJLYIIHPUBaKURR5i3R26hrNy/Q6GFHuzyC4uBESIoMS0aHs6LoGJG2isFUIu3bkmyDn6wIu2klFZqCx SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2018 08:59:30.6796 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8b299ce7-9a3e-4200-b494-08d56888f2e2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2462 Subject: [dpdk-dev] [PATCH v4 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: Wed, 31 Jan 2018 08:59:36 -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 --- MAINTAINERS | 1 + test/test/Makefile | 4 ++++ test/test/test_rawdev.c | 27 +++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 test/test/test_rawdev.c diff --git a/MAINTAINERS b/MAINTAINERS index 320bcf9a4..42ddfbd8c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -320,6 +320,7 @@ M: Shreyansh Jain M: Hemant Agrawal F: lib/librte_rawdev/* F: drivers/rawdev/skeleton/* +F: test/test/test_rawdev.c Bus Drivers 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