From patchwork Fri Nov 24 13:00:35 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: 119582 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2139816edl; Fri, 24 Nov 2017 05:05:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMYF9R/lvT0pHP98iGNLXtlkRyKqefyrlApTGcd7t5UBG/P3b0xAUVFzj3h/HsGgwBVes8k3 X-Received: by 10.55.188.6 with SMTP id m6mr5982530qkf.75.1511528711855; Fri, 24 Nov 2017 05:05:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511528711; cv=none; d=google.com; s=arc-20160816; b=NCuLs5+7bW9W/7/+AUK+qNWrr0YAnhc2sNnqXOtf4q/2HakEZTz6moKmkEOVMq4Bfv P9IDTTXC+/XosL8iHznREx2tQh/zh849TvFvGp+wI8T8SDfZVjSeIfz+FOor+VIAov7c rryT/x1IDYQ1Mkan8rMoyoQTWxP5c3vU3fHqf0KOASGUxFOf2Qnw+zu4qOyp2WtCZLnB WBkYoIzzRaXMwqrdIuj7XzyNv8uh/uy98owixhFIVlrL5ApcrWbObeHnvBT2BIa+9rXS P2GkP/1JXgC7Yg7H9aE4B/fhF+HxiSVf7IeTbLBde3TW/KTf4iIPd8aed9BjNZqJ1reQ TrFw== 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=Jnh2BgW/KuXf01iI2rKaEKMR+5dpy/fIZzB/kw9MBZI=; b=vWvVLFnS1J4Sw97meuHQGDI13Dk7xvLnYshPdxX+TRMH/HTTWeqUOlG5TSLTAZF4mB w4zNfzyF89ABnaWEK/j5HnndhAH1PIDcfvG7pYiJRaSgUSUMGIgPPda7ftTQp0hv7x3W U0FidwH1mnrhOBOBqERtUB7d79bqvFTjvOr2MSO/4N1Pg9aOvXkdBO9EjlE4jx9zptCw MA/s0lpUQy5mCxggrqy6oncCv4TY7bvoRTFxIl+ZK8h9sI5RNUpbqLv3fQAVFgyoBW/e P6QRSlh5nWPdTZoyJNLLpV866EB2NNeugqG0X99h+h39f6gd3DENlafr0yL4GMHCFwFh 22Ew== 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 z7si6101194qta.265.2017.11.24.05.05.11; Fri, 24 Nov 2017 05:05:11 -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 8E2E66089D; Fri, 24 Nov 2017 13:05:11 +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,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 1839760840; Fri, 24 Nov 2017 13:02:43 +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 2084960897; Fri, 24 Nov 2017 13:02:29 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 25EC26088A for ; Fri, 24 Nov 2017 13:00:40 +0000 (UTC) Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 10DC3702126 for ; Fri, 24 Nov 2017 16:00:39 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback3g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Y4Tbh14CHh-0ckWbVOD; Fri, 24 Nov 2017 16:00:38 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6eODFnDx2l-0cIqEKEV; Fri, 24 Nov 2017 16:00:38 +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, 24 Nov 2017 16:00:35 +0300 Message-Id: <1511528437-25334-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> References: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v3 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: 5329e5211c447b9b823149baf76112eedfeb07fb ** Merge commit sha: 38997035d56dfa16e0d5d75e5619b47457b54638 **/ 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();