selftests/ftrace: Convert tracer tests to use 'requires' to specify program dependency
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 28 Oct 2022 07:16:10 +0000 (12:46 +0530)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 28 Oct 2022 08:01:17 +0000 (02:01 -0600)
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>
tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc
tools/testing/selftests/ftrace/test.d/tracer/wakeup_rt.tc

index 11be10e1bf966a9eafbe41f72ea58cec85399ed4..e8f0fac9a110cc828d035facda857e61f144f944 100644 (file)
@@ -1,12 +1,7 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 # description: Test wakeup tracer
-# requires: wakeup:tracer
-
-if ! which chrt ; then
-  echo "chrt is not found. This test requires nice command."
-  exit_unresolved
-fi
+# requires: wakeup:tracer chrt:program
 
 echo wakeup > current_tracer
 echo 1 > tracing_on
index 3a77198b3c6902c0924da99745af6caad236e424..79807656785b0f5c87aacc70df69df725823f80b 100644 (file)
@@ -1,12 +1,7 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 # description: Test wakeup RT tracer
-# requires: wakeup_rt:tracer
-
-if ! which chrt ; then
-  echo "chrt is not found. This test requires chrt command."
-  exit_unresolved
-fi
+# requires: wakeup_rt:tracer chrt:program
 
 echo wakeup_rt > current_tracer
 echo 1 > tracing_on