From patchwork Mon Jun 29 15:10:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50417 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 599D0228D9 for ; Mon, 29 Jun 2015 15:11:52 +0000 (UTC) Received: by wgbbj7 with SMTP id bj7sf48092321wgb.2 for ; Mon, 29 Jun 2015 08:11:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=TBEOjmH4N9dn3N2V3heU1u0/WCtt9gBttQBriZzb1zc=; b=MJguX3ZMdtCH1A5+4dKSjrR5NEBE8eManvKf5TbL9FUKllQm2VMgmNiEVIR8aKZUjn tl9H4UIZVH6nKbAjyQv2ofBFb8hweitJ3nIcoStdrgmkOog+VEKAybCy1kBC9sI+MCSG fhe+SNqc6GkKnR3GRBojs7GxNd7Uvg6onqnVtL5bQuMDb6xQf7MkFQagUgNj17v2jwSx r+KF6xpSibZvKnd7sE8VzsFu4hW6GDp5yV9KadpdTqRD+VedzWTxtOX/GkTIleLpkAY0 cYvbpkwTXlFXqFIddu7lwzu0k4MCtiZAYVyyNl4hDcMb6k5ki+Kyv1A+L2Nd/ZX3uAUP faoA== X-Gm-Message-State: ALoCoQlB4ns7adgm6xHP7cdU+nUGD/e+l+pnhZX9aVT4GeSOQ1lA6GKafCFGnDUpIGoYNq0RZ3Ru X-Received: by 10.194.179.42 with SMTP id dd10mr11153904wjc.7.1435590711665; Mon, 29 Jun 2015 08:11:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.40 with SMTP id kz8ls797526lab.24.gmail; Mon, 29 Jun 2015 08:11:51 -0700 (PDT) X-Received: by 10.112.189.1 with SMTP id ge1mr14705025lbc.10.1435590711503; Mon, 29 Jun 2015 08:11:51 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id q10si35288651lbp.109.2015.06.29.08.11.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 08:11:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagh6 with SMTP id h6so57612498lag.2 for ; Mon, 29 Jun 2015 08:11:51 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr14525719lay.72.1435590711363; Mon, 29 Jun 2015 08:11:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1772402lbb; Mon, 29 Jun 2015 08:11:50 -0700 (PDT) X-Received: by 10.140.104.147 with SMTP id a19mr20103923qgf.71.1435590710031; Mon, 29 Jun 2015 08:11:50 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h107si30585656qgd.120.2015.06.29.08.11.49; Mon, 29 Jun 2015 08:11:50 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 58E7261D4C; Mon, 29 Jun 2015 15:11:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 44A7961DFB; Mon, 29 Jun 2015 15:11:17 +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 B164661C7A; Mon, 29 Jun 2015 15:11:14 +0000 (UTC) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id BD51761B62 for ; Mon, 29 Jun 2015 15:11:13 +0000 (UTC) Received: by lagh6 with SMTP id h6so57586533lag.2 for ; Mon, 29 Jun 2015 08:11:12 -0700 (PDT) X-Received: by 10.152.9.5 with SMTP id v5mr14349418laa.111.1435590672285; Mon, 29 Jun 2015 08:11:12 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id qe6sm6568757lbb.6.2015.06.29.08.11.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Jun 2015 08:11:11 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Mon, 29 Jun 2015 17:10:51 +0200 Message-Id: <1435590654-2527-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435590654-2527-1-git-send-email-christophe.milard@linaro.org> References: <1435590654-2527-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 1/4] validation: own main in odp_random.c X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christophe.milard@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Christophe Milard Reviewed-by: Stuart Haslam --- test/validation/Makefile.am | 2 ++ test/validation/odp_random.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 03e1509..d3fd184 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -35,6 +35,8 @@ dist_odp_init_SOURCES = init/odp_init.c dist_odp_init_abort_SOURCES = init/odp_init_abort.c dist_odp_init_log_SOURCES = init/odp_init_log.c dist_odp_queue_SOURCES = odp_queue.c +odp_random_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_random_SOURCES = odp_random.c dist_odp_scheduler_SOURCES = odp_scheduler.c dist_odp_shared_memory_SOURCES = odp_shared_memory.c diff --git a/test/validation/odp_random.c b/test/validation/odp_random.c index ebc9705..4c58d32 100644 --- a/test/validation/odp_random.c +++ b/test/validation/odp_random.c @@ -19,12 +19,23 @@ static void random_get_size(void) CU_ASSERT(ret == sizeof(buf)); } -CU_TestInfo test_odp_random[] = { +static CU_TestInfo test_odp_random[] = { _CU_TEST_INFO(random_get_size), CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo random_suites[] = { {"Random", NULL, NULL, NULL, NULL, test_odp_random}, CU_SUITE_INFO_NULL, }; + +static int random_main(void) +{ + return odp_cunit_run(random_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return random_main(); +}