From patchwork Tue May 5 15:49:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 48045 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 A70D22121F for ; Tue, 5 May 2015 15:50:41 +0000 (UTC) Received: by lbcne10 with SMTP id ne10sf52112106lbc.1 for ; Tue, 05 May 2015 08:50:40 -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=ABPu/U8SlcEX76DqoJHzjMmxVDYwxK/WOurXxiM89XU=; b=BfonVkvsbqgL/4jJ8gtrrlo+6XOdiJo6x3VHszwqKQvL9DBUAIszzDbbqtZsC2hXxQ BZ9NmvMcJxhDoPUibYgzCPf6VvWPdUDjJR1Rl4PG8PxD8W8dxImNZunBoP3nSKC9oxNc 303bDtcDJWsqDfSFPb9OxiT+W0Qtr0nboOEOo/0NvhKnrQAxxEInruMk1R5syw9syaXz PckKLnr4FaVbhePsp3ojvlzRzSkJRLTfnVETNmcjLn23d3MwmN4SwcWI/ziIq/lOr4r0 hBOpasdkpHcOmyBaY59u91Bl/HocvyhzbK5ARDFf4IFHjCs0iYINn0QGXkBUyecby5dv Sx9Q== X-Gm-Message-State: ALoCoQmjmG+YRgNvj4OOLhh1Ao86HRefESZmcfH1OqWG4VnyAAFOLPgx3Nc/WyMvc2XOd1+103k2 X-Received: by 10.180.106.10 with SMTP id gq10mr2084437wib.0.1430841040424; Tue, 05 May 2015 08:50:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.133 with SMTP id kq5ls834066lac.102.gmail; Tue, 05 May 2015 08:50:40 -0700 (PDT) X-Received: by 10.152.29.198 with SMTP id m6mr4417897lah.11.1430841040262; Tue, 05 May 2015 08:50:40 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id j5si12735159laf.127.2015.05.05.08.50.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2015 08:50:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbuc2 with SMTP id uc2so131819338lbb.2 for ; Tue, 05 May 2015 08:50:40 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr24257021lak.117.1430841040123; Tue, 05 May 2015 08:50:40 -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 l1csp2330179lbt; Tue, 5 May 2015 08:50:39 -0700 (PDT) X-Received: by 10.55.31.40 with SMTP id f40mr57118158qkf.49.1430841038212; Tue, 05 May 2015 08:50:38 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id iq7si1906788qcb.1.2015.05.05.08.50.36; Tue, 05 May 2015 08:50:38 -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 9C7D161809; Tue, 5 May 2015 15:50:36 +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 45EC361B26; Tue, 5 May 2015 15:49:46 +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 3119A61DE4; Tue, 5 May 2015 15:49:43 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id 4515B61809 for ; Tue, 5 May 2015 15:49:36 +0000 (UTC) Received: by lbbuc2 with SMTP id uc2so131790182lbb.2 for ; Tue, 05 May 2015 08:49:35 -0700 (PDT) X-Received: by 10.152.22.34 with SMTP id a2mr24909921laf.59.1430840975067; Tue, 05 May 2015 08:49:35 -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 ln6sm4146038lac.45.2015.05.05.08.49.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 May 2015 08:49:34 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Tue, 5 May 2015 17:49:08 +0200 Message-Id: <1430840948-23333-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430840948-23333-1-git-send-email-christophe.milard@linaro.org> References: <1430840948-23333-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv5 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.217.172 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 --- 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 6c15e8a..34ea143 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 ed2d76d..7470d9d 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_pktio @@ -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_pktio_SOURCES = odp_pktio.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, +};