From patchwork Wed Dec 20 16:00:20 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: 122478 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5762431qgn; Wed, 20 Dec 2017 08:01:21 -0800 (PST) X-Google-Smtp-Source: ACJfBosCh/vJsk10l/o+F9VwstcMIGmjj3nzzlSK7Y50Escse3fP1tTFcujOBTjHwQCeI210cfnM X-Received: by 10.55.33.159 with SMTP id f31mr10741062qki.78.1513785680775; Wed, 20 Dec 2017 08:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513785680; cv=none; d=google.com; s=arc-20160816; b=mrskeOiYxLNps/L3atB5qmGmTmMzLjIQVuzb6hC0iw9eDELS0BeDv/raFDi4BC+LJr fdxDzO1xkYAEJ6mf7CCFOQPXWqFdLSHPv/sKA3kczTdDraJi4JU0i8qU+6xV3e4rv8Vq ZccZreOTgZjya25yuW7bfHdwe9+ohNouk7M2YGdon2+9e6/qPYj8RoZ4wJseFCfaFpd8 LsxyQOgWFmBrHgYZX14xXOQc2azWOenmv9q5lSXX0VXEqQdfFJrmv4K+MYT/lE2z1Q2a +ikdz3mZZ4VKxrt3ccJwdxNX92UV6puKofSI5NARJJ/LoovAgIWVR8RlyOpZa0AyASMl Efug== 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=XZQGeKTBSyPstlY7IViV2L4KfVuxot4mnGcGC5Dqwjg=; b=EeSDyVZAWZ5SUeI7p6hCXPJnQmKMzZp62d7hx8oFqNeJjMHpOeIraDbuYt9RNlE7fA cvOBdrIgWxibqhtSY1PVSc4QEs43KSLCkVN3CfiNJJH6gOSVl+npQReglWWR89Z6NcjY 3MhzswYL8snlqhmLaTYcC3mFta9gMRpHDnJ5GYOsyvF8RyCADPJMsfwusN5jMAIlW3YB sDCto7MC2iL3sJIpha7ykKdwKRtqR/TqOP1GJxDupxMpp8cGPv8LqnYf/FvpQJE26mgl SkjwE5bq7Cg6qGSrN2ceCDtIT/dEKI4ZuN7iMVBfqQo7ntCyDo1weJFEALExGZvzYH6r H83g== 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 u34si3775096qta.358.2017.12.20.08.01.20; Wed, 20 Dec 2017 08:01:20 -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 6FA7E60997; Wed, 20 Dec 2017 16:01:20 +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 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 01695608F8; Wed, 20 Dec 2017 16:00:37 +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 F3919608ED; Wed, 20 Dec 2017 16:00:28 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id 6722960816 for ; Wed, 20 Dec 2017 16:00:27 +0000 (UTC) Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 1C87C40841CC for ; Wed, 20 Dec 2017 19:00:26 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id bqlBfNV9CT-0QAqSgUr; Wed, 20 Dec 2017 19:00:26 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id SwIUpkrZYA-0P50LFX8; Wed, 20 Dec 2017 19:00:25 +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: Wed, 20 Dec 2017 19:00:20 +0300 Message-Id: <1513785623-30862-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513785623-30862-1-git-send-email-odpbot@yandex.ru> References: <1513785623-30862-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v12 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: 170d41370418d3dd8da3808c800f2894f36cf9ae **/ 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();