tests bsim: Move common scripts one level up
These scripts are common for bluetooth and other tests Let's move them one level up. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
dba8d0c45f
commit
f2d9b74da1
15 changed files with 17 additions and 17 deletions
4
.github/workflows/bluetooth-tests.yaml
vendored
4
.github/workflows/bluetooth-tests.yaml
vendored
|
@ -70,9 +70,9 @@ jobs:
|
||||||
- name: Run Bluetooth Tests with BSIM
|
- name: Run Bluetooth Tests with BSIM
|
||||||
run: |
|
run: |
|
||||||
export ZEPHYR_BASE=${PWD}
|
export ZEPHYR_BASE=${PWD}
|
||||||
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/bluetooth/compile.sh
|
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/compile.sh
|
||||||
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_test_results_file} \
|
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_test_results_file} \
|
||||||
SEARCH_PATH=tests/bsim/bluetooth/ tests/bsim/bluetooth/run_parallel.sh
|
SEARCH_PATH=tests/bsim/ tests/bsim/run_parallel.sh
|
||||||
|
|
||||||
- name: Upload Test Results
|
- name: Upload Test Results
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
@ -7,9 +7,9 @@ the needed images and execute these tests in batch.
|
||||||
You can also run them manually if desired, but be sure to call them setting
|
You can also run them manually if desired, but be sure to call them setting
|
||||||
the variables they expect. For example, from Zephyr's root folder, you can run:
|
the variables they expect. For example, from Zephyr's root folder, you can run:
|
||||||
|
|
||||||
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/bluetooth/compile.sh
|
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/compile.sh
|
||||||
RESULTS_FILE=${ZEPHYR_BASE}/myresults.xml SEARCH_PATH=tests/bsim/bluetooth tests/bsim/bluetooth/run_parallel.sh
|
RESULTS_FILE=${ZEPHYR_BASE}/myresults.xml SEARCH_PATH=tests/bsim tests/bsim/run_parallel.sh
|
||||||
|
|
||||||
Or to run only a specific subset, e.g. host advertising tests:
|
Or to run only a specific subset, e.g. host advertising tests:
|
||||||
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/bluetooth/host/compile.sh
|
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/bluetooth/host/compile.sh
|
||||||
RESULTS_FILE=${ZEPHYR_BASE}/myresults.xml SEARCH_PATH=tests/bsim/bluetooth/host/adv tests/bsim/bluetooth/run_parallel.sh
|
RESULTS_FILE=${ZEPHYR_BASE}/myresults.xml SEARCH_PATH=tests/bsim/bluetooth/host/adv tests/bsim/run_parallel.sh
|
|
@ -21,7 +21,7 @@ BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
|
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
|
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.source
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
|
|
||||||
|
|
||||||
declare -a list=(
|
declare -a list=(
|
||||||
|
|
|
@ -18,7 +18,7 @@ BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
|
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
|
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.source
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
|
|
||||||
app=tests/bsim/bluetooth/audio compile
|
app=tests/bsim/bluetooth/audio compile
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,5 @@ BOARD="${BOARD:-nrf52_bsim}"
|
||||||
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
INCR_BUILD=1
|
INCR_BUILD=1
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.source
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
app="tests/bsim/bluetooth/$test_name" compile
|
app="tests/bsim/bluetooth/$test_name" compile
|
||||||
|
|
|
@ -18,7 +18,7 @@ BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
|
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
|
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.source
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
|
|
||||||
app=tests/bsim/bluetooth/host/adv/resume compile
|
app=tests/bsim/bluetooth/host/adv/resume compile
|
||||||
app=tests/bsim/bluetooth/host/adv/resume conf_file=prj_2.conf compile
|
app=tests/bsim/bluetooth/host/adv/resume conf_file=prj_2.conf compile
|
||||||
|
|
|
@ -18,5 +18,5 @@ BOARD="${BOARD:-nrf52_bsim}"
|
||||||
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
INCR_BUILD=1
|
INCR_BUILD=1
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.source
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
app="tests/bsim/bluetooth/$test_name" compile
|
app="tests/bsim/bluetooth/$test_name" compile
|
||||||
|
|
|
@ -18,5 +18,5 @@ BOARD="${BOARD:-nrf52_bsim}"
|
||||||
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
INCR_BUILD=1
|
INCR_BUILD=1
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.source
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
app="tests/bsim/bluetooth/$test_name" compile
|
app="tests/bsim/bluetooth/$test_name" compile
|
||||||
|
|
|
@ -18,7 +18,7 @@ BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
|
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
|
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.source
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
|
|
||||||
app=tests/bsim/bluetooth/ll/advx compile
|
app=tests/bsim/bluetooth/ll/advx compile
|
||||||
|
|
||||||
|
|
|
@ -53,10 +53,10 @@ In short the whole process being:
|
||||||
```
|
```
|
||||||
cd ${ZEPHYR_BASE} && source zephyr-env.sh
|
cd ${ZEPHYR_BASE} && source zephyr-env.sh
|
||||||
#Compile all apps:
|
#Compile all apps:
|
||||||
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/bluetooth/compile.sh
|
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/bluetooth/ll/compile.sh
|
||||||
|
|
||||||
#run all tests
|
#run all tests
|
||||||
RESULTS_FILE=${ZEPHYR_BASE}/banana.xml SEARCH_PATH=tests/bsim/bluetooth/ll/edtt/ tests/bsim/bluetooth/run_parallel.sh
|
RESULTS_FILE=${ZEPHYR_BASE}/banana.xml SEARCH_PATH=tests/bsim/bluetooth/ll/edtt/ tests/bsim/run_parallel.sh
|
||||||
|
|
||||||
#or just run one set:
|
#or just run one set:
|
||||||
tests/bsim/bluetooth/ll/edtt/tests_scripts/hci.sh
|
tests/bsim/bluetooth/ll/edtt/tests_scripts/hci.sh
|
||||||
|
|
|
@ -18,7 +18,7 @@ BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
|
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
|
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.source
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
|
|
||||||
app=tests/bsim/bluetooth/mesh compile
|
app=tests/bsim/bluetooth/mesh compile
|
||||||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_low_lat.conf compile
|
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_low_lat.conf compile
|
||||||
|
|
|
@ -18,7 +18,7 @@ BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
||||||
|
|
||||||
mkdir -p ${WORK_DIR}
|
mkdir -p ${WORK_DIR}
|
||||||
|
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/sh_common.source
|
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
||||||
|
|
||||||
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/audio/compile.sh
|
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/audio/compile.sh
|
||||||
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/host/compile.sh
|
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/host/compile.sh
|
|
@ -1,7 +1,7 @@
|
||||||
# Copyright 2018 Oticon A/S
|
# Copyright 2018 Oticon A/S
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
source ${ZEPHYR_BASE}/tests/bsim/bluetooth/sh_common.source
|
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
||||||
|
|
||||||
function print_error_info(){
|
function print_error_info(){
|
||||||
echo -e "\033[0;31mFailure building ${app} ${conf_file} for ${BOARD}\033[0m\n\
|
echo -e "\033[0;31mFailure building ${app} ${conf_file} for ${BOARD}\033[0m\n\
|
Loading…
Add table
Add a link
Reference in a new issue