From patchwork Wed Jul 1 16:17:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50526 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 72855229DF for ; Wed, 1 Jul 2015 16:20:50 +0000 (UTC) Received: by lagh6 with SMTP id h6sf13524393lag.0 for ; Wed, 01 Jul 2015 09:20:49 -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=AC3ibPF4TPqZIukrnCvvr1ZZJ3vhET4surcmE76S8gc=; b=CJ0u7eiG8dQxIcvEQueA+DyVXLc5WVUeTvgQEVMEeKuu2mxkXmvsk+UpjayXp3klHT bpzESHO1+FBW86hxVhK4ZhZVSXm7pA6cm55psGCHfyU4dkz1VhImHKIRbu4q7nrRffp5 OKacCfxEJh9F6LAj/BHO4kTAKbcq22Tv/rnURpic/Re7V8g4xj+D1glzBJAe4n21CIM4 EpQz8K2sQsH3ebLS3krZMvMnSuMmgYCIrldeAA2R+aUvOIWs15/sbE/ttnrHdjkdW2Ca SAHnI5Gkp4AI5Y9bgJI2csxBPKM6lX6YtI9dp6KB/jPpry1BWZb/VaNnBAONXsS0AubB Un0g== X-Gm-Message-State: ALoCoQktbqMQH8jXb+3kevY8/IZPJKXCdK/xLT/UBGurIFToSbk0jK3Jbcs24dnMwS8G9umxbEi3 X-Received: by 10.112.118.194 with SMTP id ko2mr14837872lbb.16.1435767649429; Wed, 01 Jul 2015 09:20:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.225.129 with SMTP id rk1ls228912lac.71.gmail; Wed, 01 Jul 2015 09:20:49 -0700 (PDT) X-Received: by 10.112.93.37 with SMTP id cr5mr26354015lbb.106.1435767649276; Wed, 01 Jul 2015 09:20:49 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id jc6si2111706lac.71.2015.07.01.09.20.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 09:20:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbcui10 with SMTP id ui10so16081683lbc.0 for ; Wed, 01 Jul 2015 09:20:49 -0700 (PDT) X-Received: by 10.112.160.165 with SMTP id xl5mr26078080lbb.36.1435767649095; Wed, 01 Jul 2015 09:20:49 -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 hn6csp715743lbb; Wed, 1 Jul 2015 09:20:48 -0700 (PDT) X-Received: by 10.55.50.195 with SMTP id y186mr56079087qky.55.1435767647726; Wed, 01 Jul 2015 09:20:47 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a92si2820917qge.28.2015.07.01.09.20.47; Wed, 01 Jul 2015 09:20:47 -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 E829961F2B; Wed, 1 Jul 2015 16:20:46 +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 58B5461F46; Wed, 1 Jul 2015 16:18:16 +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 2962161F46; Wed, 1 Jul 2015 16:18:07 +0000 (UTC) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id 2BAB961F23 for ; Wed, 1 Jul 2015 16:17:37 +0000 (UTC) Received: by laar3 with SMTP id r3so44234000laa.0 for ; Wed, 01 Jul 2015 09:17:36 -0700 (PDT) X-Received: by 10.152.29.6 with SMTP id f6mr25451274lah.85.1435767456133; Wed, 01 Jul 2015 09:17:36 -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 o8sm627324laf.7.2015.07.01.09.17.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 09:17:35 -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 18:17:07 +0200 Message-Id: <1435767428-22409-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435767428-22409-1-git-send-email-christophe.milard@linaro.org> References: <1435767428-22409-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 4/5] validation: creating own dir for synchronizers 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.172 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 creating own dir and lib for synchronizers Signed-off-by: Christophe Milard --- configure.ac | 1 + test/validation/.gitignore | 1 - test/validation/Makefile.am | 9 +++------ test/validation/synchronizers/.gitignore | 2 ++ test/validation/synchronizers/Makefile.am | 8 ++++++++ .../{odp_synchronizers.c => synchronizers/synchronizers.c} | 10 +++------- test/validation/synchronizers/synchronizers.h | 7 +++++++ test/validation/synchronizers/synchronizers_main.c | 12 ++++++++++++ 8 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 test/validation/synchronizers/.gitignore create mode 100644 test/validation/synchronizers/Makefile.am rename test/validation/{odp_synchronizers.c => synchronizers/synchronizers.c} (99%) create mode 100644 test/validation/synchronizers/synchronizers.h create mode 100644 test/validation/synchronizers/synchronizers_main.c diff --git a/configure.ac b/configure.ac index d27e899..28dad3b 100644 --- a/configure.ac +++ b/configure.ac @@ -315,6 +315,7 @@ AC_CONFIG_FILES([Makefile test/validation/queue/Makefile test/validation/random/Makefile test/validation/scheduler/Makefile + test/validation/synchronizers/Makefile test/validation/system/Makefile test/validation/thread/Makefile test/miscellaneous/Makefile diff --git a/test/validation/.gitignore b/test/validation/.gitignore index 676f6f1..b208bac 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -2,5 +2,4 @@ *.trs odp_ver_abt_log_dbg odp_shared_memory -odp_synchronizers odp_timer diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 464cdc3..09bacf1 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -5,12 +5,12 @@ AM_CFLAGS += -I$(srcdir)/common AM_LDFLAGS += -static EXECUTABLES = odp_shared_memory$(EXEEXT) \ - odp_synchronizers$(EXEEXT) \ odp_timer$(EXEEXT) \ odp_ver_abt_log_dbg$(EXEEXT) if test_vald -TESTS = $(EXECUTABLES) +TESTS = $(EXECUTABLES) \ + synchronizers/synchronizers_main endif bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) @@ -19,10 +19,6 @@ ODP_CU_COMMON=common/odp_cunit_common.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto dist_odp_shared_memory_SOURCES = odp_shared_memory.c -odp_synchronizers_LDADD = \ - $(top_builddir)/test/validation/common/libcunit_common.a \ - $(LIB)/libodp.la -dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_timer_SOURCES = odp_timer.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 \ @@ -40,6 +36,7 @@ ODP_MODULES = buffer \ pool \ random \ scheduler \ + synchronizers \ system \ thread diff --git a/test/validation/synchronizers/.gitignore b/test/validation/synchronizers/.gitignore new file mode 100644 index 0000000..3e0ff4a --- /dev/null +++ b/test/validation/synchronizers/.gitignore @@ -0,0 +1,2 @@ +synchronizers_main +libsynchronizers.a diff --git a/test/validation/synchronizers/Makefile.am b/test/validation/synchronizers/Makefile.am new file mode 100644 index 0000000..ca412bb --- /dev/null +++ b/test/validation/synchronizers/Makefile.am @@ -0,0 +1,8 @@ +include ../Makefile.inc + +noinst_LIBRARIES = libsynchronizers.a +libsynchronizers_a_SOURCES = synchronizers.c + +bin_PROGRAMS = synchronizers_main$(EXEEXT) +dist_synchronizers_main_SOURCES = synchronizers_main.c +synchronizers_main_LDADD = libsynchronizers.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/odp_synchronizers.c b/test/validation/synchronizers/synchronizers.c similarity index 99% rename from test/validation/odp_synchronizers.c rename to test/validation/synchronizers/synchronizers.c index 45348d1..61c6026 100644 --- a/test/validation/odp_synchronizers.c +++ b/test/validation/synchronizers/synchronizers.c @@ -9,6 +9,8 @@ #include #include #include +#include "synchronizers.h" + #define VERBOSE 0 #define MAX_ITERATIONS 1000 #define BARRIER_ITERATIONS 64 @@ -1206,13 +1208,7 @@ static CU_SuiteInfo synchronizers_suites[] = { CU_SUITE_INFO_NULL }; -static int synchronizers_main(void) +int synchronizers_main(void) { return odp_cunit_run(synchronizers_suites); } - -/* the following main function will be separated when lib is created */ -int main(void) -{ - return synchronizers_main(); -} diff --git a/test/validation/synchronizers/synchronizers.h b/test/validation/synchronizers/synchronizers.h new file mode 100644 index 0000000..8890c3d --- /dev/null +++ b/test/validation/synchronizers/synchronizers.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int synchronizers_main(void); diff --git a/test/validation/synchronizers/synchronizers_main.c b/test/validation/synchronizers/synchronizers_main.c new file mode 100644 index 0000000..659d315 --- /dev/null +++ b/test/validation/synchronizers/synchronizers_main.c @@ -0,0 +1,12 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "synchronizers.h" + +int main(void) +{ + return synchronizers_main(); +}