From patchwork Tue Jun 23 10:08:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50216 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 025A0216E1 for ; Tue, 23 Jun 2015 10:11:59 +0000 (UTC) Received: by wiea6 with SMTP id a6sf3640614wie.1 for ; Tue, 23 Jun 2015 03:11: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=IUmJrTyVoPFljEwlu8mEb1dWjg66OcjmAATQEpp/BHU=; b=AWYA0ZMzhD/s2SlOP0wHl/weYzzruNrARqDYRvsizcMCKenZy/2Ynqwd1LuvwNbsya D/2NWn1obtZUoJ9GxL8v2VuU/QNIB6SE+FbAff0e6oEkxZXNGf4yiTHIlxG6QjfAgq4r DEdukz1TRm4bVA3o7Nprf9l7IaZ8Mf8xkw3loZTfSMnt5+9aVH1Kk9PN87vXhZnJuuBK yxRGuJceXtzijJ6ecowQcdszH8GgK21yzjIbyx6WWhOucLsDvy6CaF/qs0CWZVg5T5cE 0WeNKFqKGsOp2ZJKvXDoNS+xM+ba+eMvuJoHOM6e+N04XPXjCePVQ+qTl7RVkXNGpkBv 4/hQ== X-Gm-Message-State: ALoCoQkPkpfr/x/xZokDXBYJVumH1fR8TmjH7sHbLxPZPUpL4KmGBEVRVnJEHrjxE5iJbyiUyoli X-Received: by 10.152.22.71 with SMTP id b7mr31552407laf.3.1435054318286; Tue, 23 Jun 2015 03:11:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.41 with SMTP id bd9ls26577lab.109.gmail; Tue, 23 Jun 2015 03:11:57 -0700 (PDT) X-Received: by 10.112.190.10 with SMTP id gm10mr33320614lbc.2.1435054317872; Tue, 23 Jun 2015 03:11:57 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id y9si18899668lbo.119.2015.06.23.03.11.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 03:11:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbnk3 with SMTP id k3so3462950lbn.1 for ; Tue, 23 Jun 2015 03:11:57 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr35059855lbb.56.1435054317569; Tue, 23 Jun 2015 03:11:57 -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 hn6csp2964195lbb; Tue, 23 Jun 2015 03:11:56 -0700 (PDT) X-Received: by 10.55.40.20 with SMTP id o20mr31051442qkh.14.1435054316179; Tue, 23 Jun 2015 03:11:56 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e23si15279001qkh.96.2015.06.23.03.11.55; Tue, 23 Jun 2015 03:11:56 -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 27A7061E0A; Tue, 23 Jun 2015 10:11:55 +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 ABF5861DA9; Tue, 23 Jun 2015 10:10:33 +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 E24D961DA9; Tue, 23 Jun 2015 10:10:29 +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 8A4C061EFC for ; Tue, 23 Jun 2015 10:08:59 +0000 (UTC) Received: by lbbpo10 with SMTP id po10so3390682lbb.3 for ; Tue, 23 Jun 2015 03:08:58 -0700 (PDT) X-Received: by 10.112.205.1 with SMTP id lc1mr7863653lbc.94.1435054138559; Tue, 23 Jun 2015 03:08:58 -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 l3sm5415795lbj.46.2015.06.23.03.08.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jun 2015 03:08:57 -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 12:08:38 +0200 Message-Id: <1435054119-1216-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435054119-1216-1-git-send-email-christophe.milard@linaro.org> References: <1435054119-1216-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 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.217.176 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 f70bafe..d845cb0 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/pktio/Makefile + test/validation/system/Makefile test/miscellaneous/Makefile ]) diff --git a/test/validation/.gitignore b/test/validation/.gitignore index 563eee9..47bf0a9 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -13,6 +13,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 237067f..6ac024c 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -16,13 +16,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) @@ -40,9 +40,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 @@ -55,6 +52,7 @@ dist_odp_ver_abt_log_dbg_SOURCES = ver_abt_log_dbg/odp_system.c \ ODP_MODULES = classification \ 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(); +}