Lines Matching +full:bsim +full:- +full:tests

3 # SPDX-License-Identifier: Apache-2.0
8 echo "run_parallel.sh [-help] [options]"
16 echo " or an input file including a list of tests and/or tests search paths"
20 echo " * Run all tests found under one folder:"
21 echo " SEARCH_PATH=tests/bsim/bluetooth/ll/conn/ tests/bsim/run_parallel.sh"
22 echo " * Run all tests found under two separate folders, matching a pattern in the first:"
23 echo " SEARCH_PATH=\"tests/bsim/bluetooth/ll/conn/tests_scripts/*encr* tests/bsim/net\"\
24 tests/bsim/run_parallel.sh"
25 echo " * Provide a tests list explicitly from an environment variable"
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"
30 echo " * Provide a tests list in a file:"
31 echo " TESTS_FILE=my_tests.txt tests/bsim/run_parallel.sh"
35 if [ $# -ge 1 ]; then
36 if grep -Eiq "(\?|-\?|-h|help|-help|--help)" <<< $1 ; then
46 if [ -n "${TESTS_FILE}" ]; then
49 all_cases=`find ${search_pattern} -name "*.sh" | grep -Ev "${sh_filter}"`
50 elif [ -n "${TESTS_LIST}" ]; then
53 SEARCH_PATH="${SEARCH_PATH:-.}"
54 all_cases=`find ${SEARCH_PATH} -name "*.sh" | grep -Ev "${sh_filter}"`
58 set -u
60 RESULTS_FILE="${RESULTS_FILE:-`pwd`/../RunResults.xml}"
66 mkdir -p $(dirname ${RESULTS_FILE})
71 export CLEAN_XML="sed -E -e 's/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g' \
72 -e 's/\"/&quot;/g' -e $'s/\x1b\[[0-9;]*[a-zA-Z]//g'"
74 echo -n "" > $tmp_res_file
76 if [ `command -v parallel` ]; then
77 if [ ${n_cases} -gt 0 ]; then
82 dur=$(($(date +%s%N) - $start))
83 dur_s=$(awk -vdur=$dur "BEGIN { printf(\"%0.3f\", dur/1000000000)}")
84 if [ $result -ne 0 ]; then
85 (>&2 echo -e "\e[91m{} FAILED\e[39m ($dur_s s)")
94 (>&2 echo -e "{} PASSED ($dur_s s)")
104 if [ $? -ne 0 ]; then
105 echo -e "\e[91m$case FAILED\e[39m"
112 echo -e "$case PASSED"
119 echo -e "</testsuite>\n</testsuites>\n" >> $tmp_res_file
120 dur=$(($SECONDS - $start))
121 echo -e "<testsuites>\n<testsuite errors=\"0\" failures=\"$err\"\
122 name=\"bsim tests\" skip=\"0\" tests=\"$n_cases\" time=\"$dur\">" \
123 | cat - $tmp_res_file > $RESULTS_FILE