]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Check DPP in build for couple of missing cases
authorJouni Malinen <j@w1.fi>
Mon, 18 Apr 2022 08:11:29 +0000 (11:11 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 18 Apr 2022 08:11:29 +0000 (11:11 +0300)
These test cases need to be skipped in DPP is not included in the build.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_dpp.py
tests/hwsim/test_dpp3.py

index bc5327b7e525700e29c29ab5c95516b0d1f2bf47..963504c5a0805c210f62222cb992d0de3b8037bb 100644 (file)
@@ -2767,6 +2767,7 @@ def test_dpp_hostapd_configurator(dev, apdev):
 
 def test_dpp_hostapd_configurator_enrollee_v1(dev, apdev):
     """DPP with hostapd as configurator/initiator with v1 enrollee"""
+    check_dpp_capab(dev[0])
     dev[0].set("dpp_version_override", "1")
     run_dpp_hostapd_configurator(dev, apdev)
 
index 9cf6f963470ae1b5d0b0de76c13a1e07ec4cf9e9..123815b915a47aee391282e8e55a212ae55a49b4 100644 (file)
@@ -112,6 +112,7 @@ def test_dpp_tcp_pkex(dev, apdev, params):
         dev[1].request("DPP_CONTROLLER_STOP")
 
 def run_dpp_tcp_pkex_auto_connect_2(dev, apdev, params, status, start_ap=True):
+    check_dpp_capab(dev[0], min_ver=3)
     check_sae_capab(dev[0])
     dev[0].set("sae_groups", "")
 
@@ -173,6 +174,7 @@ def test_dpp_tcp_pkex_while_associated_conn_status(dev, apdev, params):
         dev[0].set("dpp_config_processing", "0", allow_fail=True)
 
 def run_dpp_tcp_pkex_while_associated(dev, apdev, params, status):
+    check_dpp_capab(dev[0], min_ver=3)
     check_sae_capab(dev[0])
     cap_lo = params['prefix'] + ".lo.pcap"