From patchwork Thu Feb 15 14:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 128432 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1780279ljc; Thu, 15 Feb 2018 06:01:13 -0800 (PST) X-Google-Smtp-Source: AH8x226+TwlLe5nskr2oem93PxXU2wCscJDbAYlqGevfuQNVlpCUjJEJWKF9McP6uT33I1FSSNX9 X-Received: by 10.55.13.206 with SMTP id 197mr4290325qkn.115.1518703273542; Thu, 15 Feb 2018 06:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518703273; cv=none; d=google.com; s=arc-20160816; b=ZtpkCIURNCpdh8U3bWA4e+CQEGo2bZ0iRvXbRhLA1SgxY+EnIijqjHEqd6VHCnzawp tJ0rrehSLUu7EUU6R1XxBXpzxrtgEmnGRIb5rrh/BhAmTIwB1m1fNnWyu1GP66uIjXdY lOHaPStF00Us4mPQTGUvYTgO1Ybq/izVac0p9xSRmw8+vft11fUz4j6dNdO9wjJunVXd IEa/eaFPHFHbV17SFCB2vIM+LhvOILCIqoRm+Sb6YoUrrtX2rCTS0ASLS3FgVt9nmkpJ 9zNeaAH3uW8vGrrYBWWeZ5ltGy7ykneRF9uQnLtlBIYBA6itIVEgI2bSnxGwk9fNO1QO IUiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=aOGlqVN6yxckcg7jhT8V42lHFKeAPcwf3jEo6P5nP1I=; b=NrxYKm6nxbma6NbLmhV2BITQFHvoyxEOb4GdFPSigkSUiIsWOLZTRs608Mvcpj6rtP vKZqZIMfYQMbbHlQov/5EzVJ01+YFed2qvw48DrJaitij//RkPow2A33WgeDtdFuFL0y oUbx1kejqEBeQS3cy/EQvQEuPR0Gc0MVyHiA2hHM7Op85laOKD7M5jqr6hX91by0xOc7 P/QrojaioyrAC13yQKBF5H8Nr+l8W4XDw+DJKXdr8C9hlSoBRO3VL/V0Q/H825Sucf+o JbEuXnesjaz8KOpWjGwbLlEQJOOmnYVKV/b5WXDukkMDgwpmmQq3bsGPQZmTewQDxI1D 2lpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id k7si2107359qtk.422.2018.02.15.06.01.13; Thu, 15 Feb 2018 06:01:13 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 0B47461755; Thu, 15 Feb 2018 14:01:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 646786087B; Thu, 15 Feb 2018 14:00:25 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0680061745; Thu, 15 Feb 2018 14:00:14 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id A6F1061701 for ; Thu, 15 Feb 2018 14:00:12 +0000 (UTC) Received: from mxback11j.mail.yandex.net (mxback11j.mail.yandex.net [IPv6:2a02:6b8:0:1619::84]) by forward104o.mail.yandex.net (Yandex) with ESMTP id E03FE703BE9 for ; Thu, 15 Feb 2018 17:00:10 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback11j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id DRAcdKbhGA-0A50BbVr; Thu, 15 Feb 2018 17:00:10 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id yLwPeDorb6-0AKaVroG; Thu, 15 Feb 2018 17:00:10 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 15 Feb 2018 17:00:06 +0300 Message-Id: <1518703206-19713-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518703206-19713-1-git-send-email-odpbot@yandex.ru> References: <1518703206-19713-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 484 Subject: [lng-odp] [PATCH v1 3/3] validation: cls: test cos_num_queue and cos_queues X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Petri Savolainen Added single queue tests for cos_num_queue and cos_queues. This way functions are called at least once from validation test suite. Signed-off-by: Petri Savolainen --- /** Email created from pull request 484 (psavol:master-missing-validation) ** https://github.com/Linaro/odp/pull/484 ** Patch: https://github.com/Linaro/odp/pull/484.patch ** Base sha: 41b3fa2cd994a7ef68290a07dcde5564e4640847 ** Merge commit sha: 595ea205e4c4680f6a9a674fbe637dcab24b038e **/ test/validation/api/classification/odp_classification_basic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/validation/api/classification/odp_classification_basic.c b/test/validation/api/classification/odp_classification_basic.c index c31a7530e..20f073740 100644 --- a/test/validation/api/classification/odp_classification_basic.c +++ b/test/validation/api/classification/odp_classification_basic.c @@ -149,6 +149,7 @@ void classification_test_cos_set_queue(void) odp_queue_t queue_cos; odp_cos_t cos_queue; odp_queue_t recvqueue; + odp_queue_t queue_out = ODP_QUEUE_INVALID; pool = pool_create("cls_basic_pool"); CU_ASSERT_FATAL(pool != ODP_POOL_INVALID); @@ -171,6 +172,9 @@ void classification_test_cos_set_queue(void) CU_ASSERT(retval == 0); recvqueue = odp_cos_queue(cos_queue); CU_ASSERT(recvqueue == queue_cos); + CU_ASSERT(odp_cls_cos_num_queue(cos_queue) == 1); + CU_ASSERT(odp_cls_cos_queues(cos_queue, &queue_out, 1) == 1); + CU_ASSERT(queue_out == queue_cos); odp_cos_destroy(cos_queue); odp_queue_destroy(queue_cos);