From patchwork Thu Dec 14 15:00:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 121969 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6926253qgn; Thu, 14 Dec 2017 07:07:39 -0800 (PST) X-Google-Smtp-Source: ACJfBot4bHjxbu1unC32B3xsENO+oU6lZMCBQvnZd6uw6ceB/5yjc0v0SDKYTgeVbGOX9iZe4UgK X-Received: by 10.200.45.43 with SMTP id n40mr16010495qta.63.1513264059273; Thu, 14 Dec 2017 07:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513264059; cv=none; d=google.com; s=arc-20160816; b=VsBa8h/HRQHADN2gLfQfyM4wC8JiNCUqKBmpFAjyKZ6mL0BV6D+G5CzCiVwigkT2Lf faClEkVcWLegXBmcKGb5CY4PBDKKwdh8gTtMDbn64hp914ifaG7y9s/JKSsfLi3gBat7 EtRXUbif72he4SqJ+exWRoXzvaiXvkSVhxT92HFYO1m+X+ST2UpIr/3Br5iNRA5fmez2 H+D4q3CqIUlSvrBBiS1K5qqPpsUMmzKTTm37hFGxUo/SW150iMFx/2wGgjo6UgRyWOt6 +p4Ja9AhXd4K+miNKFv8piQbD5kEzez0fl7+P7razRE30FWuakbqw9aKNbjzWVmu4F2P onOg== 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=FZWMxlMCBL8huUuqmyxrMqo7qbJW7zEn2jVM34Vlk30=; b=C1DVhpzmw3cMp8gDBGDen8Nauw7eHYgipJ+OtvCECDD1urAfWN1hu3dUHR4KxW+2z/ Ozvku45jfyOEcZXwj+S3r933aqwuyT/yJwZXEHQigEDMmkVfcOarFHRn9zSkcYtU3g0i +3IbX0eb7bUuW/zKMnoyi5NkOFJjHBbCHGdj2x0tS00FZseYOWRHZHqrlH/dfHrT4CbX /wrzjkJf1Pqllqj8OpDCajcv7Om7m+yTqIeVLl5cfgphgBovjY6SJ/ixJTBv/8QtB8DX StnX1Y/+FLGKkdQ6pRlsY3k3VjhxLmHUNXJw4ZuYhgDfIXkFv2vgCDFjZuFILvrMqR58 NaPg== 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 y41si3453319qth.146.2017.12.14.07.07.39; Thu, 14 Dec 2017 07:07:39 -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 0333F60926; Thu, 14 Dec 2017 15:07:38 +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, URIBL_BLOCKED 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 AA3B260958; Thu, 14 Dec 2017 15:05:27 +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 C2A9D60976; Thu, 14 Dec 2017 15:05:16 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 8857060926 for ; Thu, 14 Dec 2017 15:03:54 +0000 (UTC) Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 4CCC121818C4 for ; Thu, 14 Dec 2017 18:01:23 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback6o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id gPL11C9Pcm-1NuSv3Kd; Thu, 14 Dec 2017 18:01:23 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id U5bGnNkZ2k-1Gx4MhoF; Thu, 14 Dec 2017 18:01:16 +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, 14 Dec 2017 18:00:43 +0300 Message-Id: <1513263646-26300-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513263646-26300-1-git-send-email-odpbot@yandex.ru> References: <1513263646-26300-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v10 2/5] linux-gen:test: shmem pass args to cunit 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: Maxim Uvarov Pass args to cunit to make code commong with other tests. Signed-off-by: Maxim Uvarov --- /** Email created from pull request 309 (muvarov:devel/master_shippable2) ** https://github.com/Linaro/odp/pull/309 ** Patch: https://github.com/Linaro/odp/pull/309.patch ** Base sha: 6b5cdc77eb9759a2349b10372a964648559bc92c ** Merge commit sha: b6dece7bd634cbe00c04cb730888d4600936a592 **/ platform/linux-generic/test/validation/api/shmem/shmem_odp1.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c b/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c index 8cd89c8f7..d3b951ef7 100644 --- a/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c +++ b/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c @@ -76,9 +76,15 @@ odp_suiteinfo_t shmem_suites[] = { ODP_SUITE_INFO_NULL, }; -int main(void) +int main(int argc, char *argv[]) { - int ret = odp_cunit_register(shmem_suites); + int ret; + + /* parse common options: */ + if (odp_cunit_parse_options(argc, argv)) + return -1; + + ret = odp_cunit_register(shmem_suites); if (ret == 0) ret = odp_cunit_run();