From patchwork Thu Dec 7 17:00:16 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: 121028 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8605043qgn; Thu, 7 Dec 2017 09:01:19 -0800 (PST) X-Google-Smtp-Source: AGs4zMYsStLuYKpohSeH3JrxhE6Gi0A+XPoE/HPKZZWvBsQ4e1nSMIG3rumh/rJHPW5M0b5rJrph X-Received: by 10.200.54.139 with SMTP id a11mr10767835qtc.325.1512666079196; Thu, 07 Dec 2017 09:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512666079; cv=none; d=google.com; s=arc-20160816; b=p5ClkmrBFGb/svZBF2xvK4B1koqXVUOGIuyZxxqfX1ykKLxxsqPURJuqWun86Tvr2t Rq2Wg70tY0KS4fj8/mDiuN7d43BwDFyVX+5n5E9sVbAZ8uBsQ29AgnMEk+o4BHK/1Bd6 M47M9i+3kdZKNtGIIeGuLrjtvTEdxs3gnOdXl4d595cPwnc+Tx9YEceR4YG2bAJsHVBS CjmPurnSVWB0NIQ++mV3d+Mw+a0EcdvZgxIuPHvQ42E/3QeSiqXhxeLbBccSb9toZR0J u8w6EjbNb9bdfScXYcAFpTS2qnKStw1achAbk/Wx6uTSjN1myp58VJABRSHTHa5lkxVY D6WQ== 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=/NkqI3OcogEu05vQu/gvdedLnMIWMw2d7EJSrGxNZQE=; b=jXaFEeNmwaJEqGTFpNyCmCYnMx2AwaPt59bJvOx32c+9zA/1e4q+Nfr6BaQH+5UKId McnoUztt4sO6Hw6iFHCAT7D8vPEWhfvFx/6po2urIZahFyvQpPfItpw10SrgGpXTUcCI GQNLlasslV/hcWoUdZlMJB4NOWprm6L9KEpvpLX97GjHPChkgq3/rXczG3wFwkgkQ2q/ ZO2Kp2g3SKK5LerZ1TYurUw3FR5Eeu9Z4/QLF6X62m9+ubHEgYn1Fi5UVfoKM8B3Mmhy iKaTfvd+fFWuOWGXoOqZ3AXJB/24Op/nJZ8AK0kpYEw52k0sCEFUHTxzmcmWAS/gAJ0C EBzw== 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 e81si690434qkj.235.2017.12.07.09.01.16; Thu, 07 Dec 2017 09:01:19 -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 8F70C6098E; Thu, 7 Dec 2017 17:01:16 +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 2D20760953; Thu, 7 Dec 2017 17: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 E07D06096D; Thu, 7 Dec 2017 17:00: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 DD93B6095B for ; Thu, 7 Dec 2017 17:00:22 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 5C68440836AD for ; Thu, 7 Dec 2017 20:00:21 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id IAqRrxwlhy-0L9CH2B7; Thu, 07 Dec 2017 20:00:21 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id robc9Ytbsu-0KPKlM9T; Thu, 07 Dec 2017 20:00:20 +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: Thu, 7 Dec 2017 20:00:16 +0300 Message-Id: <1512666018-3066-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512666018-3066-1-git-send-email-odpbot@yandex.ru> References: <1512666018-3066-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v5 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: f67aef1c433b43a2cdad08eb808b9fbcb9797b0e **/ 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();