From patchwork Wed Jul 1 10:05: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: 50517 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5FFB4214B3 for ; Wed, 1 Jul 2015 10:09:35 +0000 (UTC) Received: by wguu7 with SMTP id u7sf11793064wgu.0 for ; Wed, 01 Jul 2015 03:09:34 -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=ldooSULTxRBqiBaDz/4XxYooMWcOkIsg4n6ivvQQJpc=; b=WXPR1+mb/XCCyPtylQ7d5mOAEmfVK645lw7WS/4aqXiioSlsu2o9wc9LEU/zf5zIOk seQaLkVIxo6M3SRpTes4C2xZDUQL8xbRcGL7WGIlULC4LVWNF8sY4xzblp09l334vJIk ZIkU9HsnMpkq5yn3rGN8QvkAIbouHZ/QLkEC99VgSueRkKl7kMmJ5FYfCIUBvqov6cR4 QPkB5ZO8RhiAaS+LNiRfWa9Sf6zOGlGjoMDOKUgOcBq04iasBvZ+mzPeBKnQ1rF6XQCz UZHYmDENq/gV+g666pp7TjaspSaR9skj6O83MdFUNyTQJWSbBedKEAms9yWIKvAMaYqe Celw== X-Gm-Message-State: ALoCoQnMYh6XJDeclIXou4k/AGJM3dwCLeJG/ht/EuLV2T+e5ZBaOyOFnLJhnYQiJxhdSO2mGp2I X-Received: by 10.112.188.233 with SMTP id gd9mr16744993lbc.12.1435745374713; Wed, 01 Jul 2015 03:09:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.65 with SMTP id lu1ls156229lac.104.gmail; Wed, 01 Jul 2015 03:09:34 -0700 (PDT) X-Received: by 10.112.78.105 with SMTP id a9mr24376866lbx.70.1435745374435; Wed, 01 Jul 2015 03:09:34 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id lc17si1302265lbb.19.2015.07.01.03.09.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 03:09:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbcui10 with SMTP id ui10so9711265lbc.0 for ; Wed, 01 Jul 2015 03:09:34 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr24114884lbc.112.1435745374317; Wed, 01 Jul 2015 03:09:34 -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 hn6csp495844lbb; Wed, 1 Jul 2015 03:09:33 -0700 (PDT) X-Received: by 10.55.24.68 with SMTP id j65mr40073386qkh.65.1435745372939; Wed, 01 Jul 2015 03:09:32 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 128si1624151qhs.23.2015.07.01.03.09.32; Wed, 01 Jul 2015 03:09:32 -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 1C4CE61E30; Wed, 1 Jul 2015 10:09:32 +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 B0C4F61F0D; Wed, 1 Jul 2015 10:07:13 +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 257FC61F0D; Wed, 1 Jul 2015 10:07:10 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id 778DB61E30 for ; Wed, 1 Jul 2015 10:06:42 +0000 (UTC) Received: by lbcpe5 with SMTP id pe5so9662796lbc.2 for ; Wed, 01 Jul 2015 03:06:41 -0700 (PDT) X-Received: by 10.152.30.4 with SMTP id o4mr23651761lah.74.1435745201299; Wed, 01 Jul 2015 03:06:41 -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 ew6sm370004lbc.40.2015.07.01.03.06.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 03:06:40 -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 12:05:40 +0200 Message-Id: <1435745141-1078-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435745141-1078-1-git-send-email-christophe.milard@linaro.org> References: <1435745141-1078-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 cpumask 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.174 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 Signed-off-by: Christophe Milard --- configure.ac | 1 + test/validation/.gitignore | 1 - test/validation/Makefile.am | 10 ++++------ test/validation/cpumask/.gitignore | 2 ++ test/validation/cpumask/Makefile.am | 8 ++++++++ test/validation/{odp_cpumask.c => cpumask/cpumask.c} | 9 ++------- test/validation/cpumask/cpumask.h | 7 +++++++ test/validation/cpumask/cpumask_main.c | 11 +++++++++++ 8 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 test/validation/cpumask/.gitignore create mode 100644 test/validation/cpumask/Makefile.am rename test/validation/{odp_cpumask.c => cpumask/cpumask.c} (98%) create mode 100644 test/validation/cpumask/cpumask.h create mode 100644 test/validation/cpumask/cpumask_main.c diff --git a/configure.ac b/configure.ac index c036040..d27e899 100644 --- a/configure.ac +++ b/configure.ac @@ -305,6 +305,7 @@ AC_CONFIG_FILES([Makefile test/validation/Makefile test/validation/buffer/Makefile test/validation/classification/Makefile + test/validation/cpumask/Makefile test/validation/common/Makefile test/validation/crypto/Makefile test/validation/init/Makefile diff --git a/test/validation/.gitignore b/test/validation/.gitignore index b274a79..676f6f1 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -1,7 +1,6 @@ *.log *.trs odp_ver_abt_log_dbg -odp_cpumask odp_shared_memory odp_synchronizers odp_timer diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 8e429d9..1c7a206 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -4,14 +4,14 @@ include $(top_srcdir)/test/Makefile.inc AM_CFLAGS += -I$(srcdir)/common AM_LDFLAGS += -static -EXECUTABLES = odp_cpumask$(EXEEXT) \ - odp_shared_memory$(EXEEXT) \ +EXECUTABLES = odp_shared_memory$(EXEEXT) \ odp_synchronizers$(EXEEXT) \ odp_timer$(EXEEXT) \ odp_ver_abt_log_dbg$(EXEEXT) if test_vald -TESTS = $(EXECUTABLES) +TESTS = $(EXECUTABLES) \ + cpumask/cpumask_main endif bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) @@ -22,9 +22,6 @@ odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_timer_SOURCES = odp_timer.c -odp_cpumask_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ - $(LIB)/libodp.la -dist_odp_cpumask_SOURCES = odp_cpumask.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 \ ver_abt_log_dbg/odp_errno.c \ @@ -32,6 +29,7 @@ dist_odp_ver_abt_log_dbg_SOURCES = ver_abt_log_dbg/odp_system.c \ ODP_MODULES = buffer \ classification \ + cpumask \ crypto \ init \ queue \ diff --git a/test/validation/cpumask/.gitignore b/test/validation/cpumask/.gitignore new file mode 100644 index 0000000..1dd4350 --- /dev/null +++ b/test/validation/cpumask/.gitignore @@ -0,0 +1,2 @@ +cpumask_main +libcpumask.a diff --git a/test/validation/cpumask/Makefile.am b/test/validation/cpumask/Makefile.am new file mode 100644 index 0000000..61b65ec --- /dev/null +++ b/test/validation/cpumask/Makefile.am @@ -0,0 +1,8 @@ +include ../Makefile.inc + +noinst_LIBRARIES = libcpumask.a +libcpumask_a_SOURCES = cpumask.c + +bin_PROGRAMS = cpumask_main$(EXEEXT) +dist_cpumask_main_SOURCES = cpumask_main.c +cpumask_main_LDADD = libcpumask.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/odp_cpumask.c b/test/validation/cpumask/cpumask.c similarity index 98% rename from test/validation/odp_cpumask.c rename to test/validation/cpumask/cpumask.c index 1a78cd9..943a8e0 100644 --- a/test/validation/odp_cpumask.c +++ b/test/validation/cpumask/cpumask.c @@ -6,6 +6,7 @@ #include #include "odp_cunit_common.h" +#include "cpumask.h" /* * The following string are used to build cpu masks with @@ -478,13 +479,7 @@ static CU_SuiteInfo cpumask_suites[] = { CU_SUITE_INFO_NULL, }; -static int cpumask_main(void) +int cpumask_main(void) { return odp_cunit_run(cpumask_suites); } - -/* the following main function will be separated when lib is created */ -int main(void) -{ - return cpumask_main(); -} diff --git a/test/validation/cpumask/cpumask.h b/test/validation/cpumask/cpumask.h new file mode 100644 index 0000000..c0d19a9 --- /dev/null +++ b/test/validation/cpumask/cpumask.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int cpumask_main(void); diff --git a/test/validation/cpumask/cpumask_main.c b/test/validation/cpumask/cpumask_main.c new file mode 100644 index 0000000..ceac674 --- /dev/null +++ b/test/validation/cpumask/cpumask_main.c @@ -0,0 +1,11 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ +#include "cpumask.h" + +int main(void) +{ + return cpumask_main(); +}