File tree Expand file tree Collapse file tree 4 files changed +16
-10
lines changed
Runner/suites/Kernel/Baseport Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 2727# Always source functestlib.sh, using $TOOLS exported by init_env
2828# shellcheck disable=SC1090,SC1091
2929. " $TOOLS /functestlib.sh"
30-
30+
3131TESTNAME=" adsp_remoteproc"
3232RES_FILE=" ./$TESTNAME .res"
3333FW=" adsp"
3434
3535test_path=$( find_test_case_by_name " $TESTNAME " )
3636cd " $test_path " || exit 1
37-
37+
3838log_info " -----------------------------------------------------------------------------------------"
3939log_info " ------------------- Starting $TESTNAME Testcase ----------------------------"
4040log_info " === Test Initialization ==="
5959# get_remoteproc_by_firmware prints: "path|state|firmware|name"
6060entries=" $( get_remoteproc_by_firmware " $FW " " " all) " || entries=" "
6161if [ -z " $entries " ]; then
62- fail_and_exit " $FW present in DT but no /sys/class/remoteproc entry found"
62+ log_fail " $FW present in DT but no /sys/class/remoteproc entry found"
63+ exit 1
6364fi
6465
6566count_instances=$( printf ' %s\n' " $entries " | wc -l)
Original file line number Diff line number Diff line change 2828# Always source functestlib.sh, using $TOOLS exported by init_env
2929# shellcheck disable=SC1090,SC1091
3030. " $TOOLS /functestlib.sh"
31-
31+
3232TESTNAME=" cdsp_remoteproc"
3333RES_FILE=" ./$TESTNAME .res"
3434FW=" cdsp"
3535
3636test_path=$( find_test_case_by_name " $TESTNAME " )
3737cd " $test_path " || exit 1
38-
38+
3939log_info " -----------------------------------------------------------------------------------------"
4040log_info " ------------------- Starting $TESTNAME Testcase ----------------------------"
4141log_info " === Test Initialization ==="
6060# get_remoteproc_by_firmware prints: "path|state|firmware|name"
6161entries=" $( get_remoteproc_by_firmware " $FW " " " all) " || entries=" "
6262if [ -z " $entries " ]; then
63- fail_and_exit " $FW present in DT but no /sys/class/remoteproc entry found"
63+ log_fail " $FW present in DT but no /sys/class/remoteproc entry found"
64+ exit 1
6465fi
6566
6667count_instances=$( printf ' %s\n' " $entries " | wc -l)
Original file line number Diff line number Diff line change 2828# Always source functestlib.sh, using $TOOLS exported by init_env
2929# shellcheck disable=SC1090,SC1091
3030. " $TOOLS /functestlib.sh"
31-
31+
3232TESTNAME=" gpdsp_remoteproc"
3333RES_FILE=" ./$TESTNAME .res"
3434FW=" gpdsp"
3535
3636test_path=$( find_test_case_by_name " $TESTNAME " )
3737cd " $test_path " || exit 1
38-
38+
3939log_info " -----------------------------------------------------------------------------------------"
4040log_info " ------------------- Starting $TESTNAME Testcase ----------------------------"
4141log_info " === Test Initialization ==="
Original file line number Diff line number Diff line change 22
33# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
44# SPDX-License-Identifier: BSD-3-Clause-Clear
5+ #
56# Robustly find and source init_env
67SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
78INIT_ENV=" "
2728# Always source functestlib.sh, using $TOOLS exported by init_env
2829# shellcheck disable=SC1090,SC1091
2930. " $TOOLS /functestlib.sh"
30-
31+
3132TESTNAME=" wpss_remoteproc"
3233FW=" wpss"
3334RES_FILE=" ./$TESTNAME .res"
174175 else
175176 # If DT said WPSS present but neither remoteproc nor driver -> FAIL
176177 if [ " $dt_says_present " -eq 1 ]; then
177- fail_and_exit " DT lists $FW but no remoteproc and ath11k not loaded"
178+ log_fail " DT lists $FW but no remoteproc and ath11k not loaded"
179+ echo " $TESTNAME FAIL" > " $RES_FILE "
180+ exit 1
178181 fi
179182 log_skip " $TESTNAME SKIP – neither remoteproc nor ath11k path available"
180183 echo " $TESTNAME SKIP" > " $RES_FILE "
@@ -200,6 +203,7 @@ if [ -e "$1" ]; then
200203else
201204 log_info " No wlan interface yet (maybe not brought up)"
202205fi
206+
203207# Final result for driver path: PASS if we got here
204208log_pass " WPSS driver path checks passed"
205209echo " $TESTNAME PASS" > " $RES_FILE "
You can’t perform that action at this time.
0 commit comments