From patchwork Wed Jul 1 08:19:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50509 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ACB1A214B3 for ; Wed, 1 Jul 2015 08:20:32 +0000 (UTC) Received: by lbcpe5 with SMTP id pe5sf3628116lbc.3 for ; Wed, 01 Jul 2015 01:20:31 -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=gJfrooFRve6GQ71ty8/ydqe38ReRoSSXDco/3qkEHuA=; b=k4WyDd+b5vAV2W1Z2qSLGjUgjP0oARTpSW7R31v53zG3vWI7f39zzjp1TKciuVzsL1 KG3LaxHtOJgD/Y+Nr562VzudtcldxtX8VyfMMjFVNn3/sZb+AAtwekttFnd/8b86urUC DDaYL15TiA3/zB+cHZrDWPancBjQAM86GFFcO7ZAKqHBML23fQLNgjXIHs4MtZsZD4KB swz2/JXCyTd8qB6zl8wbo0OjM0NftFgJxCsk3rt6dd5A90e078Yj2foV5R7NJ8RGGhBE ZdpNtH8fgokR2NRuGigDGAb2DWUcN16tXxKfeov1yk23QHvJ2QXc05Ozi3TU5hs1UhDP 557g== X-Gm-Message-State: ALoCoQlmHDRwDwxAxMlw0itzaVDXb1rSBZ3loYJN68lRomJ/Kl94sMLg86OUIhPKJHxQGOpDZU34 X-Received: by 10.194.90.6 with SMTP id bs6mr5528253wjb.4.1435738831742; Wed, 01 Jul 2015 01:20:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.7 with SMTP id v7ls148750laa.75.gmail; Wed, 01 Jul 2015 01:20:31 -0700 (PDT) X-Received: by 10.152.29.6 with SMTP id f6mr23273832lah.85.1435738831576; Wed, 01 Jul 2015 01:20:31 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id 4si1022507lar.151.2015.07.01.01.20.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 01:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbpo10 with SMTP id po10so8117579lbb.3 for ; Wed, 01 Jul 2015 01:20:31 -0700 (PDT) X-Received: by 10.152.1.40 with SMTP id 8mr24390066laj.56.1435738831477; Wed, 01 Jul 2015 01:20:31 -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 hn6csp435743lbb; Wed, 1 Jul 2015 01:20:30 -0700 (PDT) X-Received: by 10.55.22.161 with SMTP id 33mr52202329qkw.11.1435738830248; Wed, 01 Jul 2015 01:20:30 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 134si1359947qhs.73.2015.07.01.01.20.25; Wed, 01 Jul 2015 01:20:30 -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 9DEA461F15; Wed, 1 Jul 2015 08:20:25 +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_H2, 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 03EDA61E41; Wed, 1 Jul 2015 08:19:51 +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 93F5D61DCE; Wed, 1 Jul 2015 08:19:48 +0000 (UTC) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by lists.linaro.org (Postfix) with ESMTPS id 998DC61D7B for ; Wed, 1 Jul 2015 08:19:47 +0000 (UTC) Received: by lbnk3 with SMTP id k3so8123426lbn.1 for ; Wed, 01 Jul 2015 01:19:46 -0700 (PDT) X-Received: by 10.112.55.70 with SMTP id q6mr21311913lbp.99.1435738786609; Wed, 01 Jul 2015 01:19:46 -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 x4sm286638lag.40.2015.07.01.01.19.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 01:19:45 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 1 Jul 2015 10:19:29 +0200 Message-Id: <1435738773-31515-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435738773-31515-1-git-send-email-christophe.milard@linaro.org> References: <1435738773-31515-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 1/5] validation: own main in odp_thread.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.217.177 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_thread.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index a3efffe..52dc963 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -24,6 +24,8 @@ dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_timer_SOURCES = odp_timer.c dist_odp_cpumask_SOURCES = odp_cpumask.c +odp_thread_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_thread_SOURCES = odp_thread.c odp_ver_abt_log_dbg_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/ver_abt_log_dbg dist_odp_ver_abt_log_dbg_SOURCES = ver_abt_log_dbg/odp_system.c \ diff --git a/test/validation/odp_thread.c b/test/validation/odp_thread.c index 84db1e7..96d624c 100644 --- a/test/validation/odp_thread.c +++ b/test/validation/odp_thread.c @@ -28,14 +28,25 @@ static void test_odp_thread_count(void) CU_PASS(); } -CU_TestInfo test_odp_thread[] = { +static CU_TestInfo test_odp_thread[] = { _CU_TEST_INFO(test_odp_cpu_id), _CU_TEST_INFO(test_odp_thread_id), _CU_TEST_INFO(test_odp_thread_count), CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo thread_suites[] = { {"thread", NULL, NULL, NULL, NULL, test_odp_thread}, CU_SUITE_INFO_NULL, }; + +static int thread_main(void) +{ + return odp_cunit_run(thread_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return thread_main(); +}