From patchwork Fri Jun 26 15:01:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50357 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 41DA6228FD for ; Fri, 26 Jun 2015 15:04:24 +0000 (UTC) Received: by wicnd19 with SMTP id nd19sf6087292wic.0 for ; Fri, 26 Jun 2015 08:04:23 -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=ukj3GncnPiD6VAMzba5Ssy2BOgzrp5L6rhuC7IPrhq0=; b=Fi45b4WrnF7Y5vccCA7u+s5/GC6hNT/fQhkl9/7Chx3nPaz8g+NYIB9jyivegn9Pep sBAp6W2TJkXByRoxR2XBwHegdHDuiT77ozKek+i8DPSaiCr3GCyhLUZDKLu5T5TqajfL HO9r6jxaaQL//86hmpB2cxUeuW804EqBRlI4j/ocXlsdKMWpJrXxNTd9iw1SQp1dHnzT QSRx6azZw86H35QY5C5Zu9OBxW/RNEPOADkhVrz39JyQZERJxNMvoQrL7mXLSCHXAjDe I0WNaynOhw9elMcEZiDWM83MIG6DjAWLgGA5pqUc7eDvhXo3gjCOrvm7i7SwsHvx/Ybd fMjg== X-Gm-Message-State: ALoCoQkvOxqbhjKJ9ct2rgG5sikxd2R6stISFSKBG2qT06MtJ9uMlCjMWijRBwnfbuLF0KdYVoYJ X-Received: by 10.194.209.180 with SMTP id mn20mr1384623wjc.5.1435331063519; Fri, 26 Jun 2015 08:04:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.228 with SMTP id z4ls537796lal.90.gmail; Fri, 26 Jun 2015 08:04:23 -0700 (PDT) X-Received: by 10.112.92.99 with SMTP id cl3mr2076494lbb.34.1435331063282; Fri, 26 Jun 2015 08:04:23 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id gj2si27610247lbc.159.2015.06.26.08.04.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 08:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbwc1 with SMTP id wc1so66248082lbb.2 for ; Fri, 26 Jun 2015 08:04:23 -0700 (PDT) X-Received: by 10.152.88.68 with SMTP id be4mr1840410lab.76.1435331063028; Fri, 26 Jun 2015 08:04:23 -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 hn6csp1387387lbb; Fri, 26 Jun 2015 08:04:22 -0700 (PDT) X-Received: by 10.140.236.77 with SMTP id h74mr2955038qhc.21.1435331061712; Fri, 26 Jun 2015 08:04:21 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o103si33207766qkh.76.2015.06.26.08.03.51; Fri, 26 Jun 2015 08:04:21 -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 82F726210F; Fri, 26 Jun 2015 15:03:51 +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 815E062106; Fri, 26 Jun 2015 15:02:24 +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 254AC61D60; Fri, 26 Jun 2015 15:02:12 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by lists.linaro.org (Postfix) with ESMTPS id 55FA661D37 for ; Fri, 26 Jun 2015 15:02:09 +0000 (UTC) Received: by lbbvz5 with SMTP id vz5so66216401lbb.0 for ; Fri, 26 Jun 2015 08:02:08 -0700 (PDT) X-Received: by 10.112.118.137 with SMTP id km9mr2053590lbb.28.1435330928074; Fri, 26 Jun 2015 08:02:08 -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 q17sm5380493lal.37.2015.06.26.08.02.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jun 2015 08:02:07 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 26 Jun 2015 17:01:47 +0200 Message-Id: <1435330910-15536-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435330910-15536-1-git-send-email-christophe.milard@linaro.org> References: <1435330910-15536-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 2/5] validation: own main in odp_buffer.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.178 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_buffer.c | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index aa41d63..c9aac49 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -22,6 +22,8 @@ bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) ODP_CU_COMMON=common/odp_cunit_common.c odp_buffer_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/buffer +odp_buffer_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_buffer_SOURCES = odp_buffer.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto odp_random_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ diff --git a/test/validation/odp_buffer.c b/test/validation/odp_buffer.c index f2c0c9b..60a9f71 100644 --- a/test/validation/odp_buffer.c +++ b/test/validation/odp_buffer.c @@ -148,7 +148,7 @@ static CU_TestInfo buffer_tests[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo buffer_suites[] = { { .pName = "buffer tests", .pTests = buffer_tests, .pInitFunc = buffer_testsuite_init, @@ -156,3 +156,14 @@ CU_SuiteInfo odp_testsuites[] = { }, CU_SUITE_INFO_NULL, }; + +static int buffer_main(void) +{ + return odp_cunit_run(buffer_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return buffer_main(); +}