Lines Matching +full:- +full:e
3 # SPDX-License-Identifier: Apache-2.0
8 echo "run_parallel.sh [-help] [options]"
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/&/\&/g' -e 's/</\</g' -e 's/>/\>/g' \
72 -e 's/\"/"/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\"\
123 | cat - $tmp_res_file > $RESULTS_FILE