tests: bsim: bluetooth: Test with CONFIG_BT_LONG_WQ disabled
Change adds bsim tests with CONFIG_BT_LONG_WQ=n to ensure correct behavior. Change uses host/gatt/ccc_store test. Change also switches to using more unique simulation ID in the test scripts. Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
This commit is contained in:
parent
78479b092f
commit
da1ae8dca5
@ -0,0 +1,2 @@
|
||||
# Disable the dedicated workqueue for long-running tasks.
|
||||
CONFIG_BT_LONG_WQ=n
|
||||
@ -0,0 +1,41 @@
|
||||
#!/bin/env bash
|
||||
# Copyright 2025 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
||||
|
||||
test_exe="bs_${BOARD_TS}_$(guess_test_long_name)_overlay-no_long_wq_conf"
|
||||
simulation_id="ccc_store_no_long_wq"
|
||||
verbosity_level=2
|
||||
EXECUTE_TIMEOUT=60
|
||||
|
||||
cd ${BSIM_OUT_PATH}/bin
|
||||
|
||||
if [ "${1}" != 'debug0' ]; then
|
||||
Execute "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
||||
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||
fi
|
||||
|
||||
if [ "${1}" != 'debug1' ]; then
|
||||
Execute "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||
fi
|
||||
|
||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||
-D=2 -sim_length=60e6
|
||||
|
||||
if [ "${1}" == 'debug0' ]; then
|
||||
gdb --args "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
||||
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||
fi
|
||||
|
||||
if [ "${1}" == 'debug1' ]; then
|
||||
gdb --args "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||
fi
|
||||
|
||||
wait_for_background_jobs
|
||||
@ -5,7 +5,7 @@
|
||||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
||||
|
||||
test_exe="bs_${BOARD_TS}_$(guess_test_long_name)_overlay-no_store_on_write_conf"
|
||||
simulation_id="ccc_no_store_on_write"
|
||||
simulation_id="ccc_store_no_store_on_write"
|
||||
verbosity_level=2
|
||||
EXECUTE_TIMEOUT=60
|
||||
|
||||
@ -10,8 +10,13 @@ tests:
|
||||
bluetooth.host.gatt.ccc_store:
|
||||
harness_config:
|
||||
bsim_exe_name: tests_bsim_bluetooth_host_gatt_ccc_store_prj_conf
|
||||
bluetooth.host.gatt.ccc_store_2:
|
||||
bluetooth.host.gatt.ccc_store_no_store_on_write:
|
||||
harness_config:
|
||||
bsim_exe_name: tests_bsim_bluetooth_host_gatt_ccc_store_overlay-no_store_on_write_conf
|
||||
extra_args:
|
||||
EXTRA_CONF_FILE=overlay-no_store_on_write.conf
|
||||
bluetooth.host.gatt.ccc_store_no_long_wq:
|
||||
harness_config:
|
||||
bsim_exe_name: tests_bsim_bluetooth_host_gatt_ccc_store_overlay-no_long_wq_conf
|
||||
extra_args:
|
||||
EXTRA_CONF_FILE=overlay-no_long_wq.conf
|
||||
|
||||
Loading…
Reference in New Issue
Block a user