From patchwork Wed Jul 8 14:11:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50881 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 3897A213FD for ; Wed, 8 Jul 2015 14:12:36 +0000 (UTC) Received: by wgfk9 with SMTP id k9sf71018081wgf.1 for ; Wed, 08 Jul 2015 07:12:35 -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=1g3ozQczXRaeR5wzyDfFG1D+MvwpVIGi1XCLkujHN1U=; b=Hwn7QCDAvhT/U/puYn3X6ulj1bCvZ4Ax5rnoraghm5x2kJGglQyIf8fSuKyyVirfz/ 3UR0dPtU/o8Xi5h+7SvpnBktNFVsTjJj0kCSigMC1FxF2LAR5B30XVeB2me5f1pXaaEa AqFKj2yoYHAbew7M+UIBI9zlnorxxRMNW9ZhD6144HBB2UQJmgNTnKSVND4a+Zo+VyO3 urc8ZMKSXsguBxt+k+H9NpGv+upu3B1XpWUhkVkvyANIWZZ59hdJGq++dBFY0WFISfG2 OU9ikGnGZUFh7Lcrd0RjykEixQi+9NLeI9t8rJDtrTYVbpMDxYmc9tdiA9y2f4eMUnXF Z1pw== X-Gm-Message-State: ALoCoQlEToy5LJ5VVI1RH6ulKfgs5lxV7uHPLtG0HZtdallhz1+wRUwHreB+la1CPFXhm5p58bdr X-Received: by 10.180.87.201 with SMTP id ba9mr20813401wib.3.1436364755564; Wed, 08 Jul 2015 07:12:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.201 with SMTP id di9ls961156lac.92.gmail; Wed, 08 Jul 2015 07:12:35 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr9909179lal.35.1436364755396; Wed, 08 Jul 2015 07:12:35 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id cr7si1785354lad.33.2015.07.08.07.12.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2015 07:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labgy5 with SMTP id gy5so73964562lab.2 for ; Wed, 08 Jul 2015 07:12:35 -0700 (PDT) X-Received: by 10.152.26.163 with SMTP id m3mr9777804lag.86.1436364755261; Wed, 08 Jul 2015 07:12:35 -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 hn6csp3128423lbb; Wed, 8 Jul 2015 07:12:34 -0700 (PDT) X-Received: by 10.140.98.238 with SMTP id o101mr16264421qge.12.1436364753974; Wed, 08 Jul 2015 07:12:33 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n82si2817525qha.82.2015.07.08.07.12.33; Wed, 08 Jul 2015 07:12:33 -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 40AA961EE1; Wed, 8 Jul 2015 14:12:33 +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 04C4B61DA2; Wed, 8 Jul 2015 14:12:03 +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 7355161D66; Wed, 8 Jul 2015 14:11:53 +0000 (UTC) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by lists.linaro.org (Postfix) with ESMTPS id 76A4961D5E for ; Wed, 8 Jul 2015 14:11:52 +0000 (UTC) Received: by lagc2 with SMTP id c2so223373154lag.3 for ; Wed, 08 Jul 2015 07:11:51 -0700 (PDT) X-Received: by 10.112.78.105 with SMTP id a9mr9772816lbx.70.1436364711084; Wed, 08 Jul 2015 07:11:51 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id zf3sm667823lbb.2.2015.07.08.07.11.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jul 2015 07:11:50 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 8 Jul 2015 16:11:37 +0200 Message-Id: <1436364701-27420-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436364701-27420-1-git-send-email-christophe.milard@linaro.org> References: <1436364701-27420-1-git-send-email-christophe.milard@linaro.org> X-Topics: timers patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 1/5] validation: own main in odp_timer.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.52 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_timer.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 28ed20d..470350c 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -15,6 +15,8 @@ bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) ODP_CU_COMMON=common/odp_cunit_common.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto +odp_timer_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_timer_SOURCES = odp_timer.c ODP_MODULES = buffer \ diff --git a/test/validation/odp_timer.c b/test/validation/odp_timer.c index 88f5208..bff585e 100644 --- a/test/validation/odp_timer.c +++ b/test/validation/odp_timer.c @@ -527,7 +527,7 @@ static void test_odp_timer_all(void) CU_PASS("ODP timer test"); } -CU_TestInfo test_odp_timer[] = { +static CU_TestInfo test_odp_timer[] = { {"test_timeout_pool_alloc", test_timeout_pool_alloc}, {"test_timeout_pool_free", test_timeout_pool_free}, {"test_odp_timer_cancel", test_odp_timer_cancel}, @@ -535,7 +535,18 @@ CU_TestInfo test_odp_timer[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo timer_suites[] = { {"Timer", NULL, NULL, NULL, NULL, test_odp_timer}, CU_SUITE_INFO_NULL, }; + +static int timer_main(void) +{ + return odp_cunit_run(timer_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return timer_main(); +}