From patchwork Mon Jun 29 15:39:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50432 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 97BFE228D9 for ; Mon, 29 Jun 2015 15:40:22 +0000 (UTC) Received: by lagx9 with SMTP id x9sf20630237lag.2 for ; Mon, 29 Jun 2015 08:40:21 -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=Is735MVJOSTh5p4F5qOUB3d+nuKhQ/V63UcFNAdmLGI=; b=QElhYtofLbNjMYzQXRRBs0nOhQlwZR+NWLX8tdNfFcFoHDxN7J6IfrXgZFq04dW534 IB3GxOa2J2mTLotw5sGvXm9u/Hr0NLatpr45xu+PcPBdljtH3GbuTlPkaiBT2HwyV0qd ejJ+Lbo1/wKOlxku2xhx+4+lB6WjRKGgAhTXTndQS99UDwuCjzdvx2/k2z/9aado+jVR qMdRRg+mH37yIqUD4S/aqF1HEzRPv9m2fde1DkRm9hyE7mA+loAyyA/HQQxgVDWBUyS8 dtgzSNpYUdGq1DIcy5+fCkMUYWUu3UAz7ADxpb4visMEGoOkgTHNu1919crj2TKIKLs8 +v1Q== X-Gm-Message-State: ALoCoQkEzMcIcltaxm+ceq4rXp7h4vrxEv+mU4jkO6ViM3Bl1x7g4jAYQJeZyCnRynG1y5vNYxiz X-Received: by 10.180.105.226 with SMTP id gp2mr8978547wib.1.1435592421399; Mon, 29 Jun 2015 08:40:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.103 with SMTP id r7ls646225lah.106.gmail; Mon, 29 Jun 2015 08:40:21 -0700 (PDT) X-Received: by 10.112.89.201 with SMTP id bq9mr14502531lbb.39.1435592421229; Mon, 29 Jun 2015 08:40:21 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id dn11si35334973lac.122.2015.06.29.08.40.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 08:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by lagh6 with SMTP id h6so58660476lag.2 for ; Mon, 29 Jun 2015 08:40:21 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr14401793lbc.41.1435592421133; Mon, 29 Jun 2015 08:40:21 -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 hn6csp1791445lbb; Mon, 29 Jun 2015 08:40:20 -0700 (PDT) X-Received: by 10.55.48.18 with SMTP id w18mr33389752qkw.34.1435592419821; Mon, 29 Jun 2015 08:40:19 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m65si42059157qge.101.2015.06.29.08.40.19; Mon, 29 Jun 2015 08:40:19 -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 E5C3961D88; Mon, 29 Jun 2015 15:40:18 +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 59AE761E07; Mon, 29 Jun 2015 15:39:53 +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 E0E0E61E00; Mon, 29 Jun 2015 15:39:47 +0000 (UTC) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id B640361B1F for ; Mon, 29 Jun 2015 15:39:45 +0000 (UTC) Received: by lagc2 with SMTP id c2so14816735lag.3 for ; Mon, 29 Jun 2015 08:39:44 -0700 (PDT) X-Received: by 10.112.72.132 with SMTP id d4mr14742659lbv.1.1435592384450; Mon, 29 Jun 2015 08:39: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 q9sm10847143lag.20.2015.06.29.08.39.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Jun 2015 08:39:43 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Mon, 29 Jun 2015 17:39:30 +0200 Message-Id: <1435592374-3517-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435592374-3517-1-git-send-email-christophe.milard@linaro.org> References: <1435592374-3517-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 1/5] validation: own main in odp_queue.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.42 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 Reviewed-by: Stuart Haslam --- test/validation/Makefile.am | 2 ++ test/validation/odp_queue.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index d54b937..1a774e1 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -27,6 +27,8 @@ ODP_CU_COMMON=common/odp_cunit_common.c odp_buffer_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/buffer dist_odp_buffer_SOURCES = odp_buffer.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto +odp_queue_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_queue_SOURCES = odp_queue.c dist_odp_scheduler_SOURCES = odp_scheduler.c dist_odp_shared_memory_SOURCES = odp_shared_memory.c diff --git a/test/validation/odp_queue.c b/test/validation/odp_queue.c index 01a704c..e944677 100644 --- a/test/validation/odp_queue.c +++ b/test/validation/odp_queue.c @@ -107,13 +107,24 @@ static void test_odp_queue_sunnyday(void) return; } -CU_TestInfo test_odp_queue[] = { +static CU_TestInfo test_odp_queue[] = { {"queue sunnyday", test_odp_queue_sunnyday}, CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo queue_suites[] = { {"Queue", init_queue_suite, init_queue_finalize, NULL, NULL, test_odp_queue}, CU_SUITE_INFO_NULL, }; + +static int queue_main(void) +{ + return odp_cunit_run(queue_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return queue_main(); +}