All of lore.kernel.org
 help / color / mirror / Atom feed
From: "平松雅巳 / HIRAMATU,MASAMI" <masami.hiramatsu.pt@hitachi.com>
To: 'Michael Petlan' <mpetlan@redhat.com>,
	"linux-perf-users@vger.kernel.org"
	<linux-perf-users@vger.kernel.org>
Subject: RE: [PATCH 0/3] introducing tools/perf/testsuite
Date: Thu, 22 Oct 2015 10:11:18 +0000	[thread overview]
Message-ID: <50399556C9727B4D88A595C8584AAB37525D2095@GSjpTKYDCembx32.service.hitachi.net> (raw)
In-Reply-To: <1445468925.12960.117.camel@Rudolf-RHEL-7>

Hi Michael,

>Hi all,
>
>in the following patches I introduce a skeleton of a testsuite for
>perf tool. The idea of this testsuite is to primarily cover all the
>sub-commands perf has and verify their functionality.

Nice!
I also have ftracetest based homebrew testscripts (shellscripts)
for perf-probe. Mine requires just a posix shell and some core utils (no perl),
but only covers perf-probe (since it is what I need :) )

I'll post my runtest script series soon.

>The testsuite is designed to be structured in order to be able to
>keep an order in some amount of testcases. Each group of testcases
>is located in a base_<something> dir with its init and cleanup
>scripts and shell files test_<something>.sh that should carry the
>testcases. Each testcase can have multiple assertions inside. The
>base_skeleton and base_stat are an example. New tests are supposed
>to be derived from them.
>
>Since the testsuite is meant to be usable for both smoke and deeper
>testing, it has some parametrization in common/parametrization.sh.
>
>My idea is to add testcases for the other existing builtin commands
>and then continue extending it for the upcoming ones.
>
>How does it seem to you? Thoughts?

I like this kind of outside tests instead of perf-test. Some sort of features
can be tested by the perf-test, but more complex features like
perf-probe SDT support etc. are hard to be tested (or/and to write testcases)
inside the perf-test.

I think just a set of shell script is good to go since we can check the result easily
and good to review if the testcase is included in a new feature.

Thank you,


  reply	other threads:[~2015-10-22 10:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21 23:08 [PATCH 0/3] introducing tools/perf/testsuite Michael Petlan
2015-10-22 10:11 ` 平松雅巳 / HIRAMATU,MASAMI [this message]
2015-10-22 12:16 ` [PATCH perf/core 0/2] perf/runtests: Add runtests.sh shellscript testcases for perf probe Masami Hiramatsu
2015-10-22 12:16   ` [PATCH perf/core 1/2] perf/runtests: Add runtests.sh shellscript testsuite Masami Hiramatsu
2015-10-22 12:16   ` [PATCH perf/core 2/2] perf/runtests: Add testcases for perf probe Masami Hiramatsu
2015-11-03  0:43   ` [PATCH perf/core 0/2] perf/runtests: Add runtests.sh shellscript " Michael Petlan
2015-11-03  3:24     ` 平松雅巳 / HIRAMATU,MASAMI
2015-11-03 15:45       ` Arnaldo Carvalho de Melo
2015-11-03 19:55         ` Michael Petlan

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=50399556C9727B4D88A595C8584AAB37525D2095@GSjpTKYDCembx32.service.hitachi.net \
    --to=masami.hiramatsu.pt@hitachi.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mpetlan@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.