1#!/usr/bin/env bash 2# Copyright 2019 Oticon A/S 3# SPDX-License-Identifier: Apache-2.0 4 5source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 6 7# GATT regression tests based on the EDTTool 8SIMULATION_ID="edtt_gatt_llcp" 9VERBOSITY_LEVEL=2 10EXECUTE_TIMEOUT=300 11 12CWD="$(cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P)" 13 14: "${EDTT_PATH:?EDTT_PATH must be defined}" 15 16cd ${EDTT_PATH} 17 18Execute ./src/edttool.py -s=${SIMULATION_ID} -d=0 --transport bsim \ 19 -T gatt_verification -C "${CWD}/gatt.llcp.test_list" -v=${VERBOSITY_LEVEL} \ 20 -D=2 -devs 1 2 -RxWait=2.5e3 21 22cd ${BSIM_OUT_PATH}/bin 23 24Execute \ 25 ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_edtt_hci_test_app_prj_tst_llcp_conf\ 26 -s=${SIMULATION_ID} -d=1 -v=${VERBOSITY_LEVEL} -RealEncryption=1 27 28Execute \ 29 ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_edtt_gatt_test_app_prj_llcp_conf\ 30 -s=${SIMULATION_ID} -d=2 -v=${VERBOSITY_LEVEL} -RealEncryption=1 31 32Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ 33 -D=3 -sim_length=3600e6 $@ 34 35wait_for_background_jobs 36