From patchwork Wed Jul 1 10:05:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50516 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 724D7214B3 for ; Wed, 1 Jul 2015 10:08:34 +0000 (UTC) Received: by lagx9 with SMTP id x9sf11008729lag.2 for ; Wed, 01 Jul 2015 03:08:33 -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=2Kl9aRSt2DsOojzEuaZ1uKZOl1RkYBiiwuqdSPAyRg0=; b=PJmnComJ8nsul07Ey/Vu3mEI9ZYxYIaAosq4tQ/vRJ+4z2TCBFS+D805qiNjAw8Uek gppjT0+7Z2247WSIMK1i8JUpklm0dcl+ek+fwrSbSkOMMaot7WADWOunsVptGAOPHuhX aUeXerPYkEfdXFndjh4iaO4/haiFTuGryoDvtnq+UWtZ8fM+a9LnwAW7a0awjzc80c7p A3KhZ3p6wIYY6KVuPIBLSnWclQGtHP11BSzkWzUbPK+XJ2KYyUMoiQbWibNKIinI/D6U G6y3xME2qGDWKy6EfY7xmWPWKClt68SKdSQcMBts9E4TL7OTARvFhbAGHDNx4JwN5+N/ NAEA== X-Gm-Message-State: ALoCoQn1q+UpL2ATQ/uYxVScNQBHBqJZLxtxQqOyde5D/SK0tHXrZIHexjpuZT9DldTiw6cobC6s X-Received: by 10.112.138.2 with SMTP id qm2mr16702875lbb.19.1435745313409; Wed, 01 Jul 2015 03:08:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.195 with SMTP id o3ls172195laf.1.gmail; Wed, 01 Jul 2015 03:08:33 -0700 (PDT) X-Received: by 10.152.2.2 with SMTP id 2mr24893785laq.58.1435745313125; Wed, 01 Jul 2015 03:08:33 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id lf11si1271747lac.117.2015.07.01.03.08.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 03:08:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lagx9 with SMTP id x9so37279954lag.1 for ; Wed, 01 Jul 2015 03:08:33 -0700 (PDT) X-Received: by 10.112.160.165 with SMTP id xl5mr24308747lbb.36.1435745312885; Wed, 01 Jul 2015 03:08:32 -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 hn6csp495205lbb; Wed, 1 Jul 2015 03:08:32 -0700 (PDT) X-Received: by 10.140.49.11 with SMTP id p11mr32247753qga.60.1435745311537; Wed, 01 Jul 2015 03:08:31 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u64si1592283qge.81.2015.07.01.03.08.30; Wed, 01 Jul 2015 03:08:31 -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 C5EC361EFA; Wed, 1 Jul 2015 10:08:30 +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 13BF361EFC; Wed, 1 Jul 2015 10:06:51 +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 9245661E41; Wed, 1 Jul 2015 10:06: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 3D25261C82 for ; Wed, 1 Jul 2015 10:06:37 +0000 (UTC) Received: by lbcui10 with SMTP id ui10so9667097lbc.0 for ; Wed, 01 Jul 2015 03:06:36 -0700 (PDT) X-Received: by 10.112.29.110 with SMTP id j14mr24213045lbh.5.1435745196046; Wed, 01 Jul 2015 03:06:36 -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 ew6sm370004lbc.40.2015.07.01.03.06.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 03:06:34 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 1 Jul 2015 12:05:37 +0200 Message-Id: <1435745141-1078-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435745141-1078-1-git-send-email-christophe.milard@linaro.org> References: <1435745141-1078-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 1/5] validation: own main in odp_cpumask 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.43 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 Signed-off-by: Christophe Milard --- test/validation/Makefile.am | 2 ++ test/validation/odp_cpumask.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index fe8463f..8e429d9 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -22,6 +22,8 @@ odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_timer_SOURCES = odp_timer.c +odp_cpumask_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_cpumask_SOURCES = odp_cpumask.c 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 \ diff --git a/test/validation/odp_cpumask.c b/test/validation/odp_cpumask.c index 1b1c104..5986329 100644 --- a/test/validation/odp_cpumask.c +++ b/test/validation/odp_cpumask.c @@ -455,7 +455,7 @@ static void test_odp_cpumask_next(void) CU_ASSERT(odp_cpumask_next(&mask1, i) == expected[i]); } -CU_TestInfo test_odp_cpumask[] = { +static CU_TestInfo test_odp_cpumask[] = { {"odp_cpumask_to/from_str()", test_odp_cpumask_to_from_str}, {"odp_cpumask_equal()" , test_odp_cpumask_equal}, {"odp_cpumask_zero()" , test_odp_cpumask_zero}, @@ -473,7 +473,18 @@ CU_TestInfo test_odp_cpumask[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo cpumask_suites[] = { {"Cpumask", NULL, NULL, NULL, NULL, test_odp_cpumask}, CU_SUITE_INFO_NULL, }; + +static int cpumask_main(void) +{ + return odp_cunit_run(cpumask_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return cpumask_main(); +}