diff --git a/tests/net/wifi/configs/CMakeLists.txt b/tests/net/wifi/configs/CMakeLists.txt new file mode 100644 index 00000000000..518596a02f7 --- /dev/null +++ b/tests/net/wifi/configs/CMakeLists.txt @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: Apache-2.0 + +cmake_minimum_required(VERSION 3.20.0) +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(build_all) + +FILE(GLOB app_sources src/*.c) +target_sources(app PRIVATE ${app_sources}) diff --git a/tests/net/wifi/configs/prj.conf b/tests/net/wifi/configs/prj.conf new file mode 100644 index 00000000000..2a2f4d2cf6b --- /dev/null +++ b/tests/net/wifi/configs/prj.conf @@ -0,0 +1,33 @@ +CONFIG_TEST=y +CONFIG_TEST_USERSPACE=y +CONFIG_NET_TEST=y + +CONFIG_NETWORKING=y +CONFIG_NET_IPV4=y +CONFIG_NET_IPV6=y +CONFIG_NET_CONFIG_SETTINGS=n + +CONFIG_WIFI=y +CONFIG_WIFI_NM=y + +CONFIG_SHELL=y +CONFIG_NET_SHELL=y +CONFIG_NET_L2_WIFI_SHELL=y +CONFIG_NET_L2_WIFI_MGMT=y + +CONFIG_WIFI_SHELL_MAX_AP_STA=2 +CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS=y +CONFIG_WIFI_MGMT_FORCED_PASSIVE_SCAN=y +CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX=3 +CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL=10 +CONFIG_WIFI_NM_MAX_MANAGED_INTERFACES=2 +CONFIG_WIFI_MGMT_AP_STA_SKIP_INACTIVITY_POLL=y +CONFIG_WIFI_MGMT_AP_MAX_NUM_STA=10 + +CONFIG_WIFI_NM_WPA_SUPPLICANT=y +CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_LEVEL=0 +CONFIG_WIFI_NM_WPA_SUPPLICANT_WEP=y +CONFIG_WIFI_NM_WPA_SUPPLICANT_ADVANCED_FEATURES=y +CONFIG_WIFI_NM_WPA_SUPPLICANT_AP=y +CONFIG_WIFI_NM_WPA_SUPPLICANT_CLI=y +CONFIG_WPA_CLI=y diff --git a/tests/net/wifi/configs/src/main.c b/tests/net/wifi/configs/src/main.c new file mode 100644 index 00000000000..a05ee591430 --- /dev/null +++ b/tests/net/wifi/configs/src/main.c @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2024 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +int main(void) +{ + return 0; +} diff --git a/tests/net/wifi/configs/testcase.yaml b/tests/net/wifi/configs/testcase.yaml new file mode 100644 index 00000000000..017407bc846 --- /dev/null +++ b/tests/net/wifi/configs/testcase.yaml @@ -0,0 +1,66 @@ +common: + build_only: true + tags: + - drivers + - wifi + - net + platform_allow: + - native_sim + - native_sim/native/64 +tests: + wifi.build.crypto_default: + extra_configs: + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO=y + wifi.build.crypto_alt: + extra_configs: + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT=y + wifi.build.crypto_none: + extra_configs: + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_NONE=y + # FIXME: The psa crypto does not work atm so commented out + # the build test temporarily. + # wifi.build.crypto_psa: + # extra_configs: + # - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_MBEDTLS_PSA=y + wifi.build.crypto_enterprise: + extra_configs: + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT=y + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y + - CONFIG_MBEDTLS_TLS_VERSION_1_2=y + - CONFIG_EAP_TLS=y + - CONFIG_EAP_TTLS=y + - CONFIG_EAP_PEAP=y + - CONFIG_EAP_MD5=y + - CONFIG_EAP_MSCHAPV2=y + - CONFIG_EAP_LEAP=y + - CONFIG_EAP_PSK=y + - CONFIG_EAP_PAX=y + - CONFIG_EAP_SAKE=y + - CONFIG_EAP_GPSK=y + - CONFIG_EAP_PWD=y + - CONFIG_EAP_EKE=y + - CONFIG_EAP_IKEV2=y + - CONFIG_EAP_SIM=y + - CONFIG_EAP_AKA=y + wifi.build.wpa3: + extra_configs: + - CONFIG_WIFI_NM_WPA_SUPPLICANT_WPA3=y + - CONFIG_MBEDTLS_TLS_VERSION_1_2=y + wifi.build.wps: + extra_configs: + - CONFIG_WIFI_NM_WPA_SUPPLICANT_WPS=y + - CONFIG_WIFI_NM_WPA_SUPPLICANT_EAPOL=y + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO=y + wifi.build.p2p: + extra_configs: + - CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P=y + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO=y + wifi.build.hostapd_ap: + extra_configs: + - CONFIG_WIFI_NM_HOSTAPD_AP=y + - CONFIG_WIFI_NM_WPA_SUPPLICANT_INF_MON=n + wifi.build.dpp: + extra_configs: + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT=y + - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y + - CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP=y