From patchwork Mon Jun 22 16:02:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50172 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 10E2121594 for ; Mon, 22 Jun 2015 16:03:59 +0000 (UTC) Received: by lbcui10 with SMTP id ui10sf5335567lbc.0 for ; Mon, 22 Jun 2015 09:03:58 -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=iIQ09ShPxPWwj2vYUTJtUs5s596jjvLjncKhAXaHJUA=; b=bxeRdCNHvuswY2BXjTdaKGRHaGjrHHifT/81p8XEjrEJn3bsbUsK/1mdsyTq7dJiAJ mh7WuhV7iazDsq2/2ZBQbzWVKNClCKWYrTMzKdImTDq8vom+zL/CJn4HserjweCeTmuc IvELz2bTNir24dxKHLqPOdVrBCR8Ano6DYECImbRNpIUcgRRgHuD48p0MlKi0c47zG6q KA+cPA7cLJaHq4JipSTPL1a3zAOCzjCfN7K/kWUpmR9S2WL9R+qEH3ez441HtVzQzjY9 1usTPrwnxorE802qp+CI2Xlens6/jRhWuNC6sZd1csvrTCP3PUTv0HmcgE+j9m1qWgYY aMjw== X-Gm-Message-State: ALoCoQmIhLu5Q78enSmZLKGV54F9Eu97pWa2vbY1EOX4wULQlYoFkVbslCguDiVP66B/gFL3zWY6 X-Received: by 10.180.86.98 with SMTP id o2mr16472907wiz.4.1434989038010; Mon, 22 Jun 2015 09:03:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.105 with SMTP id lb9ls935176lab.10.gmail; Mon, 22 Jun 2015 09:03:57 -0700 (PDT) X-Received: by 10.112.118.137 with SMTP id km9mr7129759lbb.28.1434989037845; Mon, 22 Jun 2015 09:03:57 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id ue11si16865062lac.46.2015.06.22.09.03.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 09:03:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbvz5 with SMTP id vz5so63683045lbb.0 for ; Mon, 22 Jun 2015 09:03:57 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr31466391lbb.56.1434989037746; Mon, 22 Jun 2015 09:03:57 -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 hn6csp2483387lbb; Mon, 22 Jun 2015 09:03:56 -0700 (PDT) X-Received: by 10.140.239.129 with SMTP id k123mr39914706qhc.66.1434989036499; Mon, 22 Jun 2015 09:03:56 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o1si19472703qgo.51.2015.06.22.09.03.55; Mon, 22 Jun 2015 09:03:56 -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 9F59D61DDF; Mon, 22 Jun 2015 16:03:55 +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 4707C61DE5; Mon, 22 Jun 2015 16:03:27 +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 869A261DE2; Mon, 22 Jun 2015 16:03:22 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by lists.linaro.org (Postfix) with ESMTPS id 7778C61DD8 for ; Mon, 22 Jun 2015 16:03:21 +0000 (UTC) Received: by lbbvz5 with SMTP id vz5so63671924lbb.0 for ; Mon, 22 Jun 2015 09:03:20 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr30153884lbc.41.1434989000162; Mon, 22 Jun 2015 09:03:20 -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 v16sm545043lal.41.2015.06.22.09.03.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Jun 2015 09:03:19 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Mon, 22 Jun 2015 18:02:56 +0200 Message-Id: <1434988980-14008-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434988980-14008-1-git-send-email-christophe.milard@linaro.org> References: <1434988980-14008-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_time.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.182 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_time.c | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index a0277e7..3d8f712 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -45,6 +45,8 @@ dist_odp_random_SOURCES = odp_random.c dist_odp_scheduler_SOURCES = odp_scheduler.c dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c +odp_time_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_time_SOURCES = odp_time.c dist_odp_timer_SOURCES = odp_timer.c dist_odp_packet_SOURCES = odp_packet.c diff --git a/test/validation/odp_time.c b/test/validation/odp_time.c index 8db9894..38d940e 100644 --- a/test/validation/odp_time.c +++ b/test/validation/odp_time.c @@ -65,7 +65,18 @@ CU_TestInfo test_odp_time[] = { CU_TEST_INFO_NULL }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo system_suites[] = { {"Time", NULL, NULL, NULL, NULL, test_odp_time}, CU_SUITE_INFO_NULL }; + +static int system_main(void) +{ + return odp_cunit_run(system_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return system_main(); +}