Lines Matching +full:sh +full:- +full:rtc
2 # SPDX-License-Identifier: GPL-2.0
4 source cpu.sh
5 source cpufreq.sh
6 source governor.sh
7 source module.sh
8 source special-tests.sh
10 DIR="$(dirname $(readlink -f "$0"))"
11 source "${DIR}"/../kselftest/ktap_helpers.sh
21 printf "Usage: $0 [-h] [-todg args]
22 [-h <help>]
23 [-o <output-file-for-dump>]
24 [-t <basic: Basic cpufreq testing
27 suspend_rtc: suspend/resume back using the RTC wakeup alarm,
28 hibernate_rtc: hibernate/resume back using the RTC wakeup alarm,
29 modtest: test driver or governor modules. Only to be used with -d or -g options,
34 [-d <driver's module name: only with \"-t modtest>\"]
35 [-g <governor's module name: only with \"-t modtest>\"]
49 taskset -p 01 $$
51 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
53 if [ ! -d "$SYSFS" ]; then
77 h) # --help
81 t) # --func_type (Function to perform: basic, suspend, hibernate,
86 o) # --output-file (Output file to store dumps)
90 d) # --driver-mod-name (Name of the driver module)
94 g) # --governor-mod-name (Name of the governor module)
110 if [ $count = 0 -a $FUNC != "modtest" ]; then
128 do_suspend "suspend" 1 rtc
132 do_suspend "hibernate" 1 rtc
137 if [ -z $DRIVER_MOD ] && [ -z $GOVERNOR_MOD ]; then
138 ktap_exit_fail_msg "No driver or governor module passed with -d or -g"
173 ktap_print_msg "Invalid [-f] function type"
209 do_test | tee -a $OUTFILE.txt
210 if [ "${PIPESTATUS[0]}" -ne 0 ]; then