From patchwork Mon Apr 27 08:53:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 47610 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E566F2121F for ; Mon, 27 Apr 2015 08:57:43 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf23703068wgi.3 for ; Mon, 27 Apr 2015 01:57:43 -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=UMoKUKL2uL3CHqlLlz2lz4qtAfQR2DaS/dre7NpwbOQ=; b=bHlGgBMqfEC7ylWqGC2Xsijiuk5M46nz9BTnGvFQExKolurlY9bSTk5yeGC1WOpln7 4z6h2BIiLQ0HobS5wCB5rT6sDe5nwABD9jXZ+D2p5tbvKU+EsxkRelr/ZsiifICoznyR FXs5cUIdH4bpwSfgTeRaU4Ba9ynCt48EuZDWYXt5G0ZNtlfWcdyijE+V6OMzV/r4KDfZ Dv15f8XJXVbOYpwBGAaNjMYEESmiFf9g9idIs+tCs9G0uwuceSjQ2qLudpZ3GmOwMxwZ 4PXmcRBZCHYrwFLtPYNoui4Y51ef/VYZhjggNFP3SFGwbUwri7INKO0bka+bDrVFKQ02 6JAg== X-Gm-Message-State: ALoCoQnZXtJWMoBfIPzZAxaQNKPO3bOpfK/mNZQJsgbhwJjCLeWZr2l80ZWUAyb56NWvXKovLhB/ X-Received: by 10.152.43.116 with SMTP id v20mr3908952lal.3.1430125063185; Mon, 27 Apr 2015 01:57:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.232 with SMTP id o8ls751078lag.39.gmail; Mon, 27 Apr 2015 01:57:43 -0700 (PDT) X-Received: by 10.112.180.137 with SMTP id do9mr2212473lbc.91.1430125063038; Mon, 27 Apr 2015 01:57:43 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id kw5si3247430lac.121.2015.04.27.01.57.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Apr 2015 01:57:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labbd9 with SMTP id bd9so74717475lab.2 for ; Mon, 27 Apr 2015 01:57:43 -0700 (PDT) X-Received: by 10.112.16.196 with SMTP id i4mr9090442lbd.72.1430125062935; Mon, 27 Apr 2015 01:57: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.67.65 with SMTP id l1csp1149865lbt; Mon, 27 Apr 2015 01:57:42 -0700 (PDT) X-Received: by 10.53.1.135 with SMTP id bg7mr23899970vdd.23.1430125061005; Mon, 27 Apr 2015 01:57:41 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id cb9si29285225vdc.70.2015.04.27.01.57.40; Mon, 27 Apr 2015 01:57: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 1FD0261D08; Mon, 27 Apr 2015 08:57:40 +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=unavailable autolearn_force=no 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 9729061D23; Mon, 27 Apr 2015 08:56:24 +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 E52D361D55; Mon, 27 Apr 2015 08:56:16 +0000 (UTC) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id 23B7361D65 for ; Mon, 27 Apr 2015 08:53:38 +0000 (UTC) Received: by layy10 with SMTP id y10so74707609lay.0 for ; Mon, 27 Apr 2015 01:53:37 -0700 (PDT) X-Received: by 10.152.170.170 with SMTP id an10mr9165168lac.84.1430124817091; Mon, 27 Apr 2015 01:53:37 -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 ky7sm4605780lab.37.2015.04.27.01.53.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Apr 2015 01:53:36 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Mon, 27 Apr 2015 10:53:24 +0200 Message-Id: <1430124804-3928-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430124804-3928-1-git-send-email-christophe.milard@linaro.org> References: <1430124804-3928-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv4 2/2] validation: tests for module odp_ver_abt_log_dbg 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.42 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 Created directory for module odp_ver_abt_log_dbg, populated with file odp_errno.c and odp_system.c which, despite its confusing name is not testing the system module but the sys* function of the odp_ver_abt_log_dbg module. Signed-off-by: Christophe Milard Reviewed-by: Mike Holmes --- v3/v4 delta: fixed bootstrap warning (thanks Mike for you review!) test/validation/.gitignore | 3 +-- test/validation/Makefile.am | 11 ++++++----- test/validation/{ => ver_abt_log_dbg}/odp_errno.c | 5 ----- test/validation/ver_abt_log_dbg/odp_errno.h | 9 +++++++++ test/validation/{ => ver_abt_log_dbg}/odp_system.c | 7 ------- test/validation/ver_abt_log_dbg/odp_system.h | 9 +++++++++ test/validation/ver_abt_log_dbg/odp_ver_abt_log_dbg.c | 16 ++++++++++++++++ 7 files changed, 41 insertions(+), 19 deletions(-) rename test/validation/{ => ver_abt_log_dbg}/odp_errno.c (81%) create mode 100644 test/validation/ver_abt_log_dbg/odp_errno.h rename test/validation/{ => ver_abt_log_dbg}/odp_system.c (93%) create mode 100644 test/validation/ver_abt_log_dbg/odp_system.h create mode 100644 test/validation/ver_abt_log_dbg/odp_ver_abt_log_dbg.c diff --git a/test/validation/.gitignore b/test/validation/.gitignore index 05a7424..4bbcea3 100644 --- a/test/validation/.gitignore +++ b/test/validation/.gitignore @@ -1,10 +1,10 @@ *.log *.trs +odp_ver_abt_log_dbg odp_buffer odp_classification odp_cpumask odp_crypto -odp_errno odp_init odp_init_abort odp_init_log @@ -16,7 +16,6 @@ odp_random odp_scheduler odp_shared_memory odp_synchronizers -odp_system odp_time odp_timer odp_thread diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 36b0ba8..dd32c39 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -18,12 +18,11 @@ EXECUTABLES = odp_buffer \ odp_random \ odp_scheduler \ odp_shared_memory \ - odp_system \ odp_synchronizers \ odp_time \ odp_timer \ - odp_errno \ - odp_thread + odp_thread \ + odp_ver_abt_log_dbg COMPILE_ONLY = odp_packet_io @@ -55,13 +54,15 @@ dist_odp_queue_SOURCES = odp_queue.c $(ODP_CU_COMMON) dist_odp_random_SOURCES = odp_random.c $(ODP_CU_COMMON) dist_odp_scheduler_SOURCES = odp_scheduler.c $(ODP_CU_COMMON) dist_odp_shared_memory_SOURCES = odp_shared_memory.c $(ODP_CU_COMMON) -dist_odp_system_SOURCES = odp_system.c $(ODP_CU_COMMON) dist_odp_synchronizers_SOURCES = odp_synchronizers.c $(ODP_CU_COMMON) dist_odp_time_SOURCES = odp_time.c $(ODP_CU_COMMON) dist_odp_timer_SOURCES = odp_timer.c $(ODP_CU_COMMON) dist_odp_packet_io_SOURCES = odp_packet_io.c $(ODP_CU_COMMON) dist_odp_packet_SOURCES = odp_packet.c $(ODP_CU_COMMON) dist_odp_pool_SOURCES = odp_pool.c $(ODP_CU_COMMON) -dist_odp_errno_SOURCES = odp_errno.c $(ODP_CU_COMMON) dist_odp_cpumask_SOURCES = odp_cpumask.c $(ODP_CU_COMMON) dist_odp_thread_SOURCES = odp_thread.c $(ODP_CU_COMMON) +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 \ + ver_abt_log_dbg/odp_ver_abt_log_dbg.c $(ODP_CU_COMMON) diff --git a/test/validation/odp_errno.c b/test/validation/ver_abt_log_dbg/odp_errno.c similarity index 81% rename from test/validation/odp_errno.c rename to test/validation/ver_abt_log_dbg/odp_errno.c index 89b99d7..368f26e 100644 --- a/test/validation/odp_errno.c +++ b/test/validation/ver_abt_log_dbg/odp_errno.c @@ -21,8 +21,3 @@ CU_TestInfo test_odp_errno[] = { {"sunny day", test_odp_errno_sunny_day}, CU_TEST_INFO_NULL, }; - -CU_SuiteInfo odp_testsuites[] = { - {"Errno", NULL, NULL, NULL, NULL, test_odp_errno}, - CU_SUITE_INFO_NULL, -}; diff --git a/test/validation/ver_abt_log_dbg/odp_errno.h b/test/validation/ver_abt_log_dbg/odp_errno.h new file mode 100644 index 0000000..80507fa --- /dev/null +++ b/test/validation/ver_abt_log_dbg/odp_errno.h @@ -0,0 +1,9 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "odp_cunit_common.h" + +extern CU_TestInfo test_odp_errno[]; diff --git a/test/validation/odp_system.c b/test/validation/ver_abt_log_dbg/odp_system.c similarity index 93% rename from test/validation/odp_system.c rename to test/validation/ver_abt_log_dbg/odp_system.c index 94ee712..1a40957 100644 --- a/test/validation/odp_system.c +++ b/test/validation/ver_abt_log_dbg/odp_system.c @@ -92,10 +92,3 @@ CU_TestInfo test_odp_system[] = { {"odp_sys_cpu_hz", test_odp_sys_cpu_hz}, CU_TEST_INFO_NULL, }; - -CU_SuiteInfo odp_testsuites[] = { - {"System Info", NULL, NULL, NULL, NULL, - test_odp_system}, - CU_SUITE_INFO_NULL, -}; - diff --git a/test/validation/ver_abt_log_dbg/odp_system.h b/test/validation/ver_abt_log_dbg/odp_system.h new file mode 100644 index 0000000..ce99bed --- /dev/null +++ b/test/validation/ver_abt_log_dbg/odp_system.h @@ -0,0 +1,9 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "odp_cunit_common.h" + +extern CU_TestInfo test_odp_system[]; diff --git a/test/validation/ver_abt_log_dbg/odp_ver_abt_log_dbg.c b/test/validation/ver_abt_log_dbg/odp_ver_abt_log_dbg.c new file mode 100644 index 0000000..39a632e --- /dev/null +++ b/test/validation/ver_abt_log_dbg/odp_ver_abt_log_dbg.c @@ -0,0 +1,16 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include +#include "odp_cunit_common.h" +#include "odp_errno.h" +#include "odp_system.h" + +CU_SuiteInfo odp_testsuites[] = { + {"Errno", NULL, NULL, NULL, NULL, test_odp_errno}, + {"System Info", NULL, NULL, NULL, NULL, test_odp_system}, + CU_SUITE_INFO_NULL, +};