From patchwork Tue Jun 23 09:21:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50206 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C719D21575 for ; Tue, 23 Jun 2015 09:24:43 +0000 (UTC) Received: by lbcui10 with SMTP id ui10sf1299723lbc.0 for ; Tue, 23 Jun 2015 02:24:42 -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=/EYHqYjoAA/+f7zBprJ9D5AE+E+ej29ajFO7Rb524tc=; b=NEMdFL+/lLIMzNVzkC+W2tqEEJ10aImRrykRQSiApidiadTNgFlfkmQHFyTOhb/jzY Tzn12A+nwT1nZFdv2PCU0gV68DF5kGWw4r2MidG1Gb5Y6VHkvL9IKaw5gVFeL6L45HWA IEnWxIGfsl0e9aNWOa6nBeup7yCq8xIOeRW0th3XGrnqAVZ1B79jOAYJVaxD9yFsU81u uru/Wv0XHI/DgUw8jwCoRDr6LiuPO2pDe4OTX4/hQy7V8avy5sKzjw1otH7iNU51gepT bWXm9Xaxs7pUT9CRp6EdBJWUIY2RaYBlCrU9FmKR+Uuy8G8M4np37zyU/PWCDYn/aofm 5TVQ== X-Gm-Message-State: ALoCoQmNs8dzgFSwbv5qljBjvbgQvdEukrJ4jv0zWxpzLCE8nCBgz4VthIWUqCEzBr9X2iy+gud0 X-Received: by 10.112.255.66 with SMTP id ao2mr25360535lbd.15.1435051482780; Tue, 23 Jun 2015 02:24:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.137 with SMTP id f9ls23610lae.5.gmail; Tue, 23 Jun 2015 02:24:42 -0700 (PDT) X-Received: by 10.152.23.4 with SMTP id i4mr33795195laf.51.1435051482513; Tue, 23 Jun 2015 02:24:42 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id jh6si18812056lbc.102.2015.06.23.02.24.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 02:24:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbvz5 with SMTP id vz5so2764666lbb.0 for ; Tue, 23 Jun 2015 02:24:42 -0700 (PDT) X-Received: by 10.152.42.177 with SMTP id p17mr12655297lal.29.1435051482396; Tue, 23 Jun 2015 02:24:42 -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 hn6csp2939339lbb; Tue, 23 Jun 2015 02:24:41 -0700 (PDT) X-Received: by 10.52.119.165 with SMTP id kv5mr30104280vdb.46.1435051480620; Tue, 23 Jun 2015 02:24:40 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id bk10si21237998vdd.59.2015.06.23.02.24.39; Tue, 23 Jun 2015 02:24:40 -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 A40C361F00; Tue, 23 Jun 2015 09:24:39 +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 BB1F361EFC; Tue, 23 Jun 2015 09:22:30 +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 D389A61F5A; Tue, 23 Jun 2015 09:22:25 +0000 (UTC) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by lists.linaro.org (Postfix) with ESMTPS id 1429E61EEA for ; Tue, 23 Jun 2015 09:21:54 +0000 (UTC) Received: by lbbpo10 with SMTP id po10so2678828lbb.3 for ; Tue, 23 Jun 2015 02:21:52 -0700 (PDT) X-Received: by 10.152.3.130 with SMTP id c2mr10651888lac.81.1435051312534; Tue, 23 Jun 2015 02:21: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 lf2sm3666258lac.39.2015.06.23.02.21.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jun 2015 02:21:51 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Tue, 23 Jun 2015 11:21:29 +0200 Message-Id: <1435051290-24369-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435051290-24369-1-git-send-email-christophe.milard@linaro.org> References: <1435051290-24369-1-git-send-email-christophe.milard@linaro.org> X-Topics: Classification patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3 4/5] validation: creating own dir for classification 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.181 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 classification 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 | 14 ++++---------- test/validation/classification/.gitignore | 2 ++ test/validation/classification/Makefile.am | 10 ++++++++++ .../classification.c} | 9 ++------- test/validation/classification/classification.h | 7 +++++++ test/validation/classification/classification_main.c | 12 ++++++++++++ 8 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 test/validation/classification/.gitignore create mode 100644 test/validation/classification/Makefile.am rename test/validation/{odp_classification.c => classification/classification.c} (78%) create mode 100644 test/validation/classification/classification.h create mode 100644 test/validation/classification/classification_main.c diff --git a/configure.ac b/configure.ac index 3010789..f70bafe 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/classification/Makefile test/validation/common/Makefile test/validation/crypto/Makefile test/validation/pktio/Makefile diff --git a/test/validation/.gitignore b/test/validation/.gitignore index 765c8b0..563eee9 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -2,7 +2,6 @@ *.trs odp_ver_abt_log_dbg odp_buffer -odp_classification odp_cpumask odp_init odp_init_abort diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 227e7a2..bbf7447 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -5,7 +5,6 @@ AM_CFLAGS += -I$(srcdir)/common AM_LDFLAGS += -static EXECUTABLES = odp_buffer \ - odp_classification \ odp_cpumask \ odp_init \ odp_init_abort \ @@ -23,7 +22,8 @@ EXECUTABLES = odp_buffer \ odp_ver_abt_log_dbg if test_vald -TESTS = $(EXECUTABLES) +TESTS = $(EXECUTABLES) \ + classification/classification_main endif bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) @@ -32,13 +32,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_classification_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/classification -odp_classification_LDADD = \ - $(top_builddir)/test/validation/common/libcunit_common.a \ - $(LIB)/libodp.la -dist_odp_classification_SOURCES = classification/odp_classification_tests.c \ - classification/odp_classification_basic.c \ - odp_classification.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto dist_odp_init_SOURCES = init/odp_init.c dist_odp_init_abort_SOURCES = init/odp_init_abort.c @@ -59,7 +52,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 = crypto \ +ODP_MODULES = classification \ + crypto \ pktio SUBDIRS = common $(ODP_MODULES) diff --git a/test/validation/classification/.gitignore b/test/validation/classification/.gitignore new file mode 100644 index 0000000..3887aec --- /dev/null +++ b/test/validation/classification/.gitignore @@ -0,0 +1,2 @@ +classification_main +libclassification.a diff --git a/test/validation/classification/Makefile.am b/test/validation/classification/Makefile.am new file mode 100644 index 0000000..1413c20 --- /dev/null +++ b/test/validation/classification/Makefile.am @@ -0,0 +1,10 @@ +include ../Makefile.inc + +noinst_LIBRARIES = libclassification.a +libclassification_a_SOURCES = odp_classification_basic.c \ + odp_classification_tests.c \ + classification.c + +bin_PROGRAMS = classification_main +dist_classification_main_SOURCES = classification_main.c +classification_main_LDADD = libclassification.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/odp_classification.c b/test/validation/classification/classification.c similarity index 78% rename from test/validation/odp_classification.c rename to test/validation/classification/classification.c index 69cdd4b..2582aaa 100644 --- a/test/validation/odp_classification.c +++ b/test/validation/classification/classification.c @@ -7,6 +7,7 @@ #include #include #include "odp_classification_testsuites.h" +#include "classification.h" static CU_SuiteInfo classification_suites[] = { { .pName = "classification basic", @@ -20,13 +21,7 @@ static CU_SuiteInfo classification_suites[] = { CU_SUITE_INFO_NULL, }; -static int classification_main(void) +int classification_main(void) { return odp_cunit_run(classification_suites); } - -/* the following main function will be separated when lib is created */ -int main(void) -{ - return classification_main(); -} diff --git a/test/validation/classification/classification.h b/test/validation/classification/classification.h new file mode 100644 index 0000000..e677343 --- /dev/null +++ b/test/validation/classification/classification.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int classification_main(void); diff --git a/test/validation/classification/classification_main.c b/test/validation/classification/classification_main.c new file mode 100644 index 0000000..712fada --- /dev/null +++ b/test/validation/classification/classification_main.c @@ -0,0 +1,12 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "classification.h" + +int main(void) +{ + return classification_main(); +}