From patchwork Tue Jun 23 10:08:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50209 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68EFD216E1 for ; Tue, 23 Jun 2015 10:10:27 +0000 (UTC) Received: by lagh6 with SMTP id h6sf1624953lag.0 for ; Tue, 23 Jun 2015 03:10:26 -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=FZBBkWCKiOBMIuGzTLfb8iunegv33n8usZ9EHvX76JU=; b=lKrr3jxrii5/Nm9BNsrXSU0WPjF2cgetKrqlM0/qioRIVE2mg8H6/EEci+VgayvI/A 7XxwNEB3aXzp6Cg1v+fMBzMBgwQTv3bXO4ALLUbtsusJoQFPgmVyQHRQyq6fOrk+WavQ 6mBVS+Zx1CtYhdEhQSKaK+glLUYAXl3xvSIUca2lC+IQunMO1qHb/9VIH86es8yPi56X 8MQ6Z4jlBCjUVbBBdvw9SZC6v5cPX20ndxj32sHKoe5CCKFyT1644HL6+/3Jen9h2l+g 5W13umW9GoLIdIzpDxlU4Ku94/KMtB2jdq1D9SDqElOBbEJ2uo7d3AVWx7UMNhIt2VNY fIPQ== X-Gm-Message-State: ALoCoQkGWTQnhawOm7bKrUFX4bxLk1W8AV2P1I0uO0Jdeo5TKhxLJAWPAwaPNXXiUHTFbnFa17+7 X-Received: by 10.112.14.101 with SMTP id o5mr31259308lbc.3.1435054226400; Tue, 23 Jun 2015 03:10:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.131 with SMTP id o3ls28897lal.101.gmail; Tue, 23 Jun 2015 03:10:26 -0700 (PDT) X-Received: by 10.112.205.1 with SMTP id lc1mr7868812lbc.94.1435054226257; Tue, 23 Jun 2015 03:10:26 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id wm3si18876305lac.177.2015.06.23.03.10.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 03:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lagx9 with SMTP id x9so3353657lag.1 for ; Tue, 23 Jun 2015 03:10:26 -0700 (PDT) X-Received: by 10.152.179.234 with SMTP id dj10mr27713885lac.73.1435054226163; Tue, 23 Jun 2015 03:10:26 -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 hn6csp2963319lbb; Tue, 23 Jun 2015 03:10:25 -0700 (PDT) X-Received: by 10.140.29.195 with SMTP id b61mr40621768qgb.2.1435054224870; Tue, 23 Jun 2015 03:10:24 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n63si21707115qga.13.2015.06.23.03.10.23; Tue, 23 Jun 2015 03:10:24 -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 04CDD61DA9; Tue, 23 Jun 2015 10:10:23 +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 299F961EF8; Tue, 23 Jun 2015 10:08:58 +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 938AA61D70; Tue, 23 Jun 2015 10:08:55 +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 1AA1F61D70 for ; Tue, 23 Jun 2015 10:08:53 +0000 (UTC) Received: by lacny3 with SMTP id ny3so3292318lac.3 for ; Tue, 23 Jun 2015 03:08:51 -0700 (PDT) X-Received: by 10.152.115.199 with SMTP id jq7mr6359304lab.113.1435054131757; Tue, 23 Jun 2015 03:08:51 -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 l3sm5415795lbj.46.2015.06.23.03.08.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jun 2015 03:08:50 -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 12:08:35 +0200 Message-Id: <1435054119-1216-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435054119-1216-1-git-send-email-christophe.milard@linaro.org> References: <1435054119-1216-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_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.215.46 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 0df42be..237067f 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -40,6 +40,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(); +}