[dts] [PATCH V2 1/2]test-crypto-perf:Add crypto performance auto test code

gangx.yang at intel.com gangx.yang at intel.com
Tue Mar 14 08:24:27 CET 2017


From: Gang Yang <gangx.yang at intel.com>

* delete unserviceable lib
* update invalid cipher-op for aes-gcm algorithm

Signed-off-by: Gang Yang <gangx.yang at intel.com>
---
 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



More information about the dts mailing list