Lines Matching +full:eq +full:- +full:level
2 # SPDX-License-Identifier: GPL-2.0
4 set -e
5 set -u
13 if test -f "$build_include"; then
23 # Locate the top level of the kernel source, and the net/rds
41 GCC_VER=$(gcc -dumpfullversion)
42 GCOV_VER=$($GCOV_CMD -v | grep gcov | awk '{print $3}'| awk 'BEGIN {FS="-"}{print $1}')
45 GCOV_CMD=gcov-$(gcc -dumpversion)
55 GCOV_VER=$($GCOV_CMD -v | grep gcov | awk '{print $3}'| \
56 awk 'BEGIN {FS="-"}{print $1}')
70 if ! grep -x "CONFIG_GCOV_PROFILE_RDS=y" "$kconfig" > /dev/null 2>&1; then
74 if ! grep -x "CONFIG_GCOV_KERNEL=y" "$kconfig" > /dev/null 2>&1; then
78 if grep -x "CONFIG_GCOV_PROFILE_ALL=y" "$kconfig" > /dev/null 2>&1; then
83 if [ "$GENERATE_GCOV_REPORT" -eq 0 ]; then
85 "\"tools/testing/selftests/net/rds/config.sh -g\" and rebuild the kernel"
93 # Kselftest framework requirement - SKIP code is 4.
95 if ! grep -x "$1=y" "$kconfig" > /dev/null 2>&1; then
102 if grep -x "$1=y" "$kconfig" > /dev/null 2>&1; then
119 if ! test -d "$obj_dir"; then
123 if ! test -e "$kconfig"; then
141 python_major=$(python3 -c "import sys; print(sys.version_info[0])")
142 python_minor=$(python3 -c "import sys; print(sys.version_info[1])")
143 if [[ python_major -lt 3 || ( python_major -eq 3 && python_minor -lt 9 ) ]] ; then
145 python3 -V
170 echo "USAGE: run.sh [-d logdir] [-l packet_loss] [-c packet_corruption]" \
171 "[-u packet_duplcate] [-g]"
175 echo "Invalid option: -${OPTARG}."
187 rm -fr "$LOG_DIR"
188 TRACE_FILE="${LOG_DIR}/rds-strace.txt"
190 mkdir -p "$LOG_DIR"
191 mkdir -p "$COVR_DIR"
196 rm -f "$TRACE_FILE"
197 strace -T -tt -o "$TRACE_FILE" python3 "$(dirname "$0")/test.py" --timeout 400 -d "$LOG_DIR" \
198 -l "$PLOSS" -c "$PCORRUPT" -u "$PDUP"
203 if [ "$GENERATE_GCOV_REPORT" -eq 1 ]; then
205 (set +x; cd /sys/kernel/debug/gcov; find ./* -name '*.gcda' | \
206 while read -r f
212 gcovr -s --html-details --gcov-executable "$GCOV_CMD" --gcov-ignore-parse-errors \
213 -o "${COVR_DIR}/gcovr" "${ksrc_dir}/net/rds/"
218 if [ "$test_rc" -eq 0 ]; then