From patchwork Fri Jul 3 15:45:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50644 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3CDDC22916 for ; Fri, 3 Jul 2015 15:48:25 +0000 (UTC) Received: by lagx9 with SMTP id x9sf29683654lag.2 for ; Fri, 03 Jul 2015 08:48:24 -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=vxKDFFmCjiwGC+jXMxOPKB3noSFYJ+OXSlmlPxG5+bw=; b=AzM+2UwpVxrdmRbmchFS6YG8msWDfIjseEBBbxXnnS9vK44cXF2opw7s3zGcsPNZw9 MQcVJszqsqmrKV8wMkoGoeWLcwgV11FECVhxIeBNimciYDmjiDRrM5OIxdT9hNH40/NL MJwKm6yQHkLF8s9V4W/OhkH/Yj7hCMkSX9uf2KOgb3Zwf9pOi3BYDOPnx2cSHh/fYJbk UBZ3pqVbFk4GnSoIToUpOvJjj5JZQ0Ch91xFc0NWU5zga1s41n4BKh/ykbhO1teCqMs7 aWlU9dBNTsFc39Gfng72FaFYEYd0yOvAKWIcOjOtx+mKzrXSPiJJPBYnY1KEx86YZPcp MXCw== X-Gm-Message-State: ALoCoQnulIMMYZvZTwuZkBvS1AbXjiTKMpY0bVwGBG2fMD4R7m1m41QjoBgPvlp4THe5uCM2gCQ+ X-Received: by 10.180.182.49 with SMTP id eb17mr20802645wic.2.1435938504083; Fri, 03 Jul 2015 08:48:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.35 with SMTP id cj3ls511796lad.7.gmail; Fri, 03 Jul 2015 08:48:23 -0700 (PDT) X-Received: by 10.112.157.100 with SMTP id wl4mr36526254lbb.20.1435938503787; Fri, 03 Jul 2015 08:48:23 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id ro2si7514254lbb.135.2015.07.03.08.48.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jul 2015 08:48:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lagh6 with SMTP id h6so89694806lag.2 for ; Fri, 03 Jul 2015 08:48:23 -0700 (PDT) X-Received: by 10.112.234.200 with SMTP id ug8mr36239015lbc.117.1435938503212; Fri, 03 Jul 2015 08:48:23 -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 hn6csp113925lbb; Fri, 3 Jul 2015 08:48:22 -0700 (PDT) X-Received: by 10.140.84.137 with SMTP id l9mr43114511qgd.94.1435938501737; Fri, 03 Jul 2015 08:48:21 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 199si10729637qhw.116.2015.07.03.08.48.19; Fri, 03 Jul 2015 08:48:21 -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 41ADA61D23; Fri, 3 Jul 2015 15:48:19 +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 0F47262059; Fri, 3 Jul 2015 15:46:37 +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 42B9B61D23; Fri, 3 Jul 2015 15:46:28 +0000 (UTC) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by lists.linaro.org (Postfix) with ESMTPS id B9BF861CF6 for ; Fri, 3 Jul 2015 15:46:00 +0000 (UTC) Received: by lagc2 with SMTP id c2so89744147lag.3 for ; Fri, 03 Jul 2015 08:45:59 -0700 (PDT) X-Received: by 10.152.43.110 with SMTP id v14mr36477166lal.4.1435938359643; Fri, 03 Jul 2015 08:45:59 -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.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jul 2015 08:45:58 -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:39 +0200 Message-Id: <1435938340-7512-5-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 4/5] validation: creating own dir and lib for timer 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.48 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 --- configure.ac | 1 + test/validation/.gitignore | 1 - test/validation/Makefile.am | 9 ++------- test/validation/timer/.gitignore | 2 ++ test/validation/timer/Makefile.am | 8 ++++++++ test/validation/{odp_timer.c => timer/timer.c} | 9 ++------- test/validation/timer/timer.h | 7 +++++++ test/validation/timer/timer_main.c | 12 ++++++++++++ 8 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 test/validation/timer/.gitignore create mode 100644 test/validation/timer/Makefile.am rename test/validation/{odp_timer.c => timer/timer.c} (99%) create mode 100644 test/validation/timer/timer.h create mode 100644 test/validation/timer/timer_main.c diff --git a/configure.ac b/configure.ac index 05719a2..e32a6fa 100644 --- a/configure.ac +++ b/configure.ac @@ -319,6 +319,7 @@ AC_CONFIG_FILES([Makefile test/validation/synchronizers/Makefile test/validation/thread/Makefile test/validation/time/Makefile + test/validation/timer/Makefile test/validation/shmem/Makefile test/validation/system/Makefile test/miscellaneous/Makefile diff --git a/test/validation/.gitignore b/test/validation/.gitignore index 1a5eb04..7e563b8 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -1,3 +1,2 @@ *.log *.trs -odp_timer diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 470350c..764bf64 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -4,20 +4,14 @@ include $(top_srcdir)/test/Makefile.inc AM_CFLAGS += -I$(srcdir)/common AM_LDFLAGS += -static -EXECUTABLES = odp_timer$(EXEEXT) - if test_vald -TESTS = $(EXECUTABLES) +TESTS = timer/timer_main endif -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 \ classification \ @@ -34,6 +28,7 @@ ODP_MODULES = buffer \ synchronizers \ thread \ time \ + timer \ shmem \ system diff --git a/test/validation/timer/.gitignore b/test/validation/timer/.gitignore new file mode 100644 index 0000000..56792c4 --- /dev/null +++ b/test/validation/timer/.gitignore @@ -0,0 +1,2 @@ +timer_main +libtimer.a diff --git a/test/validation/timer/Makefile.am b/test/validation/timer/Makefile.am new file mode 100644 index 0000000..0db4986 --- /dev/null +++ b/test/validation/timer/Makefile.am @@ -0,0 +1,8 @@ +include ../Makefile.inc + +noinst_LIBRARIES = libtimer.a +libtimer_a_SOURCES = timer.c + +bin_PROGRAMS = timer_main$(EXEEXT) +dist_timer_main_SOURCES = timer_main.c +timer_main_LDADD = libtimer.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/odp_timer.c b/test/validation/timer/timer.c similarity index 99% rename from test/validation/odp_timer.c rename to test/validation/timer/timer.c index 9efb360..fb630b3 100644 --- a/test/validation/odp_timer.c +++ b/test/validation/timer/timer.c @@ -14,6 +14,7 @@ #include #include "odp_cunit_common.h" #include "test_debug.h" +#include "timer.h" /** @private Timeout range in milliseconds (ms) */ #define RANGE_MS 2000 @@ -543,13 +544,7 @@ static CU_SuiteInfo timer_suites[] = { CU_SUITE_INFO_NULL, }; -static int timer_main(void) +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(); -} diff --git a/test/validation/timer/timer.h b/test/validation/timer/timer.h new file mode 100644 index 0000000..b18af80 --- /dev/null +++ b/test/validation/timer/timer.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int timer_main(void); diff --git a/test/validation/timer/timer_main.c b/test/validation/timer/timer_main.c new file mode 100644 index 0000000..24eb77b --- /dev/null +++ b/test/validation/timer/timer_main.c @@ -0,0 +1,12 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "timer.h" + +int main(void) +{ + return timer_main(); +}