examples/ipsec-secgw: fix library mode selection in tests
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Wed, 6 Nov 2019 14:22:02 +0000 (14:22 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 8 Nov 2019 12:51:16 +0000 (13:51 +0100)
Right now majority of lib mode functional tests enable
library mode with '-w N' option.
It worked till recently, as legacy mode didn't support replay window.
Now it changed.
To fix - use '-l' option to enable library mode explicitly.

Fixes: 929784452094 ("examples/ipsec-secgw: add scripts for functional test")

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
25 files changed:
examples/ipsec-secgw/test/bypass_defs.sh
examples/ipsec-secgw/test/trs_3descbc_sha1_defs.sh
examples/ipsec-secgw/test/trs_3descbc_sha1_esn_atom_defs.sh
examples/ipsec-secgw/test/trs_3descbc_sha1_esn_defs.sh
examples/ipsec-secgw/test/trs_aescbc_sha1_defs.sh
examples/ipsec-secgw/test/trs_aescbc_sha1_esn_atom_defs.sh
examples/ipsec-secgw/test/trs_aescbc_sha1_esn_defs.sh
examples/ipsec-secgw/test/trs_aesctr_sha1_defs.sh
examples/ipsec-secgw/test/trs_aesctr_sha1_esn_atom_defs.sh
examples/ipsec-secgw/test/trs_aesctr_sha1_esn_defs.sh
examples/ipsec-secgw/test/trs_aesgcm_defs.sh
examples/ipsec-secgw/test/trs_aesgcm_esn_atom_defs.sh
examples/ipsec-secgw/test/trs_aesgcm_esn_defs.sh
examples/ipsec-secgw/test/tun_3descbc_sha1_defs.sh
examples/ipsec-secgw/test/tun_3descbc_sha1_esn_atom_defs.sh
examples/ipsec-secgw/test/tun_3descbc_sha1_esn_defs.sh
examples/ipsec-secgw/test/tun_aescbc_sha1_defs.sh
examples/ipsec-secgw/test/tun_aescbc_sha1_esn_atom_defs.sh
examples/ipsec-secgw/test/tun_aescbc_sha1_esn_defs.sh
examples/ipsec-secgw/test/tun_aesctr_sha1_defs.sh
examples/ipsec-secgw/test/tun_aesctr_sha1_esn_atom_defs.sh
examples/ipsec-secgw/test/tun_aesctr_sha1_esn_defs.sh
examples/ipsec-secgw/test/tun_aesgcm_defs.sh
examples/ipsec-secgw/test/tun_aesgcm_esn_atom_defs.sh
examples/ipsec-secgw/test/tun_aesgcm_esn_defs.sh

index 12a8a5a..d8d5483 100644 (file)
@@ -28,7 +28,7 @@ EOF
        cat ${SGW_CFG_FILE}
 }
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index 31f9449..35c31dc 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/trs_3descbc_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index e4283f3..7b62dcf 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/trs_3descbc_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
 
 config_remote_xfrm()
 {
index d68552f..ae20fa9 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/trs_aescbc_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index f16222e..ee7c0a3 100644 (file)
@@ -2,4 +2,4 @@
 
 . ${DIR}/trs_aescbc_sha1_esn_defs.sh
 
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
index ce7c977..5f8b099 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/trs_aescbc_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
 
 config_remote_xfrm()
 {
index 73642f8..5d569ec 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/trs_aesctr_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index 17c81c2..14066ff 100644 (file)
@@ -2,4 +2,4 @@
 
 . ${DIR}/trs_aesctr_sha1_esn_defs.sh
 
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
index e401a4b..05ed982 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/trs_aesctr_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
 
 config_remote_xfrm()
 {
index 8382d3d..ca872df 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/trs_aesgcm_common_defs.sh
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index 80d8d63..2d3ae05 100644 (file)
@@ -2,4 +2,4 @@
 
 . ${DIR}/trs_aesgcm_esn_defs.sh
 
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
index 94958d1..d4cb108 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/trs_aesgcm_common_defs.sh
 
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
 
 config_remote_xfrm()
 {
index 2bbe142..63df5a4 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/tun_3descbc_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index 98349c7..cded928 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/tun_3descbc_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
 
 config_remote_xfrm()
 {
index 18aade3..40607a7 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/tun_aescbc_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index 6b4a821..d2b70ff 100644 (file)
@@ -2,4 +2,4 @@
 
 . ${DIR}/tun_aescbc_sha1_esn_defs.sh
 
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
index 28c1125..e95157e 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/tun_aescbc_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
 
 config_remote_xfrm()
 {
index 3710f89..1fee291 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/tun_aesctr_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index 7dcfc32..ba0506a 100644 (file)
@@ -2,4 +2,4 @@
 
 . ${DIR}/tun_aesctr_sha1_esn_defs.sh
 
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
index c3ce11d..0dfe47b 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/tun_aesctr_sha1_common_defs.sh
 
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
 
 config_remote_xfrm()
 {
index 8ae6532..b4be059 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/tun_aesgcm_common_defs.sh
 
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
 
 config_remote_xfrm()
 {
index dab1460..79df9ee 100644 (file)
@@ -2,4 +2,4 @@
 
 . ${DIR}/tun_aesgcm_esn_defs.sh
 
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
index 6062323..3c37463 100644 (file)
@@ -2,7 +2,7 @@
 
 . ${DIR}/tun_aesgcm_common_defs.sh
 
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
 
 config_remote_xfrm()
 {