From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9D510A0613 for ; Tue, 27 Aug 2019 06:28:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5233F1C036; Tue, 27 Aug 2019 06:28:17 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 31F741C02E for ; Tue, 27 Aug 2019 06:28:16 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Aug 2019 21:28:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,435,1559545200"; d="scan'208";a="192035572" Received: from dpdk-xinfengx-dut242.sh.intel.com ([10.67.116.235]) by orsmga002.jf.intel.com with ESMTP; 26 Aug 2019 21:28:13 -0700 From: Xinfeng Zhao To: dts@dpdk.org Cc: Xinfeng Zhao Date: Tue, 27 Aug 2019 04:17:46 +0800 Message-Id: <1566850668-339181-1-git-send-email-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xinfeng Zhao --- tests/TestSuite_ipsec_gw_cryptodev_func.py | 146 +++++++++++++++++++++ 1 file changed, 146 insertions(+) diff --git a/tests/TestSuite_ipsec_gw_cryptodev_func.py b/tests/TestSuite_ipsec_gw_cryptodev_func.py index dafb085..901df6c 100644 --- a/tests/TestSuite_ipsec_gw_cryptodev_func.py +++ b/tests/TestSuite_ipsec_gw_cryptodev_func.py @@ -242,6 +242,19 @@ class TestIPsecGW(TestCase): result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) self.verify(result, "FAIL") + def test_qat_null_ipv4_transport(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test qat_null_ipv4_transport") + self.pcap_filename = "test_qat_null_ipv4_transport" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + + def test_qat_aes_128_cbc_ipv6_tunnel(self): if cc.is_test_skip(self): return @@ -332,6 +345,67 @@ class TestIPsecGW(TestCase): result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) self.verify(result, "FAIL") + def test_qat_null_ipv6_transport(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test qat_null_ipv6_transport") + self.pcap_filename = "test_qat_null_ipv6_transport" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + + + def test_qat_3des_cbc_ipv4_tunnel(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test qat_3des_cbc_ipv4_tunnel") + self.pcap_filename = "test_qat_3des_cbc_ipv4_tunnel" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + + def test_qat_3des_cbc_ipv6_tunnel(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test qat_3des_cbc_ipv6_tunnel") + self.pcap_filename = "test_qat_3des_cbc_ipv6_tunnel" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + + def test_qat_3des_cbc_ipv4_transport(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test qat_3des_cbc_ipv4_transport") + self.pcap_filename = "test_qat_3des_cbc_ipv4_transport" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + + def test_qat_3des_cbc_ipv6_transport(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test qat_3des_cbc_ipv6_transport") + self.pcap_filename = "test_qat_3des_cbc_ipv6_transport" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + def test_sw_aes_128_cbc_ipv4_tunnel(self): if cc.is_test_skip(self): return @@ -421,6 +495,18 @@ class TestIPsecGW(TestCase): result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) self.verify(result, "FAIL") + def test_sw_null_ipv4_transport(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test sw_null_ipv4_transport") + self.pcap_filename = "test_sw_null_ipv4_transport" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + def test_sw_aes_128_cbc_ipv6_tunnel(self): if cc.is_test_skip(self): return @@ -511,6 +597,18 @@ class TestIPsecGW(TestCase): result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) self.verify(result, "FAIL") + def test_sw_null_ipv6_transport(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test sw_null_ipv6_transport") + self.pcap_filename = "test_sw_null_ipv6_transport" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + def test_sw_aes_128_ctr_ipv4_tunnel(self): if cc.is_test_skip(self): return @@ -559,6 +657,54 @@ class TestIPsecGW(TestCase): result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) self.verify(result, "FAIL") + def test_sw_3des_cbc_ipv4_tunnel(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test sw_3des_cbc_ipv4_tunnel") + self.pcap_filename = "test_sw_3des_cbc_ipv4_tunnel" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + + def test_sw_3des_cbc_ipv6_tunnel(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test sw_3des_cbc_ipv6_tunnel") + self.pcap_filename = "test_sw_3des_cbc_ipv6_tunnel" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + + def test_sw_3des_cbc_ipv4_transport(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test sw_3des_cbc_ipv4_transport") + self.pcap_filename = "test_sw_3des_cbc_ipv4_transport" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + + def test_sw_3des_cbc_ipv6_transport(self): + if cc.is_test_skip(self): + return + + self.logger.info("Test sw_3des_cbc_ipv6_transport") + self.pcap_filename = "test_sw_3des_cbc_ipv6_transport" + ipsec_gw_opt_str = self._get_ipsec_gw_opt_str() + self.logger.debug(ipsec_gw_opt_str) + + result = self._execute_ipsec_gw_test(ipsec_gw_opt_str) + self.verify(result, "FAIL") + def _get_ipsec_gw_opt_str(self, override_ipsec_gw_opts={}): return cc.get_opt_str(self, self._default_ipsec_gw_opts, override_ipsec_gw_opts) -- 2.17.1