From patchwork Fri Jun 26 15:01:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50359 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1346F228FD for ; Fri, 26 Jun 2015 15:06:13 +0000 (UTC) Received: by wiea6 with SMTP id a6sf6147386wie.1 for ; Fri, 26 Jun 2015 08:06:12 -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=rtAFQMzK22mrMzFozX0LvZsX2wUhlPN+7Fek8/AtpZI=; b=ShCRtTL1It2Rtrkoo1uWFyFPD4VsCCk73kjuKZ0KafbNUXC4PApY4sGplSvwym6OGp MF10B2h/7frCGUslXjzR+NvMCSa/D6ie3bRWjU+6Ugcy27YR2H4eikx4GHkaVwIuyKEM 3+hLB+Aw8zWgtRuprGNWVNE2oxI8Ed9XOj8/DBS+hdCtsBFnuw2ZKJ2bq+DVUIx0gQEc RxdGoLS9TmYJbAeoHmvCoWlpWd6vgdatkvdaVUvX+9YnGk4h6lWOJkczs+h+CO6Nei0s Xi78PGdbUZ2uVAgtt1TBi4ahvt4hJBcs/TGZkYac1fkJEAoUizBzc8p/C+I33+WhC4ro brDg== X-Gm-Message-State: ALoCoQlmq/dv2E+oh/0CHueh4555wFaPp2fN0flOvKw+3AMjoNO3AwOYHP18sM3IQSYmX3R5W6mF X-Received: by 10.180.86.98 with SMTP id o2mr2185473wiz.4.1435331172399; Fri, 26 Jun 2015 08:06:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.18.199 with SMTP id y7ls440501lad.47.gmail; Fri, 26 Jun 2015 08:06:12 -0700 (PDT) X-Received: by 10.152.42.230 with SMTP id r6mr1839123lal.30.1435331172089; Fri, 26 Jun 2015 08:06:12 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id jx2si27620802lbc.124.2015.06.26.08.06.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 08:06:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbvz5 with SMTP id vz5so66296529lbb.0 for ; Fri, 26 Jun 2015 08:06:11 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr2043869lbb.35.1435331171667; Fri, 26 Jun 2015 08:06:11 -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 hn6csp1388579lbb; Fri, 26 Jun 2015 08:06:10 -0700 (PDT) X-Received: by 10.140.196.129 with SMTP id r123mr2969762qha.93.1435331170320; Fri, 26 Jun 2015 08:06:10 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z108si33174054qge.74.2015.06.26.08.05.40; Fri, 26 Jun 2015 08:06:10 -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 1EEAF61CE1; Fri, 26 Jun 2015 15:05:40 +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 AC77162113; Fri, 26 Jun 2015 15:02:48 +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 B84D962109; Fri, 26 Jun 2015 15:02:44 +0000 (UTC) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id CF21461D60 for ; Fri, 26 Jun 2015 15:02:15 +0000 (UTC) Received: by laar3 with SMTP id r3so3494603laa.0 for ; Fri, 26 Jun 2015 08:02:14 -0700 (PDT) X-Received: by 10.112.148.166 with SMTP id tt6mr1967795lbb.11.1435330934745; Fri, 26 Jun 2015 08:02:14 -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 q17sm5380493lal.37.2015.06.26.08.02.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jun 2015 08:02:13 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 26 Jun 2015 17:01:49 +0200 Message-Id: <1435330910-15536-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435330910-15536-1-git-send-email-christophe.milard@linaro.org> References: <1435330910-15536-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 and lib for buffer 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.170 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 Module buffer now gets its own directory and create its own lib (currentely only containing its executable) Signed-off-by: Christophe Milard --- configure.ac | 1 + test/validation/.gitignore | 1 - test/validation/Makefile.am | 13 +++++-------- test/validation/buffer/.gitignore | 2 ++ test/validation/buffer/Makefile.am | 8 ++++++++ test/validation/{odp_buffer.c => buffer/buffer.c} | 9 ++------- test/validation/buffer/buffer.h | 7 +++++++ test/validation/buffer/buffer_main.c | 11 +++++++++++ 8 files changed, 36 insertions(+), 16 deletions(-) create mode 100644 test/validation/buffer/.gitignore create mode 100644 test/validation/buffer/Makefile.am rename test/validation/{odp_buffer.c => buffer/buffer.c} (96%) create mode 100644 test/validation/buffer/buffer.h create mode 100644 test/validation/buffer/buffer_main.c diff --git a/configure.ac b/configure.ac index 67f3799..6bbbb11 100644 --- a/configure.ac +++ b/configure.ac @@ -303,6 +303,7 @@ AC_CONFIG_FILES([Makefile test/api_test/Makefile test/performance/Makefile test/validation/Makefile + test/validation/buffer/Makefile test/validation/classification/Makefile test/validation/common/Makefile test/validation/crypto/Makefile diff --git a/test/validation/.gitignore b/test/validation/.gitignore index 5346297..e1fb4f1 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -1,7 +1,6 @@ *.log *.trs odp_ver_abt_log_dbg -odp_buffer odp_cpumask odp_scheduler odp_shared_memory diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index c9aac49..2fb6195 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -4,8 +4,7 @@ include $(top_srcdir)/test/Makefile.inc AM_CFLAGS += -I$(srcdir)/common AM_LDFLAGS += -static -EXECUTABLES = odp_buffer \ - odp_cpumask \ +EXECUTABLES = odp_cpumask \ odp_scheduler \ odp_shared_memory \ odp_synchronizers \ @@ -14,17 +13,14 @@ EXECUTABLES = odp_buffer \ odp_ver_abt_log_dbg if test_vald -TESTS = $(EXECUTABLES) +TESTS = $(EXECUTABLES) \ + buffer/buffer_main endif bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) ODP_CU_COMMON=common/odp_cunit_common.c -odp_buffer_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/buffer -odp_buffer_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ - $(LIB)/libodp.la -dist_odp_buffer_SOURCES = odp_buffer.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto odp_random_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ $(LIB)/libodp.la @@ -39,7 +35,8 @@ dist_odp_ver_abt_log_dbg_SOURCES = ver_abt_log_dbg/odp_system.c \ ver_abt_log_dbg/odp_errno.c \ ver_abt_log_dbg/odp_ver_abt_log_dbg.c -ODP_MODULES = classification \ +ODP_MODULES = buffer \ + classification \ crypto \ init \ queue \ diff --git a/test/validation/buffer/.gitignore b/test/validation/buffer/.gitignore new file mode 100644 index 0000000..01a6b36 --- /dev/null +++ b/test/validation/buffer/.gitignore @@ -0,0 +1,2 @@ +buffer_main +libbuffer.a diff --git a/test/validation/buffer/Makefile.am b/test/validation/buffer/Makefile.am new file mode 100644 index 0000000..758c5fb --- /dev/null +++ b/test/validation/buffer/Makefile.am @@ -0,0 +1,8 @@ +include ../Makefile.inc + +noinst_LIBRARIES = libbuffer.a +libbuffer_a_SOURCES = buffer.c + +bin_PROGRAMS = buffer_main +dist_buffer_main_SOURCES = buffer_main.c +buffer_main_LDADD = libbuffer.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/odp_buffer.c b/test/validation/buffer/buffer.c similarity index 96% rename from test/validation/odp_buffer.c rename to test/validation/buffer/buffer.c index 65fa0d8..d0fd510 100644 --- a/test/validation/odp_buffer.c +++ b/test/validation/buffer/buffer.c @@ -6,6 +6,7 @@ #include #include "odp_cunit_common.h" +#include "buffer.h" /* Helper macro for CU_TestInfo initialization */ #define _CU_TEST_INFO(test_func) {#test_func, test_func} @@ -157,13 +158,7 @@ static CU_SuiteInfo buffer_suites[] = { CU_SUITE_INFO_NULL, }; -static int buffer_main(void) +int buffer_main(void) { return odp_cunit_run(buffer_suites); } - -/* the following main function will be separated when lib is created */ -int main(void) -{ - return buffer_main(); -} diff --git a/test/validation/buffer/buffer.h b/test/validation/buffer/buffer.h new file mode 100644 index 0000000..44d05a2 --- /dev/null +++ b/test/validation/buffer/buffer.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int buffer_main(void); diff --git a/test/validation/buffer/buffer_main.c b/test/validation/buffer/buffer_main.c new file mode 100644 index 0000000..b9b5146 --- /dev/null +++ b/test/validation/buffer/buffer_main.c @@ -0,0 +1,11 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ +#include "buffer.h" + +int main(void) +{ + return buffer_main(); +}