• Home
  • Raw
  • Download

Lines Matching +full:total +full:- +full:timeout

2 # SPDX-License-Identifier: GPL-2.0
11 # "timeout" how many seconds to let each test run before running
12 # over our soft timeout limit.
15 # There isn't a shell-agnostic way to find the path of a sourced file,
17 if [ -z "$BASE_DIR" ]; then
22 TR_CMD=$(command -v tr)
24 # If Perl is unavailable, we must fall back to line-at-a-time prefixing
28 if [ ! -x /usr/bin/perl ]; then
29 sed -e 's/^/# /'
38 if [ -x /usr/bin/timeout ] ; then
39 /usr/bin/timeout --foreground "$kselftest_timeout" \
40 /usr/bin/timeout "$kselftest_timeout" $1
54 # Reset any "settings"-file variables.
69 # rtctest --> KSELFTEST_RTCTEST_ARGS="/dev/rtc1"
71 # cpu-on-off-test.sh --> KSELFTEST_CPU_ON_OFF_TEST_SH_ARGS="-a -p 10"
73 if [ -n "$TR_CMD" ]; then
75 $TR_CMD -d "[:blank:][:cntrl:]" | \
76 $TR_CMD -c "[:alnum:]_" "_" | \
81 # Load per-test-directory kselftest "settings" file.
83 if [ -r "$settings" ] ; then
86 if echo "$line" | grep -q '^#'; then
89 field=$(echo "$line" | cut -d= -f1)
90 value=$(echo "$line" | cut -d= -f2-)
95 # Command line timeout overrides the settings file
96 if [ -n "$kselftest_override_timeout" ]; then
98 echo "# overriding timeout to $kselftest_timeout" >> "$logfile"
100 echo "# timeout set to $kselftest_timeout" >> "$logfile"
105 if [ ! -e "$TEST" ]; then
109 if [ -x /usr/bin/stdbuf ]; then
110 stdbuf="/usr/bin/stdbuf --output=L "
112 eval kselftest_cmd_args="\$${kselftest_cmd_args_ref:-}"
114 if [ ! -x "$TEST" ]; then
117 if [ $(head -n 1 "$TEST" | cut -c -2) = "#!" ]
119 interpreter=$(head -n 1 "$TEST" | cut -c 3-)
132 if [ $rc -eq $skip_rc ]; then \
134 elif [ $rc -eq $timeout_rc ]; then \
136 echo "not ok $test_num $TEST_HDR_MSG # TIMEOUT $kselftest_timeout seconds"
140 cd - >/dev/null
149 total=$(echo "$@" | wc -w)
150 echo "1..$total"
154 if [ -n "$per_test_logging" ]; then