From patchwork Wed Jul 1 16:17:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50523 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 44081229DF for ; Wed, 1 Jul 2015 16:18:13 +0000 (UTC) Received: by wiar9 with SMTP id r9sf17147680wia.1 for ; Wed, 01 Jul 2015 09:18: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=iy54PJN3v+tqdmNR5U3RmegLJhPErRwRDHHdFwHo4Mc=; b=O9yRKB7jk+c4sW5MtVTkRNFyy0d84CMMCEybGpboMVd4AwwgXBsp942mmbVOXXQMqd LvN99L7RFQpMgkh2QuNtMtiRur31RZUk2SkMZtBB7bujqvxuUjO2dzVKAs+vRFqFM39+ FbYrPsMTSyw+ktwk/SUe/UVO21JYE5GH+t1RhC4aeOwL6Jv8/ijIw2KFG4WDY9wdYOhV aFZmaFkHyW80Evp+0RA4wzBETHhT1oc+3blC9rKGM514wVC+ojyupLOi59OjUvKfnizX 9y7/AXrBYpGEIfCB4xTnVQvU4ZiuaNgklu1d83ab+daoWVJ2k4fkPz7OlZnTkddfKOQ5 jfxQ== X-Gm-Message-State: ALoCoQk3ieyU8VdCkYbym4uVGj/b0pjBbbINWCvpuj+cjvMjMx7LTXxzbjFkbKqzL8gucAlNFxMU X-Received: by 10.112.181.37 with SMTP id dt5mr4050130lbc.10.1435767492580; Wed, 01 Jul 2015 09:18:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.97 with SMTP id c1ls208137laf.66.gmail; Wed, 01 Jul 2015 09:18:12 -0700 (PDT) X-Received: by 10.112.48.68 with SMTP id j4mr25725661lbn.60.1435767492432; Wed, 01 Jul 2015 09:18:12 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id b5si2100724lbk.87.2015.07.01.09.18.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 09:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbcpe5 with SMTP id pe5so16036655lbc.2 for ; Wed, 01 Jul 2015 09:18:12 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr25543706lbc.41.1435767492333; Wed, 01 Jul 2015 09:18: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.108.230 with SMTP id hn6csp714106lbb; Wed, 1 Jul 2015 09:18:11 -0700 (PDT) X-Received: by 10.140.134.69 with SMTP id 66mr13484111qhg.51.1435767490946; Wed, 01 Jul 2015 09:18:10 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h4si2783676qge.80.2015.07.01.09.18.10; Wed, 01 Jul 2015 09:18: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 30D2C61F46; Wed, 1 Jul 2015 16:18:10 +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 EF5E161F33; Wed, 1 Jul 2015 16:17:37 +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 CDF9261F23; Wed, 1 Jul 2015 16:17:33 +0000 (UTC) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id B16D161F1F for ; Wed, 1 Jul 2015 16:17:32 +0000 (UTC) Received: by laar3 with SMTP id r3so44232754laa.0 for ; Wed, 01 Jul 2015 09:17:31 -0700 (PDT) X-Received: by 10.112.41.171 with SMTP id g11mr10501105lbl.123.1435767451602; Wed, 01 Jul 2015 09:17:31 -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 o8sm627324laf.7.2015.07.01.09.17.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 09:17:30 -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 18:17:04 +0200 Message-Id: <1435767428-22409-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435767428-22409-1-git-send-email-christophe.milard@linaro.org> References: <1435767428-22409-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_synchronizers.c 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.171 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 | 3 +++ test/validation/odp_synchronizers.c | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 68525bd..464cdc3 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -19,6 +19,9 @@ ODP_CU_COMMON=common/odp_cunit_common.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto dist_odp_shared_memory_SOURCES = odp_shared_memory.c +odp_synchronizers_LDADD = \ + $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_timer_SOURCES = odp_timer.c odp_ver_abt_log_dbg_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/ver_abt_log_dbg diff --git a/test/validation/odp_synchronizers.c b/test/validation/odp_synchronizers.c index 71342d1..aa3acfa 100644 --- a/test/validation/odp_synchronizers.c +++ b/test/validation/odp_synchronizers.c @@ -1176,7 +1176,7 @@ static void test_atomic_fetch_add_sub(void) test_atomic_functional(test_atomic_fetch_add_sub_thread); } -CU_TestInfo test_odp_atomic[] = { +static CU_TestInfo test_odp_atomic[] = { {"atomic_inc_dec", test_atomic_inc_dec}, {"atomic_add_sub", test_atomic_add_sub}, {"atomic_fetch_inc_dec", test_atomic_fetch_inc_dec}, @@ -1184,7 +1184,7 @@ CU_TestInfo test_odp_atomic[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo synchronizers_suites[] = { {"barrier", NULL, NULL, NULL, NULL, test_odp_barrier}, {"nolocking", init_locks, NULL, NULL, NULL, test_no_locking}, {"spinlock", init_locks, NULL, NULL, NULL, test_odp_spinlock}, @@ -1193,3 +1193,14 @@ CU_SuiteInfo odp_testsuites[] = { {"atomic", NULL, NULL, NULL, NULL, test_odp_atomic}, CU_SUITE_INFO_NULL }; + +static int synchronizers_main(void) +{ + return odp_cunit_run(synchronizers_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return synchronizers_main(); +}