aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-12-27 22:16:53 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-27 22:16:53 (GMT)
commit6e6651d02e9d35460760a89a345e4f63716a74cb (patch)
tree8498e65e71ed3d92a2b63759cd17666ecddfa4bf
parent133f8d09fcef5461e70c3a81c7bf8124778591c6 (diff)
downloadhostap-6e6651d02e9d35460760a89a345e4f63716a74cb.zip
hostap-6e6651d02e9d35460760a89a345e4f63716a74cb.tar.gz
hostap-6e6651d02e9d35460760a89a345e4f63716a74cb.tar.bz2
tests: Skip sigma_dut tests for SAE/DPP based on build capabilities
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_sigma_dut.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py
index e423fae..1eb176a 100644
--- a/tests/hwsim/test_sigma_dut.py
+++ b/tests/hwsim/test_sigma_dut.py
@@ -597,6 +597,8 @@ def test_sigma_dut_ap_override_rsne(dev, apdev):
def test_sigma_dut_ap_sae(dev, apdev):
"""sigma_dut controlled AP with SAE"""
+ if "SAE" not in dev[0].get_capability("auth_alg"):
+ raise HwsimSkip("SAE not supported")
with HWSimRadio() as (radio, iface):
sigma = start_sigma_dut(iface)
try:
@@ -617,6 +619,8 @@ def test_sigma_dut_ap_sae(dev, apdev):
def test_sigma_dut_ap_sae_password(dev, apdev):
"""sigma_dut controlled AP with SAE and long password"""
+ if "SAE" not in dev[0].get_capability("auth_alg"):
+ raise HwsimSkip("SAE not supported")
with HWSimRadio() as (radio, iface):
sigma = start_sigma_dut(iface)
try:
@@ -637,6 +641,8 @@ def test_sigma_dut_ap_sae_password(dev, apdev):
def test_sigma_dut_ap_sae_group(dev, apdev):
"""sigma_dut controlled AP with SAE and specific group"""
+ if "SAE" not in dev[0].get_capability("auth_alg"):
+ raise HwsimSkip("SAE not supported")
with HWSimRadio() as (radio, iface):
sigma = start_sigma_dut(iface)
try:
@@ -657,6 +663,8 @@ def test_sigma_dut_ap_sae_group(dev, apdev):
def test_sigma_dut_ap_psk_sae(dev, apdev):
"""sigma_dut controlled AP with PSK+SAE"""
+ if "SAE" not in dev[0].get_capability("auth_alg"):
+ raise HwsimSkip("SAE not supported")
with HWSimRadio() as (radio, iface):
sigma = start_sigma_dut(iface)
try:
@@ -1356,6 +1364,7 @@ def test_sigma_dut_ap_dpp_qr_legacy_psk(dev, apdev, params):
extra="psk=%s" % (32*"12"))
def run_sigma_dut_ap_dpp_qr(dev, apdev, params, ap_conf, sta_conf, extra=""):
+ check_dpp_capab(dev[0])
logdir = os.path.join(params['logdir'], "sigma_dut_ap_dpp_qr.sigma-hostapd")
with HWSimRadio() as (radio, iface):
sigma = start_sigma_dut(iface, hostapd_logdir=logdir)
@@ -1416,6 +1425,7 @@ def run_sigma_dut_ap_dpp_qr(dev, apdev, params, ap_conf, sta_conf, extra=""):
def test_sigma_dut_ap_dpp_pkex_responder(dev, apdev, params):
"""sigma_dut controlled AP as DPP PKEX responder"""
+ check_dpp_capab(dev[0])
logdir = os.path.join(params['logdir'],
"sigma_dut_ap_dpp_pkex_responder.sigma-hostapd")
with HWSimRadio() as (radio, iface):