From patchwork Tue Jun 23 09:21:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50203 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 5AB2121575 for ; Tue, 23 Jun 2015 09:22:31 +0000 (UTC) Received: by laka10 with SMTP id a10sf1260556lak.2 for ; Tue, 23 Jun 2015 02:22:30 -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=AlkCUEABK0VbQejoY4NfaCMaVi7tEo9/FlZLuZZoTvI=; b=Tm7zgArbhbTSsTbHbN9n8JPNb7CB4d0ZYb5gIiF/ATJ68q77KsIWeDYFOXy5wVwEEU J5RL+KeDZ+QwSUT4Muks0ktrS/kKV27sziTEZbxX8LgwyQNnSYm5DFUEjNS3WL/T4bqu tyiyADi4H8NwoNAcJLqzyAUuAL3YDikl41zfRndtHFUa6fuupsjshVt174Cxj1YftiUB 6jMkwdmYWcNmUZ4cPZ5Qdw+bdzNltmIqhkMnoJQoHFxKmSi2uoYMpPa6cxhtt0JpcNCh a25Gdnh54OLmSn1aSkdSct6cFk9NK63ZVoBbdYWBLZEtwa1ySkh/AoZVnorSe37dgFV0 830g== X-Gm-Message-State: ALoCoQmRolZ2Gc7qA7LJOupQqQxceS3H85rvjCl76m6/5QHTXqZPfpbSIeaKi3T5RqnZGB3bFL1W X-Received: by 10.180.97.9 with SMTP id dw9mr654733wib.2.1435051350053; Tue, 23 Jun 2015 02:22:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.226 with SMTP id q2ls21053lae.73.gmail; Tue, 23 Jun 2015 02:22:29 -0700 (PDT) X-Received: by 10.112.202.234 with SMTP id kl10mr33811651lbc.51.1435051349885; Tue, 23 Jun 2015 02:22:29 -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 aw7si18811517lbc.80.2015.06.23.02.22.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 02:22:29 -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 laka10 with SMTP id a10so2658719lak.0 for ; Tue, 23 Jun 2015 02:22:29 -0700 (PDT) X-Received: by 10.153.5.38 with SMTP id cj6mr4042735lad.36.1435051349787; Tue, 23 Jun 2015 02:22:29 -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 hn6csp2938250lbb; Tue, 23 Jun 2015 02:22:28 -0700 (PDT) X-Received: by 10.140.91.246 with SMTP id z109mr42654211qgd.39.1435051348478; Tue, 23 Jun 2015 02:22:28 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l76si21625001qkh.86.2015.06.23.02.22.27; Tue, 23 Jun 2015 02:22:28 -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 8F77161F5A; Tue, 23 Jun 2015 09:22:27 +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 4A94561EFC; Tue, 23 Jun 2015 09:21:55 +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 5BD2A61EF3; Tue, 23 Jun 2015 09:21:48 +0000 (UTC) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id ED82F61EEA for ; Tue, 23 Jun 2015 09:21:46 +0000 (UTC) Received: by lacny3 with SMTP id ny3so2589726lac.3 for ; Tue, 23 Jun 2015 02:21:45 -0700 (PDT) X-Received: by 10.152.6.166 with SMTP id c6mr15214397laa.62.1435051305743; Tue, 23 Jun 2015 02:21:45 -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 lf2sm3666258lac.39.2015.06.23.02.21.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jun 2015 02:21:44 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Tue, 23 Jun 2015 11:21:26 +0200 Message-Id: <1435051290-24369-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435051290-24369-1-git-send-email-christophe.milard@linaro.org> References: <1435051290-24369-1-git-send-email-christophe.milard@linaro.org> X-Topics: Classification patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3 1/5] validation: own main in odp_classification.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 --- test/validation/Makefile.am | 3 +++ test/validation/odp_classification.c | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index a0277e7..227e7a2 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -33,6 +33,9 @@ ODP_CU_COMMON=common/odp_cunit_common.c odp_buffer_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/buffer dist_odp_buffer_SOURCES = odp_buffer.c odp_classification_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/classification +odp_classification_LDADD = \ + $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_classification_SOURCES = classification/odp_classification_tests.c \ classification/odp_classification_basic.c \ odp_classification.c diff --git a/test/validation/odp_classification.c b/test/validation/odp_classification.c index b501015..31c885d 100644 --- a/test/validation/odp_classification.c +++ b/test/validation/odp_classification.c @@ -4,9 +4,11 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include +#include #include "odp_classification_testsuites.h" -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo classification_suites[] = { { .pName = "classification basic", .pTests = classification_basic, }, @@ -17,3 +19,14 @@ CU_SuiteInfo odp_testsuites[] = { }, CU_SUITE_INFO_NULL, }; + +static int classification_main(void) +{ + return odp_cunit_run(classification_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return classification_main(); +}