tests: nrf70: Add enterprise security tests
nRF70 can only choose a single security method due to limiting memory, so, add individual tests to ensure build. This is based on tests/net/wifi/configs test. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
This commit is contained in:
parent
cb7690a17f
commit
ffb2f8764f
4 changed files with 114 additions and 0 deletions
8
tests/boards/nrf/nrf70/ent_security/CMakeLists.txt
Normal file
8
tests/boards/nrf/nrf70/ent_security/CMakeLists.txt
Normal file
|
@ -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})
|
34
tests/boards/nrf/nrf70/ent_security/prj.conf
Normal file
34
tests/boards/nrf/nrf70/ent_security/prj.conf
Normal file
|
@ -0,0 +1,34 @@
|
|||
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_NM_WPA_SUPPLICANT=y
|
||||
CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_LEVEL=0
|
||||
CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_EAP_ALL=n
|
||||
# EAP frames are ~1100 bytes, so, need higher packet counts as default packet size is 128
|
||||
CONFIG_NET_PKT_TX_COUNT=36
|
||||
CONFIG_NET_PKT_RX_COUNT=36
|
||||
CONFIG_NET_BUF_TX_COUNT=72
|
||||
CONFIG_NET_BUF_RX_COUNT=36
|
||||
# For TLS and X.509 processing MbedTLS needs large heap size and using separate heap
|
||||
# for MbedTLS gives us more control over the heap size.
|
||||
CONFIG_MBEDTLS_ENABLE_HEAP=y
|
||||
CONFIG_MBEDTLS_HEAP_SIZE=55000
|
||||
CONFIG_MBEDTLS_TLS_VERSION_1_2=y
|
||||
CONFIG_BUILD_ONLY_NO_BLOBS=y
|
||||
CONFIG_MAX_THREAD_BYTES=3
|
10
tests/boards/nrf/nrf70/ent_security/src/main.c
Normal file
10
tests/boards/nrf/nrf70/ent_security/src/main.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
62
tests/boards/nrf/nrf70/ent_security/testcase.yaml
Normal file
62
tests/boards/nrf/nrf70/ent_security/testcase.yaml
Normal file
|
@ -0,0 +1,62 @@
|
|||
common:
|
||||
build_only: true
|
||||
tags:
|
||||
- drivers
|
||||
- wifi
|
||||
- net
|
||||
platform_allow:
|
||||
- nrf7002dk/nrf5340/cpuapp
|
||||
tests:
|
||||
wifi.build.crypto_enterprise_typical:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_TLS=y
|
||||
- CONFIG_EAP_TTLS=y
|
||||
- CONFIG_EAP_PEAP=y
|
||||
wifi.build.crypto_enterprise_tls:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_TLS=y
|
||||
wifi.build.crypto_enterprise_ttls:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_TTLS=y
|
||||
wifi.build.crypto_enterprise_peap:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_PEAP=y
|
||||
wifi.build.crypto_enterprise_md5:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_MD5=y
|
||||
wifi.build.crypto_enterprise_mschapv2:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_MSCHAPV2=y
|
||||
wifi.build.crypto_enterprise_leap:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_LEAP=y
|
||||
wifi.build.crypto_enterprise_psk:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_PSK=y
|
||||
wifi.build.crypto_enterprise_pax:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_PAX=y
|
||||
wifi.build.crypto_enterprise_sake:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_SAKE=y
|
||||
wifi.build.crypto_enterprise_gpsk:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_GPSK=y
|
||||
wifi.build.crypto_enterprise_pwd:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_PWD=y
|
||||
wifi.build.crypto_enterprise_eke:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_EKE=y
|
||||
wifi.build.crypto_enterprise_ikev2:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_IKEV2=y
|
||||
wifi.build.crypto_enterprise_sim:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_SIM=y
|
||||
wifi.build.crypto_enterprise_aka:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_AKA=y
|
||||
wifi.build.crypto_enterprise_gtc:
|
||||
extra_configs:
|
||||
- CONFIG_EAP_GTC=y
|
Loading…
Add table
Add a link
Reference in a new issue