From patchwork Fri Jun 26 11:09:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50343 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 406D5228FD for ; Fri, 26 Jun 2015 11:15:20 +0000 (UTC) Received: by widjy10 with SMTP id jy10sf3326585wid.3 for ; Fri, 26 Jun 2015 04:15: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=PGqzfn2Bymmz8+Lm7kIGK11kLdxxXIRnX5KRtvogc2o=; b=PkcGmQy/68wQjLLtb7f8FWTA1bM9VGkRuB5LNOzSsmEaMMxUhEkVOZVN7COM4ADf2V fWl5oBo54SyaHpHo4f1HscfhhjcXTcRK5VdtCmlqdKTuuwvuEwtMaJ7t6xTx0DGDKFY2 g6NSjnLnKXKscpc5vZXPzWihwixMHYViCxdtPx+mEiWvYOMHXih6YlTTrQ53yMg9rF0R m71dkO57BLjUOlX/2rFXR3964QAOeq7M8HqEWclN9/XBjNinWMQ/Eonig0tgoTcNtRvv 74VBjvkH4GlYTJFA2mVzj1UAiDoyJbATMhse4cd+4PUUOkgGC086w3ncrZQEZpGOM0Jn mZMw== X-Gm-Message-State: ALoCoQmehduOuWp0sUwYuQJuAOXaVXQRAB4czwUmgX0PSn7eAMHz4GtrYVwogI+r9d94CCSvfXIH X-Received: by 10.112.26.5 with SMTP id h5mr809333lbg.4.1435317319486; Fri, 26 Jun 2015 04:15:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.136 with SMTP id kq8ls91112lac.32.gmail; Fri, 26 Jun 2015 04:15:19 -0700 (PDT) X-Received: by 10.112.180.201 with SMTP id dq9mr1149278lbc.78.1435317319254; Fri, 26 Jun 2015 04:15:19 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id p6si12054105laj.67.2015.06.26.04.15.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 04:15:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by laka10 with SMTP id a10so61598389lak.0 for ; Fri, 26 Jun 2015 04:15:19 -0700 (PDT) X-Received: by 10.112.93.37 with SMTP id cr5mr1123597lbb.106.1435317319018; Fri, 26 Jun 2015 04:15:19 -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 hn6csp1243456lbb; Fri, 26 Jun 2015 04:15:18 -0700 (PDT) X-Received: by 10.55.48.11 with SMTP id w11mr2121638qkw.61.1435317317700; Fri, 26 Jun 2015 04:15:17 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y39si32518272qgy.79.2015.06.26.04.15.15; Fri, 26 Jun 2015 04:15: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 3AD4762102; Fri, 26 Jun 2015 11:15:15 +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 B77BC620F8; Fri, 26 Jun 2015 11:12:58 +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 9C16562108; Fri, 26 Jun 2015 11:12:44 +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 92B1F62106 for ; Fri, 26 Jun 2015 11:10:01 +0000 (UTC) Received: by lacny3 with SMTP id ny3so61368721lac.3 for ; Fri, 26 Jun 2015 04:10:00 -0700 (PDT) X-Received: by 10.112.25.69 with SMTP id a5mr1111714lbg.16.1435316999974; Fri, 26 Jun 2015 04:09: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 ja1sm8073835lbc.38.2015.06.26.04.09.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jun 2015 04:09:59 -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 13:09:40 +0200 Message-Id: <1435316981-22355-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435316981-22355-1-git-send-email-christophe.milard@linaro.org> References: <1435316981-22355-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 packet 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.42 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 packet 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/packet/.gitignore | 2 ++ test/validation/packet/Makefile.am | 8 ++++++++ test/validation/{odp_packet.c => packet/packet.c} | 9 ++------- test/validation/packet/packet.h | 7 +++++++ test/validation/packet/packet_main.c | 12 ++++++++++++ 8 files changed, 35 insertions(+), 13 deletions(-) create mode 100644 test/validation/packet/.gitignore create mode 100644 test/validation/packet/Makefile.am rename test/validation/{odp_packet.c => packet/packet.c} (99%) create mode 100644 test/validation/packet/packet.h create mode 100644 test/validation/packet/packet_main.c diff --git a/configure.ac b/configure.ac index b72df2e..67f3799 100644 --- a/configure.ac +++ b/configure.ac @@ -307,6 +307,7 @@ AC_CONFIG_FILES([Makefile test/validation/common/Makefile test/validation/crypto/Makefile test/validation/init/Makefile + test/validation/packet/Makefile test/validation/pktio/Makefile test/validation/pool/Makefile test/validation/queue/Makefile diff --git a/test/validation/.gitignore b/test/validation/.gitignore index cf8c044..5346297 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -3,7 +3,6 @@ odp_ver_abt_log_dbg odp_buffer odp_cpumask -odp_packet odp_scheduler odp_shared_memory odp_synchronizers diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 2ce00a0..4b158a3 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -6,7 +6,6 @@ AM_LDFLAGS += -static EXECUTABLES = odp_buffer \ odp_cpumask \ - odp_packet \ odp_scheduler \ odp_shared_memory \ odp_synchronizers \ @@ -15,7 +14,8 @@ EXECUTABLES = odp_buffer \ odp_ver_abt_log_dbg if test_vald -TESTS = $(EXECUTABLES) +TESTS = $(EXECUTABLES) \ + packet/packet_main endif bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) @@ -31,9 +31,6 @@ dist_odp_scheduler_SOURCES = odp_scheduler.c dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_timer_SOURCES = odp_timer.c -odp_packet_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ - $(LIB)/libodp.la -dist_odp_packet_SOURCES = odp_packet.c dist_odp_cpumask_SOURCES = odp_cpumask.c dist_odp_thread_SOURCES = odp_thread.c odp_ver_abt_log_dbg_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/ver_abt_log_dbg @@ -45,6 +42,7 @@ ODP_MODULES = classification \ crypto \ init \ queue \ + packet \ pktio \ pool \ random \ diff --git a/test/validation/packet/.gitignore b/test/validation/packet/.gitignore new file mode 100644 index 0000000..36fb9d3 --- /dev/null +++ b/test/validation/packet/.gitignore @@ -0,0 +1,2 @@ +libpacket.a +packet_main diff --git a/test/validation/packet/Makefile.am b/test/validation/packet/Makefile.am new file mode 100644 index 0000000..fdecb0d --- /dev/null +++ b/test/validation/packet/Makefile.am @@ -0,0 +1,8 @@ +include ../Makefile.inc + +noinst_LIBRARIES = libpacket.a +libpacket_a_SOURCES = packet.c + +bin_PROGRAMS = packet_main +dist_packet_main_SOURCES = packet_main.c +packet_main_LDADD = libpacket.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/odp_packet.c b/test/validation/packet/packet.c similarity index 99% rename from test/validation/odp_packet.c rename to test/validation/packet/packet.c index 9150a16..b14bd4a 100644 --- a/test/validation/odp_packet.c +++ b/test/validation/packet/packet.c @@ -8,6 +8,7 @@ #include #include "odp_cunit_common.h" +#include "packet.h" /* Helper macro for CU_TestInfo initialization */ #define _CU_TEST_INFO(test_func) {#test_func, test_func} @@ -731,13 +732,7 @@ static CU_SuiteInfo packet_suites[] = { CU_SUITE_INFO_NULL, }; -static int packet_main(void) +int packet_main(void) { return odp_cunit_run(packet_suites); } - -/* the following main function will be separated when lib is created */ -int main(void) -{ - return packet_main(); -} diff --git a/test/validation/packet/packet.h b/test/validation/packet/packet.h new file mode 100644 index 0000000..421bc25 --- /dev/null +++ b/test/validation/packet/packet.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int packet_main(void); diff --git a/test/validation/packet/packet_main.c b/test/validation/packet/packet_main.c new file mode 100644 index 0000000..90972fd --- /dev/null +++ b/test/validation/packet/packet_main.c @@ -0,0 +1,12 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "packet.h" + +int main(void) +{ + return packet_main(); +}