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 failing.
14 # There isn't a shell-agnostic way to find the path of a sourced file,
16 if [ -z "$BASE_DIR" ]; then
21 # If Perl is unavailable, we must fall back to line-at-a-time prefixing
25 if [ ! -x /usr/bin/perl ]; then
26 sed -e 's/^/# /'
35 if [ -x /usr/bin/timeout ] ; then
36 /usr/bin/timeout --foreground "$kselftest_timeout" \
37 /usr/bin/timeout "$kselftest_timeout" $1
51 # Reset any "settings"-file variables.
53 # Load per-test-directory kselftest "settings" file.
55 if [ -r "$settings" ] ; then
58 if echo "$line" | grep -q '^#'; then
61 field=$(echo "$line" | cut -d= -f1)
62 value=$(echo "$line" | cut -d= -f2-)
69 if [ ! -e "$TEST" ]; then
74 if [ ! -x "$TEST" ]; then
77 if [ $(head -n 1 "$TEST" | cut -c -2) = "#!" ]
79 interpreter=$(head -n 1 "$TEST" | cut -c 3-)
92 if [ $rc -eq $skip_rc ]; then \
94 elif [ $rc -eq $timeout_rc ]; then \
96 echo "not ok $test_num $TEST_HDR_MSG # TIMEOUT $kselftest_timeout seconds"
100 cd - >/dev/null
109 total=$(echo "$@" | wc -w)
110 echo "1..$total"
114 if [ -n "$per_test_logging" ]; then