From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7847E69C6 for ; Tue, 14 Mar 2017 08:29:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489476560; x=1521012560; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Eqgkk6r50TKIL8RKxNrP/QDnN1ZSsU1kUzu+plgab4M=; b=ldeoMsHLG6HcycfVGAyo9WOEyXJgsmk/XHSRkXo8MiQi2daniito+gEZ z6fXutmUr58+o27uicpLmh7PxeL2Vg==; Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2017 00:29:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,162,1486454400"; d="scan'208";a="235771756" Received: from stv-crb-28.sh.intel.com (HELO dpdk-ae-neoncity001.localdomain.com) ([10.239.128.83]) by fmsmga004.fm.intel.com with ESMTP; 14 Mar 2017 00:29:18 -0700 From: gangx.yang@intel.com To: dts@dpdk.org Cc: Gang Yang Date: Tue, 14 Mar 2017 15:24:27 +0800 Message-Id: <1489476268-371053-2-git-send-email-gangx.yang@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1489476268-371053-1-git-send-email-gangx.yang@intel.com> References: <1489476268-371053-1-git-send-email-gangx.yang@intel.com> Subject: [dts] [PATCH V2 1/2]test-crypto-perf:Add crypto performance auto test code X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2017 07:29:20 -0000 From: Gang Yang * delete unserviceable lib * update invalid cipher-op for aes-gcm algorithm Signed-off-by: Gang Yang --- tests/TestSuite_crypto_perf.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_crypto_perf.py b/tests/TestSuite_crypto_perf.py index aaf79fe..e6f6c2e 100755 --- a/tests/TestSuite_crypto_perf.py +++ b/tests/TestSuite_crypto_perf.py @@ -42,8 +42,6 @@ import copy import time import random from test_case import TestCase -sys.path.append("/root") -from CryptoMobile.CM import * class TestL2fwdCrypto(TestCase): @@ -439,7 +437,6 @@ class TestL2fwdCrypto(TestCase): else: map_combine[temp_str] = len(test_vector_list) for k,v in alg_map.iteritems(): - self.logger.info("Total {name} cases:\t\t\t{number}".format(name=k,number=v)) for k,v in pmd_map.iteritems(): self.logger.info("Total {name} cases:\t\t\t{number}".format(name=k,number=v)) @@ -489,7 +486,9 @@ class TestL2fwdCrypto(TestCase): value_data_list = data_list.split(";") if length == count : data_finished = True - latency = latency + self.__buffer_size_result_check(value_data_list[1],value_data_list[5],value_data_list[4],data_finished) + latency = latency + self.__buffer_size_result_check( \ + value_data_list[1],value_data_list[5], \ + value_data_list[4],data_finished) latency = latency + "\n" return latency @@ -1075,7 +1074,7 @@ test_vectors = { "ptest": ["throughput","latency"], "optype": ["aead"], "cipher-algo": ["aes-gcm"], - "cipher-op": ["aead"], + "cipher-op": ["encrypt", "decrypt"], "cipher-key-sz": [16, 24, 32], "cipher-iv-sz": [16], "auth-algo": ["aes-gcm","aes-gmac","md5-hmac", "sha1-hmac", "sha2-224-hmac", "sha2-256-hmac", -- 2.5.5