From patchwork Mon Dec 11 22:00:19 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: 121465 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3336730qgn; Mon, 11 Dec 2017 14:01:08 -0800 (PST) X-Google-Smtp-Source: ACJfBosIC9hUlHebV5AuRyUFvSvJ/+Cq70BRwzND/+9Us4XWjZUe9SaBOPGH2zu3dMmvdTZXVMiY X-Received: by 10.55.192.19 with SMTP id o19mr2648875qki.148.1513029668650; Mon, 11 Dec 2017 14:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513029668; cv=none; d=google.com; s=arc-20160816; b=tuNy6Kb2/dqhQInSytXsqly2MDFvjCGwLn+P/MP3qzyXF7H1GoWBraW+wkvsNV1ChV vviEQQd8RO26ApbvCpgNwTWBoDZzxazZ2ZqjcjKw+AnR+I9h8vaqU7VsAtpMF9z5cxNf AxljcJ3tf8klb+HVhazNrME+6LlDazQ61adaIa9ICXDFl254tIS9c7YrhPufNwhUmsgO mkMV2lig5EJJYvpP9N0C8481cVZ5fQMTMnpBtESgBvcnGYn6a0AIRa3STtj/9h7KRIih n/5Rl66MNgiZ6eB/W+VMdsTqv6PThnhbkTcZyTGo41nt8Oqe4zhZQBJdOpupQcRcwpGX ftQg== 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=iEQLfdAsdGf3uYn1hlVJ0rLmqaR+YXvDIGK++CrTFXo=; b=ogx/FmipcC9NDSWMNzD6ZQGsb73DO3ngN7at+Pc4VslN1fRLitRbFsRkhIdH8z23Yu XAXEaH8lvR54miXlRLsbmD525OiSjAt6aUDCNCTbCfGEYojtVmWEmdvoLOouJRUYf56E UgUadhuxUYyZDGMLUH/QmrAL5JX5AJPFxWUvGtZ+LRIw54YNzHbosJQRekt8nzGyQrnv eHt2DNl7seuJfnEO2zgYHwj3Pj7TxlcnNCjK4vo3fP6GHz2nUS5vwWOiSHAFC3oolJyY qi89tm3MYP1SlTtSRUwOTkkBDWrVMwweIqqg1i8GSfTiBXkZLBkAg+EQCKiH+zW4no4l TSEA== 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 p188si11543282qkd.322.2017.12.11.14.01.08; Mon, 11 Dec 2017 14:01:08 -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 5F4926097B; Mon, 11 Dec 2017 22:01:08 +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 820986097F; Mon, 11 Dec 2017 22:00:35 +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 683B26097B; Mon, 11 Dec 2017 22:00:29 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 3C50160696 for ; Mon, 11 Dec 2017 22:00:28 +0000 (UTC) Received: from mxback13g.mail.yandex.net (mxback13g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:92]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 9956613413FA for ; Tue, 12 Dec 2017 01:00:26 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback13g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id oskKv1FakJ-0QVCU90h; Tue, 12 Dec 2017 01:00:26 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id oe9SStyGAP-0QbCFawb; Tue, 12 Dec 2017 01:00:26 +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: Tue, 12 Dec 2017 01:00:19 +0300 Message-Id: <1513029623-29970-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513029623-29970-1-git-send-email-odpbot@yandex.ru> References: <1513029623-29970-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v9 2/6] 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: 6881620135a179911a5839d4be97423a8d80e5ab ** Merge commit sha: 512c8ed3c8a8e6317575378fbccc1620392cca8a **/ 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();