From patchwork Mon Jun 22 16:02:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50175 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 9B5F421594 for ; Mon, 22 Jun 2015 16:05:59 +0000 (UTC) Received: by lbbvz5 with SMTP id vz5sf2256984lbb.1 for ; Mon, 22 Jun 2015 09:05:58 -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=jeuw+yl6QjtESNKYxyU4SJT0LXMucT4i8BQCt6+Be4c=; b=cnmSDoRfRa62zoWF066hsoKK4wTYR9RBRI2COqAqFFz+uAiJrcXE6q0zCuWtr6ONOh guB8gUNpLmWSF7PmWfOZ2pf4uVuOntXgwM2k6neKuZU/VnKW9hpnraxSv4R3fgvgq3r5 1hh6lEpCJekXzfqXjLPtLIFf6PO6nLQoq+oICcpzzVaZLB8KQa1OvfyatS/MoIozq9zZ 1xqCoxJF1EWkgJMBzfsxZ4PnZ21sy/PSD/Ec4n/noDdirs0w7J6VFAe0TdQXHlhp+dHp ZiyIzWdT89s+z/GWxz+tE7bmkQ5N8n6R2DV1Vz4p1o1GKYXDQQHwmuMkvn8K/1ljjpFA wAwA== X-Gm-Message-State: ALoCoQkj8ST+/XfX4SzwbId53ncm9xGYuS+UyxIAXpdm7kWXRxU+wBXWve8rPukYcSHxsaZeEX19 X-Received: by 10.112.40.45 with SMTP id u13mr28413113lbk.0.1434989158565; Mon, 22 Jun 2015 09:05:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.197 with SMTP id ks5ls685373lac.64.gmail; Mon, 22 Jun 2015 09:05:58 -0700 (PDT) X-Received: by 10.152.2.38 with SMTP id 6mr31274709lar.80.1434989158419; Mon, 22 Jun 2015 09:05:58 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id y5si16854929lay.123.2015.06.22.09.05.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 09:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lagx9 with SMTP id x9so24973146lag.1 for ; Mon, 22 Jun 2015 09:05:58 -0700 (PDT) X-Received: by 10.112.42.50 with SMTP id k18mr3690727lbl.76.1434989158285; Mon, 22 Jun 2015 09:05:58 -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 hn6csp2484736lbb; Mon, 22 Jun 2015 09:05:57 -0700 (PDT) X-Received: by 10.55.18.14 with SMTP id c14mr34344283qkh.51.1434989157180; Mon, 22 Jun 2015 09:05:57 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t19si19461179qge.112.2015.06.22.09.05.56; Mon, 22 Jun 2015 09:05:57 -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 5FE9E61DDF; Mon, 22 Jun 2015 16:05:56 +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 B688261DF4; Mon, 22 Jun 2015 16:04:26 +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 7E07E61DE3; Mon, 22 Jun 2015 16:04:21 +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 4C4D161DFD for ; Mon, 22 Jun 2015 16:03:28 +0000 (UTC) Received: by lbbwc1 with SMTP id wc1so111888379lbb.2 for ; Mon, 22 Jun 2015 09:03:26 -0700 (PDT) X-Received: by 10.152.37.196 with SMTP id a4mr31152576lak.59.1434989006526; Mon, 22 Jun 2015 09:03:26 -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 v16sm545043lal.41.2015.06.22.09.03.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Jun 2015 09:03:25 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Mon, 22 Jun 2015 18:02:59 +0200 Message-Id: <1434988980-14008-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434988980-14008-1-git-send-email-christophe.milard@linaro.org> References: <1434988980-14008-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 system 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.52 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 system now gets its own directory and create its own lib (currentely only containing its executable) Note that module system, at this time, only contains time functionality. Signed-off-by: Christophe Milard --- configure.ac | 1 + test/validation/.gitignore | 1 - test/validation/Makefile.am | 10 ++++------ test/validation/system/.gitignore | 2 ++ test/validation/system/Makefile.am | 8 ++++++++ test/validation/{odp_time.c => system/system.c} | 9 ++------- test/validation/system/system.h | 7 +++++++ test/validation/system/system_main.c | 12 ++++++++++++ 8 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 test/validation/system/.gitignore create mode 100644 test/validation/system/Makefile.am rename test/validation/{odp_time.c => system/system.c} (92%) create mode 100644 test/validation/system/system.h create mode 100644 test/validation/system/system_main.c diff --git a/configure.ac b/configure.ac index 3010789..3242e98 100644 --- a/configure.ac +++ b/configure.ac @@ -306,6 +306,7 @@ AC_CONFIG_FILES([Makefile test/validation/common/Makefile test/validation/crypto/Makefile test/validation/pktio/Makefile + test/validation/system/Makefile test/miscellaneous/Makefile ]) diff --git a/test/validation/.gitignore b/test/validation/.gitignore index 765c8b0..e89ddfc 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -14,6 +14,5 @@ odp_random odp_scheduler odp_shared_memory odp_synchronizers -odp_time odp_timer odp_thread diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 3d8f712..913a0b4 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -17,13 +17,13 @@ EXECUTABLES = odp_buffer \ odp_scheduler \ odp_shared_memory \ odp_synchronizers \ - odp_time \ odp_timer \ odp_thread \ odp_ver_abt_log_dbg if test_vald -TESTS = $(EXECUTABLES) +TESTS = $(EXECUTABLES) \ + system/system_main endif bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) @@ -45,9 +45,6 @@ dist_odp_random_SOURCES = odp_random.c dist_odp_scheduler_SOURCES = odp_scheduler.c dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c -odp_time_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ - $(LIB)/libodp.la -dist_odp_time_SOURCES = odp_time.c dist_odp_timer_SOURCES = odp_timer.c dist_odp_packet_SOURCES = odp_packet.c dist_odp_pool_SOURCES = odp_pool.c @@ -59,6 +56,7 @@ dist_odp_ver_abt_log_dbg_SOURCES = ver_abt_log_dbg/odp_system.c \ ver_abt_log_dbg/odp_ver_abt_log_dbg.c ODP_MODULES = crypto \ - pktio + pktio \ + system SUBDIRS = common $(ODP_MODULES) diff --git a/test/validation/system/.gitignore b/test/validation/system/.gitignore new file mode 100644 index 0000000..3646b59 --- /dev/null +++ b/test/validation/system/.gitignore @@ -0,0 +1,2 @@ +system_main +libsystem.a diff --git a/test/validation/system/Makefile.am b/test/validation/system/Makefile.am new file mode 100644 index 0000000..7226cea --- /dev/null +++ b/test/validation/system/Makefile.am @@ -0,0 +1,8 @@ +include ../Makefile.inc + +noinst_LIBRARIES = libsystem.a +libsystem_a_SOURCES = system.c + +bin_PROGRAMS = system_main +dist_system_main_SOURCES = system_main.c +system_main_LDADD = libsystem.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/odp_time.c b/test/validation/system/system.c similarity index 92% rename from test/validation/odp_time.c rename to test/validation/system/system.c index f2debb7..5e2d050 100644 --- a/test/validation/odp_time.c +++ b/test/validation/system/system.c @@ -6,6 +6,7 @@ #include #include "odp_cunit_common.h" +#include "system.h" #define TOLERANCE 1 #define BUSY_LOOP_CNT 100 @@ -72,13 +73,7 @@ static CU_SuiteInfo system_suites[] = { CU_SUITE_INFO_NULL }; -static int system_main(void) +int system_main(void) { return odp_cunit_run(system_suites); } - -/* the following main function will be separated when lib is created */ -int main(void) -{ - return system_main(); -} diff --git a/test/validation/system/system.h b/test/validation/system/system.h new file mode 100644 index 0000000..59fd468 --- /dev/null +++ b/test/validation/system/system.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int system_main(void); diff --git a/test/validation/system/system_main.c b/test/validation/system/system_main.c new file mode 100644 index 0000000..460b635 --- /dev/null +++ b/test/validation/system/system_main.c @@ -0,0 +1,12 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "system.h" + +int main(void) +{ + return system_main(); +}