From patchwork Fri Jul 3 11:49: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: 50626 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F3CE422916 for ; Fri, 3 Jul 2015 11:53:52 +0000 (UTC) Received: by laar3 with SMTP id r3sf27907267laa.1 for ; Fri, 03 Jul 2015 04:53:51 -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=EIf6fS2nXzjICnTvW5arihTlWMxn3yJihaiVretTFeM=; b=ZXT5cx5ejWpsD58auE0F+nfs6zRJmvc5wM126BXyS6011vNTsPNqyOWe+INvrHd+Dg vFUsjmyT+CkCQeRBFl3V8Rms6SeyOdwnQb81eK4TzeklqOqPzXqdWGWO1Jy5eASgfjYy j5rNskIbjLJGzTOs9WqFyqq8MI+mOek87xKMUWf0lmglxK0OiiZGvTeI6SlCiVyHtvQN 8Mb/UFvu41QJOfvZUOsjgnmyB4bVA6tiqXkWVQUYviVQ3KEJQOEJSnxrx69ZrQjd3awG fTfJfAf4Fd3ACC7zfObWqNT2b1HsfgKI6n3whXAfEjyMly0s+bj+xt8hyeEUoA32RcYE IAWA== X-Gm-Message-State: ALoCoQl2Og8vPrspnp9Eh9iMnkrjK/rXP41lrfMQXzjS3vzz7PbvxTbW82epY7Kpb9fcy+RcLhAw X-Received: by 10.112.142.67 with SMTP id ru3mr22346226lbb.1.1435924431899; Fri, 03 Jul 2015 04:53:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.182.228 with SMTP id eh4ls450816lac.45.gmail; Fri, 03 Jul 2015 04:53:51 -0700 (PDT) X-Received: by 10.112.89.201 with SMTP id bq9mr10977022lbb.39.1435924431741; Fri, 03 Jul 2015 04:53:51 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id dn11si7011500lac.122.2015.07.03.04.53.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jul 2015 04:53:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by laar3 with SMTP id r3so82492425laa.0 for ; Fri, 03 Jul 2015 04:53:51 -0700 (PDT) X-Received: by 10.152.42.177 with SMTP id p17mr35260221lal.29.1435924431443; Fri, 03 Jul 2015 04:53:51 -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 hn6csp1133192lbb; Fri, 3 Jul 2015 04:53:50 -0700 (PDT) X-Received: by 10.140.234.1 with SMTP id f1mr51416367qhc.48.1435924430026; Fri, 03 Jul 2015 04:53:50 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l67si10036725qgd.96.2015.07.03.04.53.19; Fri, 03 Jul 2015 04:53:50 -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 CED0961D55; Fri, 3 Jul 2015 11:53:19 +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 90A3D6204D; Fri, 3 Jul 2015 11:51:25 +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 ADFEC6204D; Fri, 3 Jul 2015 11:51:18 +0000 (UTC) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id A413461D30 for ; Fri, 3 Jul 2015 11:50:03 +0000 (UTC) Received: by lagx9 with SMTP id x9so82293892lag.1 for ; Fri, 03 Jul 2015 04:50:02 -0700 (PDT) X-Received: by 10.152.203.162 with SMTP id kr2mr35560455lac.57.1435924202516; Fri, 03 Jul 2015 04:50:02 -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 w6sm2271047lbs.37.2015.07.03.04.50.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jul 2015 04:50:01 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 3 Jul 2015 13:49:38 +0200 Message-Id: <1435924179-30967-6-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435924179-30967-1-git-send-email-christophe.milard@linaro.org> References: <1435924179-30967-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 5/6] 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.53 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) Signed-off-by: Christophe Milard --- configure.ac | 1 + test/validation/.gitignore | 1 - test/validation/Makefile.am | 13 +++++-------- test/validation/system/.gitignore | 2 ++ test/validation/system/Makefile.am | 8 ++++++++ test/validation/system/system.c | 9 ++------- test/validation/system/system.h | 7 +++++++ test/validation/system/system_main.c | 12 ++++++++++++ 8 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 test/validation/system/.gitignore create mode 100644 test/validation/system/Makefile.am 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 dbf7d99..f1de998 100644 --- a/configure.ac +++ b/configure.ac @@ -319,6 +319,7 @@ AC_CONFIG_FILES([Makefile test/validation/synchronizers/Makefile test/validation/thread/Makefile test/validation/time/Makefile + test/validation/system/Makefile test/miscellaneous/Makefile ]) diff --git a/test/validation/.gitignore b/test/validation/.gitignore index df4e83a..50a459a 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -1,5 +1,4 @@ *.log *.trs -odp_system odp_shared_memory odp_timer diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index cbd7f5d..e347633 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -5,11 +5,11 @@ AM_CFLAGS += -I$(srcdir)/common AM_LDFLAGS += -static EXECUTABLES = odp_shared_memory$(EXEEXT) \ - odp_timer$(EXEEXT) \ - odp_system$(EXEEXT) + odp_timer$(EXEEXT) if test_vald -TESTS = $(EXECUTABLES) +TESTS = $(EXECUTABLES) \ + system/system_main endif bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) @@ -19,10 +19,6 @@ ODP_CU_COMMON=common/odp_cunit_common.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_timer_SOURCES = odp_timer.c -odp_system_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ - $(LIB)/libodp.la -odp_system_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/system -dist_odp_system_SOURCES = system/system.c ODP_MODULES = buffer \ classification \ @@ -38,6 +34,7 @@ ODP_MODULES = buffer \ scheduler \ synchronizers \ thread \ - time + time \ + system SUBDIRS = common $(ODP_MODULES) diff --git a/test/validation/system/.gitignore b/test/validation/system/.gitignore new file mode 100644 index 0000000..7bb1f81 --- /dev/null +++ b/test/validation/system/.gitignore @@ -0,0 +1,2 @@ +libsystem.a +system_main diff --git a/test/validation/system/Makefile.am b/test/validation/system/Makefile.am new file mode 100644 index 0000000..f68fe77 --- /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$(EXEEXT) +dist_system_main_SOURCES = system_main.c +system_main_LDADD = libsystem.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/system/system.c b/test/validation/system/system.c index 77afa97..b80fd39 100644 --- a/test/validation/system/system.c +++ b/test/validation/system/system.c @@ -8,6 +8,7 @@ #include #include "odp_cunit_common.h" #include "test_debug.h" +#include "system.h" static void system_test_odp_version_numbers(void) { @@ -98,13 +99,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..92618fb --- /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..5293dc0 --- /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(); +}