From patchwork Fri Nov 21 20:16:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 41366 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7884425CF2 for ; Fri, 21 Nov 2014 20:17:23 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf3490485eek.4 for ; Fri, 21 Nov 2014 12:17:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id: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=ZKyuvfxEYw+Gj9MaYVdPzrZX/MfcR3unevguBEfdd3I=; b=NgrlWK0HFL3GmIfk1FnFG7VOUVcidO/kHnAlB5TUo5iGf2H4oHFyhgqnf40aWtQtWX TrJSVqinXc+GkY+C8UCcILmf2FUPTnyLTlplfWz5JCDRBIFu9MGZomL3g/uKfnSOq7WX FwVOkic4gSsI7BDMn8jVkcJbwUX5Bh+6qF0b1nUTzdBZCMtyywO6GvRJdQaDTyo8fG5e 7q03TOQWW7luiA2fgyw8lgte1SXXCNf1kmCDxpEzO5IG8R1EfBMsYDCApe7SdJGJvLcJ Wnb8j01CooEMsgI65CqfcVwgGZYX/SBIhiPTdT9yX5iSyC+8h8nxd/9SV6vlkfSYD8kv 6eBQ== X-Gm-Message-State: ALoCoQkwkwkJulpdJyn4E0fSzA9v1R4qbWJo1OFpdkXQnUU03YmDAJvnOiok2FixszQ18+OGkQtV X-Received: by 10.152.29.226 with SMTP id n2mr1431065lah.9.1416601042709; Fri, 21 Nov 2014 12:17:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.10.39 with SMTP id f7ls225615lab.75.gmail; Fri, 21 Nov 2014 12:17:22 -0800 (PST) X-Received: by 10.152.21.199 with SMTP id x7mr7417065lae.66.1416601042335; Fri, 21 Nov 2014 12:17:22 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id aq3si7097782lbc.78.2014.11.21.12.17.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Nov 2014 12:17:22 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id hs14so4699383lab.8 for ; Fri, 21 Nov 2014 12:17:22 -0800 (PST) X-Received: by 10.112.62.166 with SMTP id z6mr7290669lbr.74.1416601042215; Fri, 21 Nov 2014 12:17:22 -0800 (PST) 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.184.201 with SMTP id ew9csp158980lbc; Fri, 21 Nov 2014 12:17:21 -0800 (PST) X-Received: by 10.229.63.71 with SMTP id a7mr9147789qci.24.1416601039984; Fri, 21 Nov 2014 12:17:19 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c90si8046284qgf.111.2014.11.21.12.17.18 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Nov 2014 12:17:19 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xrudp-00034D-KK; Fri, 21 Nov 2014 20:17:17 +0000 Received: from mail-qc0-f177.google.com ([209.85.216.177]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xrudi-000340-Vl for lng-odp@lists.linaro.org; Fri, 21 Nov 2014 20:17:10 +0000 Received: by mail-qc0-f177.google.com with SMTP id x3so4286993qcv.22 for ; Fri, 21 Nov 2014 12:17:05 -0800 (PST) X-Received: by 10.140.95.214 with SMTP id i80mr8943161qge.48.1416601025760; Fri, 21 Nov 2014 12:17:05 -0800 (PST) Received: from fedora1.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id q90sm5543819qgd.4.2014.11.21.12.17.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Nov 2014 12:17:05 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 21 Nov 2014 15:16:54 -0500 Message-Id: <1416601014-61601-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH] test: Display implementation version X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@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.49 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 Ensure that when run each test suite displays the ODP API and implementation strings immediately after the CUnit version string Signed-off-by: Mike Holmes --- test/validation/odp_crypto.c | 11 +++++++++-- test/validation/odp_init.c | 5 +++-- test/validation/odp_queue.c | 7 +++++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/test/validation/odp_crypto.c b/test/validation/odp_crypto.c index 985302a..dd3784f 100644 --- a/test/validation/odp_crypto.c +++ b/test/validation/odp_crypto.c @@ -16,9 +16,16 @@ #define SHM_COMPL_POOL_SIZE (128*1024) #define SHM_COMPL_POOL_BUF_SIZE 128 +static int init_suite(void) +{ + printf("\tODP version: %s\n", odp_version_api_str()); + printf("\tODP implementation: %s\n", odp_version_impl_str()); + return 0; +} + CU_SuiteInfo suites[] = { - { ODP_CRYPTO_SYNC_INP , NULL, NULL, NULL, NULL, test_array_sync }, - { ODP_CRYPTO_ASYNC_INP , NULL, NULL, NULL, NULL, test_array_async }, + {ODP_CRYPTO_SYNC_INP, init_suite, NULL, NULL, NULL, test_array_sync }, + {ODP_CRYPTO_ASYNC_INP, init_suite, NULL, NULL, NULL, test_array_async }, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/odp_init.c b/test/validation/odp_init.c index 88e6235..538f30e 100644 --- a/test/validation/odp_init.c +++ b/test/validation/odp_init.c @@ -20,9 +20,10 @@ static void test_odp_init_global(void) CU_ASSERT(status == 0); } -static int init(void) +static int init_suite(void) { printf("\tODP version: %s\n", odp_version_api_str()); + printf("\tODP implementation: %s\n", odp_version_impl_str()); return 0; } @@ -38,7 +39,7 @@ int main(void) if (CUE_SUCCESS != CU_initialize_registry()) return CU_get_error(); /* add a suite to the registry */ - ptr_suite = CU_add_suite(__FILE__, init, finalise); + ptr_suite = CU_add_suite(__FILE__, init_suite, finalise); if (NULL == ptr_suite) { CU_cleanup_registry(); return CU_get_error(); diff --git a/test/validation/odp_queue.c b/test/validation/odp_queue.c index 4d233e0..bced19e 100644 --- a/test/validation/odp_queue.c +++ b/test/validation/odp_queue.c @@ -105,8 +105,11 @@ static void test_odp_queue_sunnyday(void) return; } -static int init(void) +static int init_suite(void) { + printf("\tODP version: %s\n", odp_version_api_str()); + printf("\tODP implementation: %s\n", odp_version_impl_str()); + if (0 != odp_init_global(NULL, NULL)) { printf("odp_init_global fail.\n"); return -1; @@ -138,7 +141,7 @@ int main(void) return CU_get_error(); /* add the tests to the queue suite */ - ptr_suite = CU_add_suite(__FILE__, init, finalize); + ptr_suite = CU_add_suite(__FILE__, init_suite, finalize); if (NULL == ptr_suite) { CU_cleanup_registry(); return CU_get_error();