From patchwork Fri Apr 24 13:41:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 47562 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 73C342121F for ; Fri, 24 Apr 2015 13:42:13 +0000 (UTC) Received: by layy10 with SMTP id y10sf12195758lay.0 for ; Fri, 24 Apr 2015 06:42:12 -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=QDWOFvzj2peBvD0/lzefkhg9iwQvmDnqyOzwcad9MfI=; b=HlJk8bMHqOU7jPOd/tL9Xt/EMKmt0oVHXWMrhJbjff6bSSRqB/dVsUUttqUBFUn/Qu 3oHhghcskng4IqDL2Vs6ZtGoXsIx7rfXRGzMke0clfqL5+tKv9dOgS4gwwTn56r7fKnE J6s3+AIi+jU4oxCymBDNT+p15Xlp/vpUzQqcvVDclB2iycP5UytlXTQOOyPQR3MiV1pO 1nVryg5dEHTSNq2oIBHpjPlYYgwxHxjjRnDaALNeAAKtHwZ+zElx5lQ6uC+vCuf5dXu6 qNGaQLsxLtdwRTNRS+EA5kOFNCTiQ7mwymfcfyyproA3aBsr4ZUxHbt1tY6yBtxOOkzW F32g== X-Gm-Message-State: ALoCoQkJpJ2SDi6a7dbEOV2WhEUdmL0lMeIZtZmh9DzGKV57YozrSbdgY115C+KJ7H4fmwPi8O3D X-Received: by 10.194.236.230 with SMTP id ux6mr4221312wjc.5.1429882932403; Fri, 24 Apr 2015 06:42:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.37 with SMTP id v5ls500589laj.31.gmail; Fri, 24 Apr 2015 06:42:12 -0700 (PDT) X-Received: by 10.112.78.105 with SMTP id a9mr6960164lbx.70.1429882932240; Fri, 24 Apr 2015 06:42:12 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id et1si8298714lac.11.2015.04.24.06.42.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Apr 2015 06:42:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by layy10 with SMTP id y10so35560395lay.0 for ; Fri, 24 Apr 2015 06:42:12 -0700 (PDT) X-Received: by 10.152.8.78 with SMTP id p14mr7022286laa.19.1429882932127; Fri, 24 Apr 2015 06:42:12 -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 l1csp1200791lbt; Fri, 24 Apr 2015 06:42:11 -0700 (PDT) X-Received: by 10.55.31.7 with SMTP id f7mr15721273qkf.9.1429882930715; Fri, 24 Apr 2015 06:42:10 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p77si11410805qha.66.2015.04.24.06.42.10; Fri, 24 Apr 2015 06:42:10 -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 E65576206D; Fri, 24 Apr 2015 13:42:09 +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_H2, 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 6E0886205B; Fri, 24 Apr 2015 13:41:40 +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 8933B62066; Fri, 24 Apr 2015 13:41:33 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by lists.linaro.org (Postfix) with ESMTPS id B46A06205A for ; Fri, 24 Apr 2015 13:41:30 +0000 (UTC) Received: by lbbuc2 with SMTP id uc2so36730283lbb.2 for ; Fri, 24 Apr 2015 06:41:29 -0700 (PDT) X-Received: by 10.153.11.163 with SMTP id ej3mr6929361lad.105.1429882889451; Fri, 24 Apr 2015 06:41:29 -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 wm10sm2643692lbb.26.2015.04.24.06.41.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Apr 2015 06:41:28 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 24 Apr 2015 15:41:15 +0200 Message-Id: <1429882875-31430-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429882875-31430-1-git-send-email-christophe.milard@linaro.org> References: <1429882875-31430-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3 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.54 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 --- same as before. just rebased. test/validation/.gitignore | 3 +-- test/validation/Makefile.am | 9 ++++++--- 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(+), 17 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..fe1fd65 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 @@ -65,3 +64,7 @@ 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, +};