From patchwork Fri Jul 3 14:27:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50633 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 D52F822916 for ; Fri, 3 Jul 2015 14:28:29 +0000 (UTC) Received: by widjy10 with SMTP id jy10sf33197334wid.3 for ; Fri, 03 Jul 2015 07:28:29 -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=s0RCEDnZRtVnUpfhE5mi1+1g5/vfX0KvaIEzEEsz64g=; b=LJR81nhRxCdKqYHT9SGI3NJNOnwVe3Fs0yxgD1Z9uX7VbwsWZ4ClYs1fkBayBnRQL5 MI35zRvVZOhq2eu9DBkYRqXKGUny9c7lP/5s3UZvg3NIgeSJIcc0p521SDGMG6hjoIlT lWC7IZEDl5HHg3xPcYY/tdrwKNshAq0In2vc1E8zCGfa27hArWEQLoRXiMqD8KKIN/nR SrUba8Yvlt0anleTUl1swV5vAK9FgoGD3JX1biwsKrrkktJvoWs5ijILtGJquoXF2eDj y53raREwuJvDV8JOfvDR2g8SKrwznvClL7C2AAEKZ88bC4Oo9BfYR03B8cg//mFO6XIT SZAA== X-Gm-Message-State: ALoCoQk86s0zM96BH9BkqDkugoNRe4/OTxM9tnmv2YmePxYtTjzJX1YLWVSFn3h6GNlrGXf7PfTg X-Received: by 10.194.90.6 with SMTP id bs6mr11837410wjb.4.1435933709176; Fri, 03 Jul 2015 07:28:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.99 with SMTP id bf3ls494130lab.21.gmail; Fri, 03 Jul 2015 07:28:28 -0700 (PDT) X-Received: by 10.152.28.194 with SMTP id d2mr36831783lah.122.1435933708882; Fri, 03 Jul 2015 07:28:28 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id p3si7372868lal.16.2015.07.03.07.28.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jul 2015 07:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagh6 with SMTP id h6so87323789lag.2 for ; Fri, 03 Jul 2015 07:28:28 -0700 (PDT) X-Received: by 10.112.234.200 with SMTP id ug8mr35910657lbc.117.1435933708775; Fri, 03 Jul 2015 07:28:28 -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 hn6csp68419lbb; Fri, 3 Jul 2015 07:28:27 -0700 (PDT) X-Received: by 10.55.25.217 with SMTP id 86mr73379117qkz.4.1435933706133; Fri, 03 Jul 2015 07:28:26 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 22si10499153qht.56.2015.07.03.07.28.24; Fri, 03 Jul 2015 07:28:26 -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 C19CB61FC3; Fri, 3 Jul 2015 14:28: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 A48DB61FC4; Fri, 3 Jul 2015 14:27:54 +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 6E12861F82; Fri, 3 Jul 2015 14:27:51 +0000 (UTC) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id 616D361F82 for ; Fri, 3 Jul 2015 14:27:50 +0000 (UTC) Received: by lagh6 with SMTP id h6so87302657lag.2 for ; Fri, 03 Jul 2015 07:27:49 -0700 (PDT) X-Received: by 10.112.63.169 with SMTP id h9mr4512343lbs.104.1435933668843; Fri, 03 Jul 2015 07:27:48 -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 j2sm2371261lag.10.2015.07.03.07.27.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jul 2015 07:27:48 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 3 Jul 2015 16:27:33 +0200 Message-Id: <1435933656-6848-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435933656-6848-1-git-send-email-christophe.milard@linaro.org> References: <1435933656-6848-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 1/4] validation: own main in odp_shared_memory.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.215.47 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_shared_memory.c | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 8401a07..6a02f0a 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -16,6 +16,9 @@ bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) ODP_CU_COMMON=common/odp_cunit_common.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto +odp_shared_memory_LDADD = \ + $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_timer_SOURCES = odp_timer.c diff --git a/test/validation/odp_shared_memory.c b/test/validation/odp_shared_memory.c index 938ae65..b7f431a 100644 --- a/test/validation/odp_shared_memory.c +++ b/test/validation/odp_shared_memory.c @@ -75,13 +75,23 @@ static void test_odp_shm_sunnyday(void) odp_cunit_thread_exit(&thrdarg); } -CU_TestInfo test_odp_shm[] = { +static CU_TestInfo test_odp_shm[] = { {"test_odp_shm_creat", test_odp_shm_sunnyday}, CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo shmem_suites[] = { {"Shared Memory", NULL, NULL, NULL, NULL, test_odp_shm}, CU_SUITE_INFO_NULL, }; +static int shmem_main(void) +{ + return odp_cunit_run(shmem_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return shmem_main(); +}