From patchwork Fri Jul 3 11:49:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50624 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 D29A522916 for ; Fri, 3 Jul 2015 11:52:52 +0000 (UTC) Received: by laer2 with SMTP id r2sf27745357lae.3 for ; Fri, 03 Jul 2015 04:52:51 -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=nge8EJ5ZQCOpYmHvfTDBQGCqcftIZJAhO9SEOcF/hGs=; b=GtbxjD/cvCh1ymQCGwLSUiUhWifE/rHRBByK924m1OuDJPasVi4sCfGE5vNu9v3p1F hGhCPrNL44BeIvtTe8CHyIi/fbIFVQbVU7Y6NYqZ5m/wrYh34fH4OY4g+mlCC8SA+yc5 eth9w9d6lRYE/A0Ebxjt4TzVKGPBHWo9MnsQH6X/M6TnEon+IqVrGgivQ1yB/Hvwbl7M m/ytPe7qeqs+vpo09nLV8l78RlHGchX25uZc3sIqwhA9xswQO5dzS6FIXQT1OLMR3SqV 3yHi7cBadQ/A2Jt9pvxNqn1ZhNT0NzovoxSDCF7oi+405IM07PB0SGBvhJxpGJFdBEW0 y0nQ== X-Gm-Message-State: ALoCoQmWoGzqe14qUEUtd34YQiEEuGaoOM2pCRRJsMF5F/pcs/7od9pqopf+js5069FTxssQTZog X-Received: by 10.180.189.50 with SMTP id gf18mr20315772wic.3.1435924371495; Fri, 03 Jul 2015 04:52:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.130 with SMTP id b2ls402567lah.97.gmail; Fri, 03 Jul 2015 04:52:51 -0700 (PDT) X-Received: by 10.112.204.199 with SMTP id la7mr35573164lbc.114.1435924371330; Fri, 03 Jul 2015 04:52:51 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id mh3si7027258lbb.59.2015.07.03.04.52.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jul 2015 04:52:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagh6 with SMTP id h6so82304259lag.2 for ; Fri, 03 Jul 2015 04:52:51 -0700 (PDT) X-Received: by 10.152.7.7 with SMTP id f7mr35750470laa.106.1435924371058; Fri, 03 Jul 2015 04:52:51 -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 hn6csp1132634lbb; Fri, 3 Jul 2015 04:52:50 -0700 (PDT) X-Received: by 10.140.237.208 with SMTP id i199mr52947064qhc.103.1435924369809; Fri, 03 Jul 2015 04:52:49 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w134si10019184qha.90.2015.07.03.04.52.19; Fri, 03 Jul 2015 04:52:49 -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 97BA962055; Fri, 3 Jul 2015 11:52:19 +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 B5E2761806; Fri, 3 Jul 2015 11:50:34 +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 F207061FC4; Fri, 3 Jul 2015 11:50:28 +0000 (UTC) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by lists.linaro.org (Postfix) with ESMTPS id 44D8A61CFF for ; Fri, 3 Jul 2015 11:50:00 +0000 (UTC) Received: by lagx9 with SMTP id x9so82292140lag.1 for ; Fri, 03 Jul 2015 04:49:58 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr35391017laj.88.1435924198880; Fri, 03 Jul 2015 04:49:58 -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 w6sm2271047lbs.37.2015.07.03.04.49.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jul 2015 04:49:57 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 3 Jul 2015 13:49:36 +0200 Message-Id: <1435924179-30967-4-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435924179-30967-1-git-send-email-christophe.milard@linaro.org> References: <1435924179-30967-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 3/6] validation: own main in odp_system 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.54 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/system/system.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 6e4d227..cbd7f5d 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -19,6 +19,8 @@ ODP_CU_COMMON=common/odp_cunit_common.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_timer_SOURCES = odp_timer.c +odp_system_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la odp_system_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/system dist_odp_system_SOURCES = system/system.c diff --git a/test/validation/system/system.c b/test/validation/system/system.c index b462e8d..212dba9 100644 --- a/test/validation/system/system.c +++ b/test/validation/system/system.c @@ -82,7 +82,7 @@ static void test_odp_sys_cpu_hz(void) CU_ASSERT(0 < hz); } -CU_TestInfo test_odp_system[] = { +static CU_TestInfo test_odp_system[] = { {"odp version", test_odp_version_numbers}, {"odp_cpu_count", test_odp_cpu_count}, {"odp_sys_cache_line_size", test_odp_sys_cache_line_size}, @@ -93,7 +93,18 @@ CU_TestInfo test_odp_system[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo system_suites[] = { {"System Info", NULL, NULL, NULL, NULL, test_odp_system}, 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(); +}