Commit 94fea664 authored by Naveen N. Rao's avatar Naveen N. Rao Committed by Shuah Khan
Browse files

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: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 4aa4d4de
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
#!/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
+1 −6
Original line number Diff line number Diff line
#!/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