Skip to content

Commit ffb2f87

Browse files
krish2718kartben
authored andcommitted
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 <[email protected]>
1 parent cb7690a commit ffb2f87

File tree

4 files changed

+114
-0
lines changed

4 files changed

+114
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(build_all)
6+
7+
FILE(GLOB app_sources src/*.c)
8+
target_sources(app PRIVATE ${app_sources})
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
CONFIG_TEST=y
2+
CONFIG_TEST_USERSPACE=y
3+
CONFIG_NET_TEST=y
4+
5+
CONFIG_NETWORKING=y
6+
CONFIG_NET_IPV4=y
7+
CONFIG_NET_IPV6=y
8+
CONFIG_NET_CONFIG_SETTINGS=n
9+
10+
CONFIG_WIFI=y
11+
CONFIG_WIFI_NM=y
12+
13+
CONFIG_SHELL=y
14+
CONFIG_NET_SHELL=y
15+
CONFIG_NET_L2_WIFI_SHELL=y
16+
CONFIG_NET_L2_WIFI_MGMT=y
17+
18+
CONFIG_WIFI_NM_WPA_SUPPLICANT=y
19+
CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_LEVEL=0
20+
CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y
21+
CONFIG_TEST_RANDOM_GENERATOR=y
22+
CONFIG_EAP_ALL=n
23+
# EAP frames are ~1100 bytes, so, need higher packet counts as default packet size is 128
24+
CONFIG_NET_PKT_TX_COUNT=36
25+
CONFIG_NET_PKT_RX_COUNT=36
26+
CONFIG_NET_BUF_TX_COUNT=72
27+
CONFIG_NET_BUF_RX_COUNT=36
28+
# For TLS and X.509 processing MbedTLS needs large heap size and using separate heap
29+
# for MbedTLS gives us more control over the heap size.
30+
CONFIG_MBEDTLS_ENABLE_HEAP=y
31+
CONFIG_MBEDTLS_HEAP_SIZE=55000
32+
CONFIG_MBEDTLS_TLS_VERSION_1_2=y
33+
CONFIG_BUILD_ONLY_NO_BLOBS=y
34+
CONFIG_MAX_THREAD_BYTES=3
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
int main(void)
8+
{
9+
return 0;
10+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
common:
2+
build_only: true
3+
tags:
4+
- drivers
5+
- wifi
6+
- net
7+
platform_allow:
8+
- nrf7002dk/nrf5340/cpuapp
9+
tests:
10+
wifi.build.crypto_enterprise_typical:
11+
extra_configs:
12+
- CONFIG_EAP_TLS=y
13+
- CONFIG_EAP_TTLS=y
14+
- CONFIG_EAP_PEAP=y
15+
wifi.build.crypto_enterprise_tls:
16+
extra_configs:
17+
- CONFIG_EAP_TLS=y
18+
wifi.build.crypto_enterprise_ttls:
19+
extra_configs:
20+
- CONFIG_EAP_TTLS=y
21+
wifi.build.crypto_enterprise_peap:
22+
extra_configs:
23+
- CONFIG_EAP_PEAP=y
24+
wifi.build.crypto_enterprise_md5:
25+
extra_configs:
26+
- CONFIG_EAP_MD5=y
27+
wifi.build.crypto_enterprise_mschapv2:
28+
extra_configs:
29+
- CONFIG_EAP_MSCHAPV2=y
30+
wifi.build.crypto_enterprise_leap:
31+
extra_configs:
32+
- CONFIG_EAP_LEAP=y
33+
wifi.build.crypto_enterprise_psk:
34+
extra_configs:
35+
- CONFIG_EAP_PSK=y
36+
wifi.build.crypto_enterprise_pax:
37+
extra_configs:
38+
- CONFIG_EAP_PAX=y
39+
wifi.build.crypto_enterprise_sake:
40+
extra_configs:
41+
- CONFIG_EAP_SAKE=y
42+
wifi.build.crypto_enterprise_gpsk:
43+
extra_configs:
44+
- CONFIG_EAP_GPSK=y
45+
wifi.build.crypto_enterprise_pwd:
46+
extra_configs:
47+
- CONFIG_EAP_PWD=y
48+
wifi.build.crypto_enterprise_eke:
49+
extra_configs:
50+
- CONFIG_EAP_EKE=y
51+
wifi.build.crypto_enterprise_ikev2:
52+
extra_configs:
53+
- CONFIG_EAP_IKEV2=y
54+
wifi.build.crypto_enterprise_sim:
55+
extra_configs:
56+
- CONFIG_EAP_SIM=y
57+
wifi.build.crypto_enterprise_aka:
58+
extra_configs:
59+
- CONFIG_EAP_AKA=y
60+
wifi.build.crypto_enterprise_gtc:
61+
extra_configs:
62+
- CONFIG_EAP_GTC=y

0 commit comments

Comments
 (0)