Searched +full:bsim +full:- +full:test (Results 1 – 25 of 139) sorted by relevance
123456
/Zephyr-latest/doc/develop/test/ |
D | bsim.rst | 9 In the Zephyr project we use the `Babblesim`_ simulator to test some of the Zephyr radio protocols, 13 :ref:`bsim boards<bsim boards>` 15 When we build Zephyr targeting a :ref:`bsim board<bsim boards>` we produce a Linux 32 Tests without radio activity: bsim tests with twister 35 The :ref:`bsim boards<bsim boards>` can be used without radio activity, and in that case, it is not 47 These tests are kept in the :code:`tests/bsim/` folder. The ``compile.sh`` and ``run_parallel.sh`` 57 built with some checks which decide if the test is passing or failing. These embedded 61 * Test using the EDTT_ tool, in which a EDTT (python) test controls the embedded applications over 62 an RPC mechanism, and decides if the test passes or not. 63 Today these tests include a very significant subset of the BT qualification test suite. [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/ |
D | README.rst | 3 Bluetooth: Example BabbleSim test 9 This test's purpose is to serve as template for implementing a new BabbleSim Bluetooth test. 11 BabbleSim_ is :ref:`integrated in zephyr <bsim>` and used for testing the Bluetooth stack. 12 The tests are implemented in ``tests/bsim/bluetooth``. 15 This sample test uses the ``testlib`` (:zephyr_file:`tests/bluetooth/common/testlib/CMakeLists.txt`) 16 test library, in order to de-duplicate code that is not relevant to the test in question. Things 27 1. The :ref:`Bsim test documentation <bsim>`.
|
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 16 # This contains babblesim-specific helpers, e.g. device synchronization. 17 add_subdirectory(${ZEPHYR_BASE}/tests/bsim/babblekit babblekit) 25 # List every source file in the test application. Do not use GLOB. 27 # It is a good idea to have one file per test role / entry point. 29 # Try to keep test procedures readable, that is minimizing the amount of 30 # boilerplate. Use the `testlib` for anything that is not the object of the test 35 # the test and should be in the same file as the test entry point. Any other 40 # characteristic UUIDs, test data that should be verified by both parties, 43 # Ideally, main.c should only set up the test framework, and map the entry [all …]
|
/Zephyr-latest/boards/native/doc/ |
D | bsim_boards_design.rst | 3 Bsim boards 6 **Available bsim boards** 18 nrf5x_bsim boards and other similar bsim boards. 20 (shortened bsim), to simulate the radio environment. 50 The main purpose of these bsim boards is to be test-benches for 52 Integration testing in the sense that the code under test will, at the very 62 Unlike :ref:`native_sim <native_sim>`, bsim boards do not interact directly with any host 70 Different types of tests and how the bsim boards relate to them 80 - Unit tests: 84 these bsim boards. [all …]
|
/Zephyr-latest/.github/workflows/ |
D | bsim-tests.yaml | 6 - ".github/workflows/bsim-tests.yaml" 7 - ".github/workflows/bsim-tests-publish.yaml" 8 - "west.yml" 9 - "subsys/bluetooth/**" 10 - "tests/bsim/**" 11 - "boards/nordic/nrf5*/*dt*" 12 - "dts/*/nordic/**" 13 - "tests/bluetooth/common/testlib/**" 14 - "samples/bluetooth/**" 15 - "boards/native/**" [all …]
|
D | bsim-tests-publish.yaml | 7 - completed 9 bsim-test-results: 10 name: "Publish BabbleSim Test Results" 11 runs-on: ubuntu-22.04 15 - name: Download artifacts 16 uses: dawidd6/action-download-artifact@v6 20 - name: Publish BabbleSim Test Results 21 uses: EnricoMi/publish-unit-test-result-action@v2 23 check_name: BabbleSim Test Results 28 files: "bsim-test-results/**/bsim_results.xml"
|
D | twister.yaml | 6 - main 7 - v*-branch 8 - collab-* 11 - main 12 - v*-branch 13 - collab-* 16 - cron: '0 3 * * 0' 19 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} 20 cancel-in-progress: true 23 twister-build-prep: [all …]
|
D | clang.yaml | 6 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} 7 cancel-in-progress: true 10 clang-build: 11 if: github.repository_owner == 'zephyrproject-rtos' 12 runs-on: 13 group: zephyr-runner-v2-linux-x64-4xlarge 15 image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026 16 options: '--entrypoint /bin/bash' 18 fail-fast: false 22 CCACHE_DIR: /node-cache/ccache-zephyr [all …]
|
D | twister-prep.yaml | 18 … if: github.repository_owner == 'zephyrproject-rtos' && github.event_name == 'pull_request_target' 19 runs-on: 20 group: zephyr-runner-v2-linux-x64-4xlarge 22 image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026 23 options: '--entrypoint /bin/bash' 25 subset: ${{ steps.output-services.outputs.subset }} 26 size: ${{ steps.output-services.outputs.size }} 27 fullrun: ${{ steps.output-services.outputs.fullrun }} 32 BSIM_OUT_PATH: /opt/bsim/ 33 BSIM_COMPONENTS_PATH: /opt/bsim/components [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/ |
D | README.txt | 5 EDTT (Embedded Device Test Tool). 13 2.) An application which implements the test GATT services specified by BT SIG 25 driver for simulated targets, meant to connect to the `bsim` EDTT transport 54 cd ${ZEPHYR_BASE} && source zephyr-env.sh 56 WORK_DIR=${ZEPHYR_BASE}/bsim_out tests/bsim/bluetooth/ll/compile.sh 59 RESULTS_FILE=${ZEPHYR_BASE}/banana.xml SEARCH_PATH=tests/bsim/bluetooth/ll/edtt/ tests/bsim/run_par… 62 tests/bsim/bluetooth/ll/edtt/tests_scripts/hci.sh
|
/Zephyr-latest/tests/bsim/ |
D | run_parallel.sh | 3 # SPDX-License-Identifier: Apache-2.0 8 echo "run_parallel.sh [-help] [options]" 15 echo " You can instead also provide a space separated test list with \${TESTS_LIST}, " 17 echo " \${TESTS_FILE} (w one line per test/path, you can comment lines with #)" 21 echo " SEARCH_PATH=tests/bsim/bluetooth/ll/conn/ tests/bsim/run_parallel.sh" 23 echo " SEARCH_PATH=\"tests/bsim/bluetooth/ll/conn/tests_scripts/*encr* tests/bsim/net\"\ 24 tests/bsim/run_parallel.sh" 27 \"tests/bsim/bluetooth/ll/conn/tests_scripts/basic_conn_encrypted_split_privacy.sh\ 28 tests/bsim/bluetooth/ll/conn/tests_scripts/basic_conn_split_low_lat.sh\ 29 tests/bsim/bluetooth/ll/conn/tests_scripts/basic_conn_split.sh\" tests/bsim/run_parallel.sh" [all …]
|
/Zephyr-latest/share/sysbuild/cmake/modules/ |
D | native_simulator_sb_extensions.cmake | 3 # SPDX-License-Identifier: Apache-2.0 8 # When building for a native_simulator based target (including bsim targets), 14 # This will allow other tools, like twister, or the bsim test scripts, as well as users to find 15 # this final executable in the same place as for non-sysbuild builds. 18 if(("${BOARD}" MATCHES "native") OR ("${BOARD}" MATCHES "bsim")) 22 ${CMAKE_COMMAND} -E copy 33 # When building for a native_simulator based target (including bsim targets), 38 if(("${BOARD}" MATCHES "native") OR ("${BOARD}" MATCHES "bsim"))
|
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/tests_scripts/ |
D | _controller_tests_inner.sh | 3 # SPDX-License-Identifier: Apache-2.0 13 # --------------------- 14 # PRJ_CONF: Default bsim device configuration [prj_dut_conf] 15 # PRJ_CONF_1: bsim device 1 configuration [PRJ_CONF] 16 # PRJ_CONF_2: bsim device 2 configuration [PRJ_CONF] 19 # --------- 23 # VERBOSITY_LEVEL_PHY: bsim phy verbosity [VERBOSITY_LEVEL] 24 # VERBOSITY_LEVEL_DEVS: Global bsim device verbosity [VERBOSITY_LEVEL] 25 # VERBOSITY_LEVEL_DEV1: bsim device 1 verbosity [VERBOSITY_LEVEL_DEVS] 26 # VERBOSITY_LEVEL_DEV1: bsim device 2 verbosity [VERBOSITY_LEVEL_DEVS] [all …]
|
/Zephyr-latest/tests/bsim/babblekit/include/babblekit/ |
D | testcase.h | 4 * SPDX-License-Identifier: Apache-2.0 14 * @brief Mark the test as in progress 16 * Call this at the start of the test entry point. 18 * @param ... format-string and arguments to print to console 24 bs_trace_info_time(2, "Test start: " msg "\n", ##__VA_ARGS__); \ 28 * @brief Fail the test and exit 30 * Printf-like function that also terminates the device with an error code. 32 * @param ... format-string and arguments to print to console 42 * @brief Mark the currently-running test as "Passed" 44 * Mark the test as "passed". The execution continues after that point. [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/test_scripts/ |
D | run.sh | 3 # SPDX-License-Identifier: Apache-2.0 5 set -eu 7 # Provides common functions for bsim tests. 9 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 14 # Use a unique simulation id per test script. It is a necessity as the CI runner 15 # will run all the test scripts in parallel. If multiple simulations share the 28 # option), something very wrong can still happen and this additional time-out 31 # It measures wall-clock time, not simulated time. E.g. a test that simulates 5 36 # - Do not set it to a value lower or equal to the default. 37 # - If the test takes over 5 seconds of runtime, set `EXECUTE_TIMEOUT` to at [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio_samples/cap/tests_scripts/ |
D | cap_broadcast.sh | 2 # Copyright 2023-2024 Nordic Semiconductor ASA 3 # SPDX-License-Identifier: Apache-2.0 5 # Simple selfchecking test for the CAP samples for broadcast. 6 # It relies on the bs_tests hooks to register a test timer callback, which after a deadline 8 # it considers the test passed 14 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 19 -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1 -testid=cap_initiator 22 -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 -testid=cap_acceptor 24 Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 25 -D=2 -sim_length=20e6 $@ -argschannel -at=40
|
D | cap_unicast.sh | 2 # Copyright 2023-2024 Nordic Semiconductor ASA 3 # SPDX-License-Identifier: Apache-2.0 5 # Simple selfchecking test for the CAP samples for unicast. 6 # It relies on the bs_tests hooks to register a test timer callback, which after a deadline 8 # it considers the test passed 14 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 19 -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1 -testid=cap_initiator 22 -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 -testid=cap_acceptor 24 Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 25 -D=2 -sim_length=20e6 $@ -argschannel -at=40
|
/Zephyr-latest/tests/bsim/bluetooth/audio_samples/bap_unicast_client/tests_scripts/ |
D | unicast_client.sh | 3 # SPDX-License-Identifier: Apache-2.0 5 # Simple selfchecking test for the unicast client/server samples, 6 # It relies on the bs_tests hooks to register a test timer callback, which after a deadline 8 # it considers the test passed 13 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 20 -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1 23 -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 \ 24 -testid=unicast_client 26 Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 27 -D=2 -sim_length=20e6 $@ -argschannel -at=40
|
/Zephyr-latest/tests/bsim/bluetooth/audio_samples/bap_broadcast_sink/tests_scripts/ |
D | broadcast_audio.sh | 3 # SPDX-License-Identifier: Apache-2.0 5 # Simple selfchecking test for the broadcast audio sink/source samples, 6 # It relies on the bs_tests hooks to register a test timer callback, which after a deadline 8 # it considers the test passed 13 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 20 -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1 23 -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 \ 24 -testid=bap_broadcast_sink 26 Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 27 -D=2 -sim_length=120e6 $@
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/test_scripts/ |
D | run_gatt_settings.sh | 3 # SPDX-License-Identifier: Apache-2.0 4 set -eu 6 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 20 Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s="${simulation_id}" -D=8 -sim_length=30e6 $@ 23 # because bsim doesn't support plugging devices in and out of a running 24 # simulation, but this test needs a way to power-cycle the `server` device a few 27 # Each device will wait until the previous instance (called 'test round') has 29 Execute "$test_exe" -v=${verbosity_level} \ 30 -s="${simulation_id}" -d=0 -testid=server -RealEncryption=1 -argstest 0 6 "server" 31 Execute "$test_exe" -v=${verbosity_level} \ [all …]
|
D | run_gatt_settings_2.sh | 3 # SPDX-License-Identifier: Apache-2.0 4 set -eu 6 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 20 Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s="${simulation_id}" -D=8 -sim_length=30e6 $@ 23 # because bsim doesn't support plugging devices in and out of a running 24 # simulation, but this test needs a way to power-cycle the `server` device a few 27 # Each device will wait until the previous instance (called 'test round') has 29 Execute "$test_2_exe" -v=${verbosity_level} \ 30 -s="${simulation_id}" -d=0 -testid=server -RealEncryption=1 -argstest 0 6 "server_2" 31 Execute "$test_2_exe" -v=${verbosity_level} \ [all …]
|
/Zephyr-latest/tests/bsim/net/sockets/echo_test/tests_scripts/ |
D | echo_test_ot.sh | 4 # SPDX-License-Identifier: Apache-2.0 6 # Simple selfchecking test for openthread, based on the echo client / server sample apps 7 # It relies on the bs_tests hooks to register a test timer callback, which after a deadline 9 # it considers the test passed 14 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 20 Execute ./bs_${BOARD_TS}_tests_bsim_net_sockets_echo_test_prj_conf_overlay-ot_conf \ 21 -v=${verbosity_level} -s=${simulation_id} -start_offset=2e6 -d=0 -RealEncryption=1 \ 22 -testid=echo_client 24 Execute ./bs_${BOARD_TS}_samples_net_sockets_echo_server_prj_conf_overlay-ot_conf\ 25 -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 \ [all …]
|
D | echo_test_802154.sh | 4 # SPDX-License-Identifier: Apache-2.0 6 # Simple selfchecking test for the 15.4 stack, based on the echo client / server sample apps 7 # It relies on the bs_tests hooks to register a test timer callback, which after a deadline 9 # it considers the test passed 14 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 20 Execute ./bs_${BOARD_TS}_tests_bsim_net_sockets_echo_test_prj_conf_overlay-802154_conf \ 21 -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1 \ 22 -testid=echo_client 24 Execute ./bs_${BOARD_TS}_samples_net_sockets_echo_server_prj_conf_overlay-802154_conf\ 25 -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 \ [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disable/tests_scripts/ |
D | disable_with_gatt.sh | 3 # SPDX-License-Identifier: Apache-2.0 5 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 7 # Disable with GATT test: A central acting as a GATT client scans for and connects 10 # peripheral then disable bluetooth and the test repeats. 18 -v=${verbosity_level} -s=${simulation_id} -d=0 -testid=gatt_client 21 -v=${verbosity_level} -s=${simulation_id} -d=1 -testid=gatt_server 23 Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 24 -D=2 -sim_length=600e6 $@
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/conn_stress/scripts/ |
D | _conn_stress.sh | 3 # SPDX-License-Identifier: Apache-2.0 5 source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 10 # We don't use the `Execute` fn from `bsim/sh_common.source` as 12 # this test will fail often. We still want to run the packet conversion scripts, 13 # especially if the test was not successful. 15 if [ ! -f $1 ]; then 16 echo -e "ERR! \e[91m`pwd`/`basename $1` cannot be found (did you forget to\ 34 bsim_args="-RealEncryption=1 -v=2 -s=${simulation_id}" 35 test_args="-argstest notify_size=220 conn_interval=32" 43 -d=$device -rs=$rs -testid=peripheral ${test_args} [all …]
|
123456