Tests: bsim: update permutations compilation script
The script that compiles different permutations of Kconfig settings for the control procedures must build each permutation in sequence. The current implementation of the compile-script starts each build in the background. This PR fixes that so that each build now is run sequentially. Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
This commit is contained in:
parent
774affe2e9
commit
05e78fa128
1 changed files with 6 additions and 3 deletions
|
@ -15,7 +15,7 @@ DEBUG_PERMUTATE=false
|
||||||
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
|
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
|
||||||
directory}"
|
directory}"
|
||||||
|
|
||||||
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_bt_out}"
|
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
|
||||||
BOARD="${BOARD:-nrf52_bsim}"
|
BOARD="${BOARD:-nrf52_bsim}"
|
||||||
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
|
|
||||||
|
@ -62,10 +62,13 @@ perm_compile() {
|
||||||
echo "Compile with config overlay:"
|
echo "Compile with config overlay:"
|
||||||
cat $3
|
cat $3
|
||||||
fi
|
fi
|
||||||
local app=tests/bsim/bluetooth/edtt_ble_test_app/hci_test_app
|
local app=tests/bsim/bluetooth/ll/edtt/hci_test_app
|
||||||
local conf_file=prj_dut_llcp.conf
|
local conf_file=prj_dut_llcp.conf
|
||||||
local conf_overlay=$3
|
local conf_overlay=$3
|
||||||
compile
|
# Note: we need to call '_compile' instead of 'compile' because the latter starts
|
||||||
|
# compilations in parallel, but here we need to do it in serial since we modify
|
||||||
|
# the configuration file between each run
|
||||||
|
_compile
|
||||||
if [ ! -f ${executable_name} ]; then
|
if [ ! -f ${executable_name} ]; then
|
||||||
compile_failures=$(expr $compile_failures + 1)
|
compile_failures=$(expr $compile_failures + 1)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue