From patchwork Thu Jun 25 10:50:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50314 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3175E228FC for ; Thu, 25 Jun 2015 10:53:20 +0000 (UTC) Received: by laka10 with SMTP id a10sf18050531lak.2 for ; Thu, 25 Jun 2015 03:53:19 -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=DIqe661+hZhbMbvquOkp6JJ2mB/+YXRYeGCZ2ARwOKY=; b=IPNF5mT71bnB+aP2NY/Er6gdclvOnAGG5rfixsQu1SW5oMqubcy1uuCJbO4zLPg6x8 1uwPEvDWI0LQLTM5kfVZBXz8AFEW0Ad61ADRMFPMdmRabM/2XLoGFkaSZ8+WpbYbxdaG TcZEmM2hbGBS9wQZfHwVDRTrN5DvmhbxpwVWpJ1BRYFFiif295vJBKn3uPkBQ3RJmhQb UC3+JaJUhxIjty3u9gvIXtqTccbye2hD+urCIu/bdpHIiY8G3t8bav0Z+A1yS3RcXSa2 tKxkjIfk8f7fUDXa4Z9AJbAdk7oMnJ5vxyd9d371l3HGmUxczNk3BhVVU+wtSvVrqxRz ORuA== X-Gm-Message-State: ALoCoQkNGHzSSPCYYUtgey0/SgbMD1gvYDlozk/iTTGa+GP/0pvGOna/gfqbFJUrg+Sa1XgfUxVI X-Received: by 10.180.105.226 with SMTP id gp2mr1984795wib.1.1435229599197; Thu, 25 Jun 2015 03:53:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.224.162 with SMTP id rd2ls315161lac.84.gmail; Thu, 25 Jun 2015 03:53:18 -0700 (PDT) X-Received: by 10.152.197.2 with SMTP id iq2mr44461855lac.103.1435229598833; Thu, 25 Jun 2015 03:53:18 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id qb5si24395679lbb.28.2015.06.25.03.53.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 03:53:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by laka10 with SMTP id a10so42559699lak.0 for ; Thu, 25 Jun 2015 03:53:18 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr43764811lay.72.1435229598705; Thu, 25 Jun 2015 03:53:18 -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 hn6csp514871lbb; Thu, 25 Jun 2015 03:53:17 -0700 (PDT) X-Received: by 10.140.100.162 with SMTP id s31mr57542131qge.36.1435229597355; Thu, 25 Jun 2015 03:53:17 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l66si28933960qgl.9.2015.06.25.03.53.16; Thu, 25 Jun 2015 03:53:17 -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 8147961DA0; Thu, 25 Jun 2015 10:53:16 +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_H2, 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 F30E861E82; Thu, 25 Jun 2015 10:51:27 +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 8D56F61D90; Thu, 25 Jun 2015 10:51:17 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by lists.linaro.org (Postfix) with ESMTPS id 365F061C6B for ; Thu, 25 Jun 2015 10:50:53 +0000 (UTC) Received: by lbbpo10 with SMTP id po10so42980966lbb.3 for ; Thu, 25 Jun 2015 03:50:52 -0700 (PDT) X-Received: by 10.112.25.39 with SMTP id z7mr45204914lbf.102.1435229452162; Thu, 25 Jun 2015 03:50:52 -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 j1sm7123460lbc.15.2015.06.25.03.50.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 03:50:51 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 25 Jun 2015 12:50:33 +0200 Message-Id: <1435229434-25384-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435229434-25384-1-git-send-email-christophe.milard@linaro.org> References: <1435229434-25384-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 queue 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.45 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 queue 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 | 8 +++----- test/validation/queue/.gitignore | 2 ++ test/validation/queue/Makefile.am | 8 ++++++++ test/validation/{odp_queue.c => queue/queue.c} | 9 ++------- test/validation/queue/queue.h | 7 +++++++ test/validation/queue/queue_main.c | 12 ++++++++++++ 8 files changed, 35 insertions(+), 13 deletions(-) create mode 100644 test/validation/queue/.gitignore create mode 100644 test/validation/queue/Makefile.am rename test/validation/{odp_queue.c => queue/queue.c} (95%) create mode 100644 test/validation/queue/queue.h create mode 100644 test/validation/queue/queue_main.c diff --git a/configure.ac b/configure.ac index f58b472..2aa804d 100644 --- a/configure.ac +++ b/configure.ac @@ -308,6 +308,7 @@ AC_CONFIG_FILES([Makefile test/validation/crypto/Makefile test/validation/init/Makefile test/validation/pktio/Makefile + test/validation/queue/Makefile test/validation/random/Makefile test/validation/system/Makefile test/miscellaneous/Makefile diff --git a/test/validation/.gitignore b/test/validation/.gitignore index 067914f..a8faaa2 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -5,7 +5,6 @@ odp_buffer odp_cpumask odp_packet odp_pool -odp_queue odp_scheduler odp_shared_memory odp_synchronizers diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 1c6c10d..1470944 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -8,7 +8,6 @@ EXECUTABLES = odp_buffer \ odp_cpumask \ odp_packet \ odp_pool \ - odp_queue \ odp_scheduler \ odp_shared_memory \ odp_synchronizers \ @@ -17,7 +16,8 @@ EXECUTABLES = odp_buffer \ odp_ver_abt_log_dbg if test_vald -TESTS = $(EXECUTABLES) +TESTS = $(EXECUTABLES) \ + queue/queue_main endif bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) @@ -27,9 +27,6 @@ ODP_CU_COMMON=common/odp_cunit_common.c odp_buffer_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/buffer dist_odp_buffer_SOURCES = odp_buffer.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto -odp_queue_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ - $(LIB)/libodp.la -dist_odp_queue_SOURCES = odp_queue.c odp_random_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ $(LIB)/libodp.la dist_odp_scheduler_SOURCES = odp_scheduler.c @@ -48,6 +45,7 @@ dist_odp_ver_abt_log_dbg_SOURCES = ver_abt_log_dbg/odp_system.c \ ODP_MODULES = classification \ crypto \ init \ + queue \ pktio \ random \ system diff --git a/test/validation/queue/.gitignore b/test/validation/queue/.gitignore new file mode 100644 index 0000000..c9e4029 --- /dev/null +++ b/test/validation/queue/.gitignore @@ -0,0 +1,2 @@ +libqueue.a +queue_main diff --git a/test/validation/queue/Makefile.am b/test/validation/queue/Makefile.am new file mode 100644 index 0000000..93acd3c --- /dev/null +++ b/test/validation/queue/Makefile.am @@ -0,0 +1,8 @@ +include ../Makefile.inc + +noinst_LIBRARIES = libqueue.a +libqueue_a_SOURCES = queue.c + +bin_PROGRAMS = queue_main +dist_queue_main_SOURCES = queue_main.c +queue_main_LDADD = libqueue.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/odp_queue.c b/test/validation/queue/queue.c similarity index 95% rename from test/validation/odp_queue.c rename to test/validation/queue/queue.c index cf6f328..f686b71 100644 --- a/test/validation/odp_queue.c +++ b/test/validation/queue/queue.c @@ -6,6 +6,7 @@ #include #include +#include "queue.h" #define MAX_BUFFER_QUEUE (8) #define MSG_POOL_SIZE (4 * 1024 * 1024) @@ -117,13 +118,7 @@ static CU_SuiteInfo queue_suites[] = { CU_SUITE_INFO_NULL, }; -static int queue_main(void) +int queue_main(void) { return odp_cunit_run(queue_suites); } - -/* the following main function will be separated when lib is created */ -int main(void) -{ - return queue_main(); -} diff --git a/test/validation/queue/queue.h b/test/validation/queue/queue.h new file mode 100644 index 0000000..3e9a9f1 --- /dev/null +++ b/test/validation/queue/queue.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int queue_main(void); diff --git a/test/validation/queue/queue_main.c b/test/validation/queue/queue_main.c new file mode 100644 index 0000000..326f131 --- /dev/null +++ b/test/validation/queue/queue_main.c @@ -0,0 +1,12 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "queue.h" + +int main(void) +{ + return queue_main(); +}