From patchwork Thu Jul 2 14:40:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50597 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 33C54214B3 for ; Thu, 2 Jul 2015 14:42:28 +0000 (UTC) Received: by wiwz6 with SMTP id z6sf24715697wiw.0 for ; Thu, 02 Jul 2015 07:42:27 -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=m6IXnwCpYJ+iWEemkzqEWRoJ3+mq66n4/Q2tSFGMYlk=; b=ES3pM6EhsPoyNXwGvOe0D5fukXxSEizbNxizP5ToDbnOcg7x4ccQOr+08Grwvo9kpU 6wdQa1BFK91XwiQLfnUgNp5X93gXYM2gnKYh+nDb5ImYnJQOF+D7GdlpobGzIfKbL6W6 8H+rj2hj98VxetgRR7Q3PddfP+Inyu9PSPTykY3OdmeKApoW/ScbNdwZzA89CDIA3eck /CJbFxzeOvIabrvgvcqjEA42R1r0NHexQixAm3CbA1vAgkjLwLfUbXSP7Pja2KdqkRmM Q2SrTg9Vj8c2/UZhRVRNO15CVayA1FHWd2FR3b59V52FUMcSXYNnNOM24AHXmEM1G6mu srdQ== X-Gm-Message-State: ALoCoQmOTPpQswCXl6vVeGoHbrMuoWfPo19QNtgTaljuCYk2K0ilTI1TMEhiaOIcGJRKewviNz+l X-Received: by 10.180.216.12 with SMTP id om12mr4873310wic.1.1435848147425; Thu, 02 Jul 2015 07:42:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.67 with SMTP id q3ls317738laq.78.gmail; Thu, 02 Jul 2015 07:42:27 -0700 (PDT) X-Received: by 10.152.8.102 with SMTP id q6mr30653087laa.27.1435848147124; Thu, 02 Jul 2015 07:42:27 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id q10si4627329lbp.109.2015.07.02.07.42.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2015 07:42:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbnk3 with SMTP id k3so33403604lbn.1 for ; Thu, 02 Jul 2015 07:42:26 -0700 (PDT) X-Received: by 10.112.42.50 with SMTP id k18mr28428449lbl.76.1435848146563; Thu, 02 Jul 2015 07:42:26 -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 hn6csp526882lbb; Thu, 2 Jul 2015 07:42:25 -0700 (PDT) X-Received: by 10.140.237.136 with SMTP id i130mr45788927qhc.87.1435848145139; Thu, 02 Jul 2015 07:42:25 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e20si6526162qka.93.2015.07.02.07.42.24; Thu, 02 Jul 2015 07:42:25 -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 4B50861F80; Thu, 2 Jul 2015 14:42:24 +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 2017C61F8E; Thu, 2 Jul 2015 14:41:44 +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 EAF1B61F91; Thu, 2 Jul 2015 14:41:36 +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 60BBD61F7E for ; Thu, 2 Jul 2015 14:40:45 +0000 (UTC) Received: by lbcpe5 with SMTP id pe5so33348674lbc.2 for ; Thu, 02 Jul 2015 07:40:44 -0700 (PDT) X-Received: by 10.112.167.202 with SMTP id zq10mr30211674lbb.118.1435848044042; Thu, 02 Jul 2015 07:40:44 -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 cq1sm1456057lad.18.2015.07.02.07.40.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jul 2015 07:40:42 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 2 Jul 2015 16:40:20 +0200 Message-Id: <1435848021-9830-4-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435848021-9830-1-git-send-email-christophe.milard@linaro.org> References: <1435848021-9830-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 3/4] validation: new module errno 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.179 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 Errno (earlyer part of the odp_ver_abt_log_dbg module) now gets its own module. Test contents remains unchanged. Signed-off-by: Christophe Milard --- configure.ac | 1 + platform/linux-generic/test/Makefile.am | 1 + test/validation/Makefile.am | 1 + test/validation/errno/.gitignore | 2 ++ test/validation/errno/Makefile.am | 8 ++++++++ .../{ver_abt_log_dbg/odp_errno.c => errno/errno.c} | 10 ++++++++++ test/validation/errno/errno.h | 7 +++++++ test/validation/errno/errno_main.c | 12 ++++++++++++ 8 files changed, 42 insertions(+) create mode 100644 test/validation/errno/.gitignore create mode 100644 test/validation/errno/Makefile.am rename test/validation/{ver_abt_log_dbg/odp_errno.c => errno/errno.c} (73%) create mode 100644 test/validation/errno/errno.h create mode 100644 test/validation/errno/errno_main.c diff --git a/configure.ac b/configure.ac index 28dad3b..d77b909 100644 --- a/configure.ac +++ b/configure.ac @@ -308,6 +308,7 @@ AC_CONFIG_FILES([Makefile test/validation/cpumask/Makefile test/validation/common/Makefile test/validation/crypto/Makefile + test/validation/errno/Makefile test/validation/init/Makefile test/validation/packet/Makefile test/validation/pktio/Makefile diff --git a/platform/linux-generic/test/Makefile.am b/platform/linux-generic/test/Makefile.am index 4f63dd0..4a112e9 100644 --- a/platform/linux-generic/test/Makefile.am +++ b/platform/linux-generic/test/Makefile.am @@ -8,6 +8,7 @@ TESTS = pktio/pktio_run \ ${top_builddir}/test/validation/classification/classification_main$(EXEEXT) \ ${top_builddir}/test/validation/cpumask/cpumask_main$(EXEEXT) \ ${top_builddir}/test/validation/crypto/crypto_main \ + ${top_builddir}/test/validation/errno/errno_main$(EXEEXT) \ ${top_builddir}/test/validation/init/init_main_ok$(EXEEXT) \ ${top_builddir}/test/validation/init/init_main_abort$(EXEEXT) \ ${top_builddir}/test/validation/init/init_main_log$(EXEEXT) \ diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index cfb5dc5..9b151ba 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -27,6 +27,7 @@ ODP_MODULES = buffer \ classification \ cpumask \ crypto \ + errno \ init \ queue \ packet \ diff --git a/test/validation/errno/.gitignore b/test/validation/errno/.gitignore new file mode 100644 index 0000000..b2aafc4 --- /dev/null +++ b/test/validation/errno/.gitignore @@ -0,0 +1,2 @@ +errno_main +liberrno.a diff --git a/test/validation/errno/Makefile.am b/test/validation/errno/Makefile.am new file mode 100644 index 0000000..0ac5d65 --- /dev/null +++ b/test/validation/errno/Makefile.am @@ -0,0 +1,8 @@ +include ../Makefile.inc + +noinst_LIBRARIES = liberrno.a +liberrno_a_SOURCES = errno.c + +bin_PROGRAMS = errno_main$(EXEEXT) +dist_errno_main_SOURCES = errno_main.c +errno_main_LDADD = liberrno.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/ver_abt_log_dbg/odp_errno.c b/test/validation/errno/errno.c similarity index 73% rename from test/validation/ver_abt_log_dbg/odp_errno.c rename to test/validation/errno/errno.c index 32f5363..70a6613 100644 --- a/test/validation/ver_abt_log_dbg/odp_errno.c +++ b/test/validation/errno/errno.c @@ -22,3 +22,13 @@ CU_TestInfo test_odp_errno[] = { {"sunny day", test_odp_errno_sunny_day}, CU_TEST_INFO_NULL, }; + +CU_SuiteInfo errno_suites[] = { + {"Errno", NULL, NULL, NULL, NULL, test_odp_errno}, + CU_SUITE_INFO_NULL, +}; + +int errno_main(void) +{ + return odp_cunit_run(errno_suites); +} diff --git a/test/validation/errno/errno.h b/test/validation/errno/errno.h new file mode 100644 index 0000000..f05d2c6 --- /dev/null +++ b/test/validation/errno/errno.h @@ -0,0 +1,7 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +int errno_main(void); diff --git a/test/validation/errno/errno_main.c b/test/validation/errno/errno_main.c new file mode 100644 index 0000000..0e82422 --- /dev/null +++ b/test/validation/errno/errno_main.c @@ -0,0 +1,12 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "errno.h" + +int main(void) +{ + return errno_main(); +}