From patchwork Tue Jun 30 16:14:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50485 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 50F8C229DF for ; Tue, 30 Jun 2015 16:15:50 +0000 (UTC) Received: by laer2 with SMTP id r2sf5236913lae.3 for ; Tue, 30 Jun 2015 09:15:48 -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=fabgxfA3U1R0HfBTosOkCf6Rj/qrcRiWf4HlFiXRbuY=; b=DVkYmZrd6VZ5onB6scdKD4Gm/i1wfrQKGJkGPQxzua0wDXvvisqOgowMQAu8XWzz5m ighL8nHW7w3ugso75D7G+nO6ht4nOvTNJ/U7X6WgyOzMXBpNbQv/P+JghdFfqQDcZ6hn CUXM2tWnJufZ536aqwGinyeLoeDdOPITZHRUSTi8lQYx3lAyHJ42HRINQIxDsEty+rkD W3gdTkA+qHxzkIBjH3aJr3ybqaQV15hlm2uP7pgfMY8+F9P98fRMu4calB8npqRupqv9 8n1a5CTo4lg+0OLYdtwXX7RPGy7kodYgml8RdJAL2KdQP7NyzKTYyoD9RIR5FwVYOewu naFQ== X-Gm-Message-State: ALoCoQlYobG+kZz7tlkr/5wboC1D8Hex27AF26BQbcPHcUUaNrAOnE7c8+rzaUF3zckC2I4hLzcr X-Received: by 10.194.90.6 with SMTP id bs6mr3506943wjb.4.1435680948840; Tue, 30 Jun 2015 09:15:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.204 with SMTP id jq12ls66540lab.4.gmail; Tue, 30 Jun 2015 09:15:48 -0700 (PDT) X-Received: by 10.112.50.230 with SMTP id f6mr20416728lbo.17.1435680948661; Tue, 30 Jun 2015 09:15:48 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id lg6si38523476lab.13.2015.06.30.09.15.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 09:15:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lagx9 with SMTP id x9so20120125lag.1 for ; Tue, 30 Jun 2015 09:15:48 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr20861383lbb.35.1435680948557; Tue, 30 Jun 2015 09:15:48 -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 hn6csp2572767lbb; Tue, 30 Jun 2015 09:15:47 -0700 (PDT) X-Received: by 10.140.48.129 with SMTP id o1mr26827427qga.21.1435680947012; Tue, 30 Jun 2015 09:15:47 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f36si43514030qki.120.2015.06.30.09.15.46; Tue, 30 Jun 2015 09:15:47 -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 51F5261B2B; Tue, 30 Jun 2015 16:15:46 +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 B82CC61F19; Tue, 30 Jun 2015 16:15:15 +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 EDB9F61F09; Tue, 30 Jun 2015 16:15:08 +0000 (UTC) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id A1ADA61EFB for ; Tue, 30 Jun 2015 16:15:07 +0000 (UTC) Received: by laar3 with SMTP id r3so20193219laa.0 for ; Tue, 30 Jun 2015 09:15:06 -0700 (PDT) X-Received: by 10.112.136.166 with SMTP id qb6mr20775539lbb.54.1435680906217; Tue, 30 Jun 2015 09:15:06 -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 x4sm9024476lag.40.2015.06.30.09.15.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 09:15:05 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Tue, 30 Jun 2015 18:14:52 +0200 Message-Id: <1435680896-11924-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435680896-11924-1-git-send-email-christophe.milard@linaro.org> References: <1435680896-11924-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_scheduler.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.52 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_scheduler.c | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index a012ccb..872064a 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -21,6 +21,9 @@ bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) ODP_CU_COMMON=common/odp_cunit_common.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto +odp_scheduler_LDADD = \ + $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_scheduler_SOURCES = odp_scheduler.c dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c diff --git a/test/validation/odp_scheduler.c b/test/validation/odp_scheduler.c index c2eb996..3b98202 100644 --- a/test/validation/odp_scheduler.c +++ b/test/validation/odp_scheduler.c @@ -764,7 +764,7 @@ static int schd_suite_term(void) return 0; } -struct CU_TestInfo schd_tests[] = { +static struct CU_TestInfo schd_tests[] = { {"schedule_wait_time", test_schedule_wait_time}, {"schedule_num_prio", test_schedule_num_prio}, {"schedule_queue_destroy", test_schedule_queue_destroy}, @@ -798,8 +798,19 @@ struct CU_TestInfo schd_tests[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo scheduler_suites[] = { {"Scheduler", schd_suite_init, schd_suite_term, NULL, NULL, schd_tests}, CU_SUITE_INFO_NULL, }; + +static int scheduler_main(void) +{ + return odp_cunit_run(scheduler_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return scheduler_main(); +}