From patchwork Tue Jun 23 12:42:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50220 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2E2EB216E1 for ; Tue, 23 Jun 2015 12:43:18 +0000 (UTC) Received: by wguu7 with SMTP id u7sf2655204wgu.0 for ; Tue, 23 Jun 2015 05:43:17 -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=uF/2gTq6q7jXXwcoN3bqcyOKhz/JmS25Atqjhduv96Q=; b=ALAERcjQDiOEC9L7pGvDH/Uid4uq9IOkLnBs1xeQOJl0lh/rHRbW/z0nkvrRKLG7zS QrrEB0PQm5RAapRoyR3IhgeYqL+29hWXBoXa+3dcLL5qIuZ20wx8ko+OckO19kX34dwa 7PEK2qnJLOFkY5NdalQCCRRgZaKwHixduXE/85T1S800BdMjhQPn5NNMSEdj5/BOm3E4 wMewCokRulv0lxM79eK9jL/AYu+KKx/cqfVkb1i7n8Eee3hhRzA3Ejvyk2BJHgqk4hxZ HNsVlqTE8k0c0kozN4WXUbV4cFD8UYGTBYzxGpATtSr1iJAIXZme/UBzLsHuu63CjJFt G60Q== X-Gm-Message-State: ALoCoQnLzrUX3HHILG+0LEm+qISFwZni7RKktXYkqL/ynXS+oQcW1NAysfp+VtVz8wUQ53QgwafU X-Received: by 10.112.13.200 with SMTP id j8mr31918253lbc.14.1435063397480; Tue, 23 Jun 2015 05:43:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.98 with SMTP id i2ls43217laa.50.gmail; Tue, 23 Jun 2015 05:43:17 -0700 (PDT) X-Received: by 10.112.161.197 with SMTP id xu5mr34547691lbb.69.1435063397334; Tue, 23 Jun 2015 05:43:17 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id k9si8952727lam.90.2015.06.23.05.43.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 05:43:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagx9 with SMTP id x9so5733623lag.1 for ; Tue, 23 Jun 2015 05:43:17 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr34169970lac.41.1435063397241; Tue, 23 Jun 2015 05:43:17 -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 hn6csp3048555lbb; Tue, 23 Jun 2015 05:43:16 -0700 (PDT) X-Received: by 10.55.21.219 with SMTP id 88mr72868275qkv.96.1435063393046; Tue, 23 Jun 2015 05:43:13 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g125si22007651qhc.41.2015.06.23.05.43.12; Tue, 23 Jun 2015 05:43:13 -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 4086F61E6E; Tue, 23 Jun 2015 12:43:12 +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 CC81A61DBD; Tue, 23 Jun 2015 12:43:04 +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 2D36B61E26; Tue, 23 Jun 2015 12:43:02 +0000 (UTC) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id 03A5E61E04 for ; Tue, 23 Jun 2015 12:42:37 +0000 (UTC) Received: by lacny3 with SMTP id ny3so5683050lac.3 for ; Tue, 23 Jun 2015 05:42:35 -0700 (PDT) X-Received: by 10.152.43.37 with SMTP id t5mr34123312lal.96.1435063355425; Tue, 23 Jun 2015 05:42:35 -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 bn2sm5527992lbc.47.2015.06.23.05.42.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jun 2015 05:42:34 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Tue, 23 Jun 2015 14:42:20 +0200 Message-Id: <1435063343-16657-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435063343-16657-1-git-send-email-christophe.milard@linaro.org> References: <1435063343-16657-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 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.47 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 --- 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(); +}