tests: net: wifi: Add build test for various config combinations
Try to compile test wifi with various configuration combinations. This is trying to catch simple compilation issues in the PRs. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
parent
ec21dab31a
commit
3f8828d827
|
@ -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})
|
|
@ -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
|
|
@ -0,0 +1,10 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 Nordic Semiconductor ASA
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -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
|
Loading…
Reference in New Issue