From patchwork Mon Nov 27 14:00:07 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: 119712 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp310500qgn; Mon, 27 Nov 2017 06:03:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMaIyR2K6gzn5KW/mPXcDih1fX/tM1zCVnopJGzel8VgogBXwzgmLmGOCmlmWtlqGwm+UBSq X-Received: by 10.55.41.36 with SMTP id p36mr55467421qkh.251.1511791434306; Mon, 27 Nov 2017 06:03:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511791434; cv=none; d=google.com; s=arc-20160816; b=fFlerkn0h4UEIVjQtouovZA4Y/M4fSxWqEym5lThifoeUFRTVSmQEsvBeLxOmOmolu W1Cx8z08Pp0Btwqmc1fS5xOJQ3DWMvri8+Nw3IfDqNGAIFDbXwgQbCmR3RsEYLHe7CgW bYe6turBc8sUq5qlPtCKiVNShMVA9yae7SZt7As0gLkmxQ+LVXgCKb1tIjVj1VFTlxZo 36HHyG7ZwciJiLS5pLZjBORDXNe/Dk0Ey5M596Ol8qyAx5e/rrunxah8vmrXKoCW+CTR S85dhXpjW6s1sH3ZkDFXPvuN710fkbdypA6o16Ldi78ZyOs7VTn5jTV0I5Ra3y4EHGI5 pGjA== 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=Vh2j4R/YXjpPHcBFqg8IUavdE1wmHMIe06D5QRQndGg=; b=0YnRTaHbZsjAziee73N4ejSgOPiA0SHHDixFB9wZKoswRxLUhdOXiI+mkZP/5KMG6D emuJNDceQrrJt+JcFrQeok0/riaXhb+FLmp0BRSg576wOG6G/D79/A9NkLniMk25SguG iPm4DxJXRNnIAKlYcpKFAK29cS8oxRKBCehQ2j1+ks+P8Hl3Z12QV8U3Yd6yA8cPnblO 0aTsbhuHHoMHXYXV+Gcxlhh6FBwGib3KDvTUklx6IUrMPm3LRNbsSzNKkkG1XlYXYvM9 ERINfYRN4bwbA1i0vGw+khWuvp2pEkzMyrQwi8EyEennJ8NVLVIMGSokajk62KhrnBEC o1tA== 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 c15si6798605qtk.86.2017.11.27.06.03.48; Mon, 27 Nov 2017 06:03:54 -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 18DAC606A4; Mon, 27 Nov 2017 14:03:48 +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 391CA604C8; Mon, 27 Nov 2017 14:02:34 +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 070CB60688; Mon, 27 Nov 2017 14:02:23 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id F077A608DD for ; Mon, 27 Nov 2017 14:00:14 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 19AAC781BB5 for ; Mon, 27 Nov 2017 17:00:13 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CaIfyVw7sB-0DcKefCJ; Mon, 27 Nov 2017 17:00:13 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VVd7ThpHX4-0Cj0HYG4; Mon, 27 Nov 2017 17:00:12 +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, 27 Nov 2017 17:00:07 +0300 Message-Id: <1511791209-5993-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> References: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v4 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: ff9199054bf3859c068a6c7702c0dfae9dd7c629 **/ 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();