Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/ftrace: Convert tracer tests to use 'requires' to specify program dependency

Now that we have a good way to specify dependency of tests on programs,
convert some of the tracer tests to use this method for specifying
dependency on 'chrt'.

Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Naveen N. Rao and committed by
Shuah Khan
94fea664 4aa4d4de

+2 -12
+1 -6
tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 # description: Test wakeup tracer 4 - # requires: wakeup:tracer 5 - 6 - if ! which chrt ; then 7 - echo "chrt is not found. This test requires nice command." 8 - exit_unresolved 9 - fi 4 + # requires: wakeup:tracer chrt:program 10 5 11 6 echo wakeup > current_tracer 12 7 echo 1 > tracing_on
+1 -6
tools/testing/selftests/ftrace/test.d/tracer/wakeup_rt.tc
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 # description: Test wakeup RT tracer 4 - # requires: wakeup_rt:tracer 5 - 6 - if ! which chrt ; then 7 - echo "chrt is not found. This test requires chrt command." 8 - exit_unresolved 9 - fi 4 + # requires: wakeup_rt:tracer chrt:program 10 5 11 6 echo wakeup_rt > current_tracer 12 7 echo 1 > tracing_on