From patchwork Fri Jul 3 15:45:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50641 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8910422916 for ; Fri, 3 Jul 2015 15:47:03 +0000 (UTC) Received: by wguu7 with SMTP id u7sf31358422wgu.0 for ; Fri, 03 Jul 2015 08:47:02 -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=z1+eElXOoeOmVuPliHm3/p1n1yvzNiXjKIDDo4onRpw=; b=DMgBqkcO6V1f6ad6lmJ+czqmL6WvMbOP3vI2rhnsbS2dy8YhvzmkdvYwwfoHTUjU0d XBYEt8V29OgLwE4xoIo9t7BsATuJXOsfhHgtcI0ZPBevsAUM/blGPlsaY51KpJBF3rZt veiMly6BJfLMu81oEbWbGmrKtK5sgy3TQaMEDE+BXUnGaszA2WYm8A/C4K9ohys0OxbZ 74BXObfCFwRtcnRnV2kPxv6d6/in83ynM6WgEGD9oBvWMe2JDlORXRDS8PIPf6uKHQtG Ua3HbNVjBLqbmttcEz7cfwetDR4p1B4jyCVXBHZV07KBGRG3Kpf30mEeqrgHg3IVO1Cf PPlQ== X-Gm-Message-State: ALoCoQl6Qx5HmVw+J4q/Wc86LixoBNHoS1qDgsf4d3dnPj4iLKDu9TedPSciWVAJ9EhcZPMtpHGs X-Received: by 10.112.142.67 with SMTP id ru3mr22807041lbb.1.1435938422807; Fri, 03 Jul 2015 08:47:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.131 with SMTP id o3ls547210lal.101.gmail; Fri, 03 Jul 2015 08:47:02 -0700 (PDT) X-Received: by 10.112.73.33 with SMTP id i1mr25424922lbv.31.1435938422536; Fri, 03 Jul 2015 08:47:02 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id ez3si7524664lbc.86.2015.07.03.08.47.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jul 2015 08:47:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagx9 with SMTP id x9so89722771lag.1 for ; Fri, 03 Jul 2015 08:47:02 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr37305203lbc.32.1435938422108; Fri, 03 Jul 2015 08:47:02 -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 hn6csp113252lbb; Fri, 3 Jul 2015 08:47:01 -0700 (PDT) X-Received: by 10.140.87.5 with SMTP id q5mr51209149qgd.3.1435938420705; Fri, 03 Jul 2015 08:47:00 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 73si10737078qkw.127.2015.07.03.08.46.30; Fri, 03 Jul 2015 08:47:00 -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 7F10A61D12; Fri, 3 Jul 2015 15:46:30 +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 DC0DB61D39; Fri, 3 Jul 2015 15:46:01 +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 56B1161D12; Fri, 3 Jul 2015 15:45:57 +0000 (UTC) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id 2C5C961CAF for ; Fri, 3 Jul 2015 15:45:56 +0000 (UTC) Received: by lagc2 with SMTP id c2so89741809lag.3 for ; Fri, 03 Jul 2015 08:45:54 -0700 (PDT) X-Received: by 10.112.119.230 with SMTP id kx6mr27253246lbb.9.1435938354561; Fri, 03 Jul 2015 08:45:54 -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 fb5sm2416637lbc.35.2015.07.03.08.45.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jul 2015 08:45:53 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 3 Jul 2015 17:45:36 +0200 Message-Id: <1435938340-7512-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435938340-7512-1-git-send-email-christophe.milard@linaro.org> References: <1435938340-7512-1-git-send-email-christophe.milard@linaro.org> X-Topics: timers patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 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.54 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_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(); +}