tests: Skip EAP-IKEV2 tests if not included in the build
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e234c7c010
commit
c8e82c94da
2 changed files with 4 additions and 0 deletions
|
@ -2030,6 +2030,7 @@ def test_ap_wpa2_eap_eke_server_oom(dev, apdev):
|
|||
|
||||
def test_ap_wpa2_eap_ikev2(dev, apdev):
|
||||
"""WPA2-Enterprise connection using EAP-IKEv2"""
|
||||
check_eap_capa(dev[0], "IKEV2")
|
||||
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
|
||||
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
eap_connect(dev[0], apdev[0], "IKEV2", "ikev2 user",
|
||||
|
@ -2046,6 +2047,7 @@ def test_ap_wpa2_eap_ikev2(dev, apdev):
|
|||
|
||||
def test_ap_wpa2_eap_ikev2_as_frag(dev, apdev):
|
||||
"""WPA2-Enterprise connection using EAP-IKEv2 with server fragmentation"""
|
||||
check_eap_capa(dev[0], "IKEV2")
|
||||
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
|
||||
params = { "ssid": "test-wpa2-eap", "wpa": "2", "wpa_key_mgmt": "WPA-EAP",
|
||||
"rsn_pairwise": "CCMP", "ieee8021x": "1",
|
||||
|
@ -2058,6 +2060,7 @@ def test_ap_wpa2_eap_ikev2_as_frag(dev, apdev):
|
|||
|
||||
def test_ap_wpa2_eap_ikev2_oom(dev, apdev):
|
||||
"""WPA2-Enterprise connection using EAP-IKEv2 and OOM"""
|
||||
check_eap_capa(dev[0], "IKEV2")
|
||||
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
|
||||
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
|
||||
|
|
|
@ -3551,6 +3551,7 @@ def test_eap_proto_sim(dev, apdev):
|
|||
|
||||
def test_eap_proto_ikev2(dev, apdev):
|
||||
"""EAP-IKEv2 protocol tests"""
|
||||
check_eap_capa(dev[0], "IKEV2")
|
||||
def ikev2_handler(ctx, req):
|
||||
logger.info("ikev2_handler - RX " + req.encode("hex"))
|
||||
if 'num' not in ctx:
|
||||
|
|
Loading…
Reference in a new issue