From patchwork Fri Dec 8 14:00:21 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: 121169 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp703721qgn; Fri, 8 Dec 2017 06:08:09 -0800 (PST) X-Google-Smtp-Source: AGs4zMZvcj5DhD0hein5S+rzn2nCEzqe5Gify36aB/CaOqNBEthZ7rTeRRHBNi9YJ008/jqSIVdq X-Received: by 10.55.128.135 with SMTP id b129mr35471936qkd.319.1512742089315; Fri, 08 Dec 2017 06:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512742089; cv=none; d=google.com; s=arc-20160816; b=JnPLsozwz0z6UYlichuUMrF3vGyB9khIRhNfRz35DjdkW5bXVdMuVEX08DpLyq6ohm r2NLB5spb4THM8ylcPyjo3zXoDYIam6ZHmCGwDylM4u6N04zkLvM/LGN5JlR7MaRLlET aCH9U78p3KqSEX8W5/JAlgTZ8uWqh1iq/DfwHKmi04lv8e/bRtFuN32N7fR2P1mR8G1o aqAic8YzodqKNn9eUlCQWFVRoHNt06MqERiR4XQ91Xr8vHFlOif0rrft12osXz/RIKgH noquc1WF85G1XypfGUY3ULo2gwR1rFsDwZcmz9VFPfg6krQFhKTIPkHWPQ+kGoimMdCI omyw== 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=yQdhLbRz6ItijmIfh+YqhA3git75byNKbLEvtRkho9w=; b=zfDNFe5xMIzJJzvFjlVjU24c3yFbyObD+5vHZxuvdPfOIvUZmALpkxSq8Ajo63eo8D dil6trMX308pxWr8NIYzHdJWeIFK2vyNtj+XL7HaV54fHIwa7wr7uQ2DzTxAzswX3+OU /MTqbnHYo1dvDIXA/wxLMQJAGsxJMd54gCC8bx8/h2x3jBIO1OJRXF1URmyhbOY9Gb9Y yLKDV+YW34qNwJaEKJqcrdx+0CFWpEZxC7cF/bfZEmI78zInPqqZweWy5+baq8hLDoaa TOLr5lzQZkFlPAcL6hP1ZVUOPGYW+4dkqbz2eBuYlyAXcIdMpZLN2m9aW9c059xqEX6/ XxgQ== 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 i186si6029195qkd.146.2017.12.08.06.08.09; Fri, 08 Dec 2017 06:08:09 -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 052B5609B5; Fri, 8 Dec 2017 14:08:09 +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=-5.4 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 1EC4B60A1C; Fri, 8 Dec 2017 14:02:32 +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 5A92A609AC; Fri, 8 Dec 2017 14:02:26 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id A0ADA609AC for ; Fri, 8 Dec 2017 14:00:26 +0000 (UTC) Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 5EFD94082182 for ; Fri, 8 Dec 2017 17:00:25 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback6o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id sADnXkcjrN-0PoiMgC6; Fri, 08 Dec 2017 17:00:25 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Em6w1yWDhQ-0OPmxcCC; Fri, 08 Dec 2017 17:00:24 +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: Fri, 8 Dec 2017 17:00:21 +0300 Message-Id: <1512741623-12503-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512741623-12503-1-git-send-email-odpbot@yandex.ru> References: <1512741623-12503-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v6 2/4] 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: c15a810b7a47f2e07200f83aa534163ca06e2b16 ** Merge commit sha: 0cdabd14b0d18093820a34f184f68afe04aa851e **/ 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();