[dts] [PATCH V1 2/3] tests: add test cases for aes-docsisbpi
xinfengx
xinfengx.zhao at intel.com
Fri May 15 10:03:31 CEST 2020
Signed-off-by: xinfengx <xinfengx.zhao at intel.com>
---
tests/TestSuite_crypto_perf_cryptodev_perf.py | 44 +++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/tests/TestSuite_crypto_perf_cryptodev_perf.py b/tests/TestSuite_crypto_perf_cryptodev_perf.py
index 910c81a..8584aa3 100644
--- a/tests/TestSuite_crypto_perf_cryptodev_perf.py
+++ b/tests/TestSuite_crypto_perf_cryptodev_perf.py
@@ -269,6 +269,50 @@ class PerfTestsCryptodev(TestCase):
"sw_aes_gcm")
self.verify(result, "Test failed")
+ def test_qat_encrypt_aes_docsisbpi(self):
+ if cc.is_test_skip(self):
+ return
+
+ eal_opt_str = cc.get_eal_opt_str(self, {"vdev":None})
+ crypto_perf_opt_str = self._get_crypto_perf_opt_str()
+ result = self._run_crypto_perf_throughput(eal_opt_str,
+ crypto_perf_opt_str,
+ "qat_encrypt_aes_docsisbpi")
+ self.verify(result, "Test failed")
+
+ def test_sw_encrypt_aes_docsisbpi(self):
+ if cc.is_test_skip(self):
+ return
+
+ eal_opt_str = cc.get_eal_opt_str(self)
+ crypto_perf_opt_str = self._get_crypto_perf_opt_str()
+ result = self._run_crypto_perf_throughput(eal_opt_str,
+ crypto_perf_opt_str,
+ "sw_encrypt_aes_docsisbpi")
+ self.verify(result, "Test failed")
+
+ def test_qat_decrypt_aes_docsisbpi(self):
+ if cc.is_test_skip(self):
+ return
+
+ eal_opt_str = cc.get_eal_opt_str(self, {"vdev":None})
+ crypto_perf_opt_str = self._get_crypto_perf_opt_str()
+ result = self._run_crypto_perf_throughput(eal_opt_str,
+ crypto_perf_opt_str,
+ "qat_decrypt_aes_docsisbpi")
+ self.verify(result, "Test failed")
+
+ def test_sw_decrypt_aes_docsisbpi(self):
+ if cc.is_test_skip(self):
+ return
+
+ eal_opt_str = cc.get_eal_opt_str(self)
+ crypto_perf_opt_str = self._get_crypto_perf_opt_str()
+ result = self._run_crypto_perf_throughput(eal_opt_str,
+ crypto_perf_opt_str,
+ "sw_decrypt_aes_docsisbpi")
+ self.verify(result, "Test failed")
+
def test_qat_kasumi(self):
if cc.is_test_skip(self):
return
--
2.17.1
More information about the dts
mailing list