From patchwork Mon Dec 11 20:00:17 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: 121459 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3219616qgn; Mon, 11 Dec 2017 12:01:31 -0800 (PST) X-Google-Smtp-Source: ACJfBovmrAoa3LKaMeGT9HB4DFbSF8zwTiqEinlwxcr+ud/WLohN9vNbtPiT8/sPTNOJUxXdohYX X-Received: by 10.55.142.3 with SMTP id q3mr2306303qkd.276.1513022491098; Mon, 11 Dec 2017 12:01:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513022491; cv=none; d=google.com; s=arc-20160816; b=QxJbsidLhf5dSAp3KhhCQaBCtH6yi4BEfkpVL8U8M2+uTZgd1TIEvc1TwZViFPxTux a767ooye5B3np8feONF5usAzoEzTQdYsVncTZi44xRq5EDHOkhUCB5Q187EV528RPT4c cQahfpi8X+G4Oih44VSi725OxH1rJJ+zwPnUIkJ/WCxVcDOeEBYLe67j//MD/gOOCcwm ZQ73b+I8zTVRnrNL0MTRnd5E6bTp+hDiR26bkUlWSnD+JDInWIO5cuYrYJAcDA80cdKC 4qekmQzrib4QfsTn+40gPD+tHVsihnk0c3Cn1dcoM2m81yQHA++otDssKyss0Fn5reYv eSCQ== 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=cU3n9CLSAllBvKcOCExjXVpTFdxbeCUkYGwH65v+Ke0=; b=J+h0QQir/gAyEX228MYY4rsCRT44GMppIDDhtwfOE2CQAVVu6CNPOoP0wQuvEjFX0+ HLLF98SI0aGPtQjthFeU50xR8uWWDaEiyDCBRCLwjxDQBRqTMhAMvlHhrQSU6xoaklyQ aSJFEP4ThuonP66lSZk35usyWzOU/2A+CzqR9mBD2W7Bml8Mon6UyOyaDWpk8A0r4NMg gLUhlg+2xNKoyK8M8nCLmGihL38C1fAsIFZWToqIlyWkf7HZ+Ru9bz6kuOJo+anBi0cn wBIFxfE5JsN0uvm/l6SO/RHSQX/GScm10GIU/wBniokIouUycEa2l07yd/k1SJ1qkfRW 84rw== 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 q85si403639qkl.268.2017.12.11.12.01.30; Mon, 11 Dec 2017 12:01:31 -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 C356A608BC; Mon, 11 Dec 2017 20:01:30 +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_H3,RCVD_IN_MSPIKE_WL,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 E778D6096D; Mon, 11 Dec 2017 20:00:33 +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 E61CA6095D; Mon, 11 Dec 2017 20:00:26 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id A836860902 for ; Mon, 11 Dec 2017 20:00:24 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 6811B2182771 for ; Mon, 11 Dec 2017 23:00:23 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id VklhVEBNpv-0MAu0kmq; Mon, 11 Dec 2017 23:00:22 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id jr2z9dCikj-0Mtukgu8; Mon, 11 Dec 2017 23:00:22 +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: Mon, 11 Dec 2017 23:00:17 +0300 Message-Id: <1513022420-22227-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513022420-22227-1-git-send-email-odpbot@yandex.ru> References: <1513022420-22227-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v8 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: 6881620135a179911a5839d4be97423a8d80e5ab ** Merge commit sha: 9af6bae56adfa7e06e06d13bb60a5964fcf40977 **/ 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();