From patchwork Mon Nov 24 20:11:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 41420 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 489ED25E18 for ; Mon, 24 Nov 2014 20:12:06 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf2468117wib.2 for ; Mon, 24 Nov 2014 12:12:05 -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:in-reply-to :references: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=o3Y9WGzU8y6IxtXSLhAjN7gFZQ3ZWMKdPgz0DmgKyug=; b=YyRKQCyhaa3VajSNzE4oOuzBxabrUZyxTxBqP0JejEGiCU7HnFQEXOTicOOSvGg6ze w8xh3xuKOca4bwbG0jzx9BCvXYrzak5fSwp77qxY4nRhm5nzoP+r4zkFMWAk+udmU+ry 35q4ZA1b5J23T9HPUWzmPG09bbLAdIv1RXxF76eZKnm97PR8xEhPHBPXAhXjXtH2BsAa shdZcU4z0I652JKuOpCFUd44mQr7Pu+FpUh9KkJTxSh8jJOCQ4WLVjwwTL2OLpLGWacw tgOF1B/BivFuzSeC52GtCjvDQRH3U5qBzpHizbpoY9ian6QzAWOmjCWkBYQVCRRCFciE z4YQ== X-Gm-Message-State: ALoCoQn0eMn2Dy2BhyUGlmw1WF3/oh7lUKtIwjcW7ATjK2iWPH7O5CYrc+AHOjKzI/gFoxsjzCZm X-Received: by 10.112.55.10 with SMTP id n10mr1030114lbp.14.1416859925486; Mon, 24 Nov 2014 12:12:05 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.166 with SMTP id f6ls479169lam.8.gmail; Mon, 24 Nov 2014 12:12:05 -0800 (PST) X-Received: by 10.152.36.165 with SMTP id r5mr21348936laj.91.1416859925081; Mon, 24 Nov 2014 12:12:05 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id q5si16235542lbp.93.2014.11.24.12.12.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Nov 2014 12:12:04 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id ge10so8248189lab.17 for ; Mon, 24 Nov 2014 12:12:04 -0800 (PST) X-Received: by 10.112.138.137 with SMTP id qq9mr22242532lbb.80.1416859924660; Mon, 24 Nov 2014 12:12:04 -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 ew9csp327588lbc; Mon, 24 Nov 2014 12:12:03 -0800 (PST) X-Received: by 10.170.158.9 with SMTP id z9mr22478040ykc.56.1416859923281; Mon, 24 Nov 2014 12:12:03 -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 x109si16882657qge.89.2014.11.24.12.12.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 24 Nov 2014 12:12:03 -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 1XszzM-0000wt-Dd; Mon, 24 Nov 2014 20:12:00 +0000 Received: from mail-qa0-f46.google.com ([209.85.216.46]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XszzF-0000wo-A0 for lng-odp@lists.linaro.org; Mon, 24 Nov 2014 20:11:53 +0000 Received: by mail-qa0-f46.google.com with SMTP id u7so6880803qaz.5 for ; Mon, 24 Nov 2014 12:11:48 -0800 (PST) X-Received: by 10.224.11.137 with SMTP id t9mr32225579qat.10.1416859908079; Mon, 24 Nov 2014 12:11:48 -0800 (PST) Received: from fedora1.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id p106sm12719173qgd.36.2014.11.24.12.11.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 12:11:47 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 24 Nov 2014 15:11:30 -0500 Message-Id: <1416859890-59963-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: References: X-Topics: patch Subject: [lng-odp] [PATCH v2] 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.44 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: Mike Holmes --- test/validation/odp_crypto.c | 11 +++++++++-- test/validation/odp_init.c | 7 ++++--- test/validation/odp_queue.c | 7 +++++-- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/test/validation/odp_crypto.c b/test/validation/odp_crypto.c index 985302a..9342aca 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 API version: %s\n", odp_version_api_str()); + printf("\tODP implementation version: %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..aa7439d 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 API version: %s\n", odp_version_api_str()); + printf("\tODP implementation version: %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..09dba0e 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 API version: %s\n", odp_version_api_str()); + printf("\tODP implementation version: %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();