From patchwork Fri Nov 24 11:00:04 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: 119571 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2045645qgn; Fri, 24 Nov 2017 03:03:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMZWY8U1v9ggvsztxlpqDr69I7YdtOZFfHjZM1in/3nYTiDGyS4P0tcElXHHPdZ+B6sGgi86 X-Received: by 10.237.56.226 with SMTP id k89mr40942234qte.320.1511521403277; Fri, 24 Nov 2017 03:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511521403; cv=none; d=google.com; s=arc-20160816; b=utw1c82ALkzAUo3kRszoql5Io+NSi49QrPO6uiq5cJrlzEnTNzN2e89ES6rFP5dzuh w5AfVwCHk3tnUyUkWsuBxqzZIXoXh9urTKOkGXdRG/aSxA7OJbyigkXys6A8f1ptciOC aB8bjGs3/q8T/uE4v92L+5pjyIVBQOty655urhGgCUuMh116uPZLUmU3gXv+6ACGL0Wf kG9bS4zc4p5itSBazMblAnuIsDpiqyO4CdRknWArkT+NvBBRh374RpZKzix7rIkVnIOR fBqd3ByaVBKUqcsPWJwwWIYuRiexYNf7k4V3OJs9P3CBZbOifEsOd01t6CV+Z/3JnaeA JyRA== 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=/vbsMrEZTskObsQZVq1XQMiaRf05RZwrUuUYUl6pZuk=; b=xVQ+urfPnuVmfbGWqDzlJTDxQLan0c1jAUaLTZYM3C8CDqEFeeftYQ/0+XWQoFGV1D O25zBagAbimJc4bJG+LubcEHt+YFyVS+YvsSNItXgk8q5N6KGuLBYpp6zDY+kcX/Rt4e 5KIpQMG9863XFbThkxd/RuCIIDwDskyWEx2V1BTE6e3YNkpRZ8GZGO5G04qW8JF0x1cU Kh3Bk7iGd7FBYmLEWpuPFF4FjM7csdc09Ldth184ps56YJq/K1Bas/+Kztsv/IUA0F4a 2X8IqSujFk7x+mRepZNAMqsegQV1XvtIBqW9VMSZazMeg+vOral6lnBFv2oirZ0O1cyN BiIg== 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 m10si4302516qkh.244.2017.11.24.03.03.23; Fri, 24 Nov 2017 03:03:23 -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 078CE60857; Fri, 24 Nov 2017 11:03:23 +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 F187A60830; Fri, 24 Nov 2017 11:00:45 +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 196C060812; Fri, 24 Nov 2017 11:00:18 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id 407296082E for ; Fri, 24 Nov 2017 11:00:11 +0000 (UTC) Received: from mxback14g.mail.yandex.net (mxback14g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:93]) by forward102p.mail.yandex.net (Yandex) with ESMTP id BCF3F4305A78 for ; Fri, 24 Nov 2017 14:00:09 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback14g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id VJ8ld2Qz58-09A4bilD; Fri, 24 Nov 2017 14:00:09 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id txSlDzmgG0-09w8Q2Wh; Fri, 24 Nov 2017 14:00:09 +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 14:00:04 +0300 Message-Id: <1511521206-22959-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511521206-22959-1-git-send-email-odpbot@yandex.ru> References: <1511521206-22959-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v2 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: 948a78a8756a13ba45c7aa311dc129e0cc7b3c98 **/ 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();