From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
To: "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
Cc: Shuah Khan <shuah@kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
<linux-kernel@vger.kernel.org>, <linux-kselftest@vger.kernel.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
Akanksha J N <akanksha@linux.vnet.ibm.com>
Subject: Re: [RESEND PATCH v2 2/2] selftests/ftrace: Convert tracer tests to use 'requires' to specify program dependency
Date: Fri, 4 Nov 2022 10:16:07 +0900 [thread overview]
Message-ID: <20221104101607.844382ef3dc5e2515febaa21@kernel.org> (raw)
In-Reply-To: <ca7a2ba0500e3df69d878c7896015184dc4d9a93.1666941090.git.naveen.n.rao@linux.vnet.ibm.com>
On Fri, 28 Oct 2022 12:46:10 +0530
"Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> wrote:
> 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'.
>
Looks good to me.
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Thanks!
> Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
> Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
> ---
> tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc | 7 +------
> tools/testing/selftests/ftrace/test.d/tracer/wakeup_rt.tc | 7 +------
> 2 files changed, 2 insertions(+), 12 deletions(-)
>
> diff --git a/tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc b/tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc
> index 11be10e1bf966a..e8f0fac9a110cc 100644
> --- a/tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc
> +++ b/tools/testing/selftests/ftrace/test.d/tracer/wakeup.tc
> @@ -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
> diff --git a/tools/testing/selftests/ftrace/test.d/tracer/wakeup_rt.tc b/tools/testing/selftests/ftrace/test.d/tracer/wakeup_rt.tc
> index 3a77198b3c6902..79807656785b0f 100644
> --- a/tools/testing/selftests/ftrace/test.d/tracer/wakeup_rt.tc
> +++ b/tools/testing/selftests/ftrace/test.d/tracer/wakeup_rt.tc
> @@ -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
> --
> 2.38.0
>
--
Masami Hiramatsu (Google) <mhiramat@kernel.org>
next prev parent reply other threads:[~2022-11-04 1:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-28 7:16 [RESEND PATCH v2 0/2] selftests/ftrace: Capture dependency on external programs Naveen N. Rao
2022-10-28 7:16 ` [RESEND PATCH v2 1/2] selftests/ftrace: Add check for ping command for trigger tests Naveen N. Rao
2022-10-28 7:16 ` [RESEND PATCH v2 2/2] selftests/ftrace: Convert tracer tests to use 'requires' to specify program dependency Naveen N. Rao
2022-11-04 1:16 ` Masami Hiramatsu [this message]
2022-11-04 1:16 ` [RESEND PATCH v2 0/2] selftests/ftrace: Capture dependency on external programs Masami Hiramatsu
2022-11-22 21:49 ` Steven Rostedt
2022-11-22 23:10 ` Shuah Khan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221104101607.844382ef3dc5e2515febaa21@kernel.org \
--to=mhiramat@kernel.org \
--cc=akanksha@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=naveen.n.rao@linux.vnet.ibm.com \
--cc=rostedt@goodmis.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox