public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 4/4] test: Add basic tests for remoteproc
Date: Wed, 16 Sep 2015 18:57:36 -0500	[thread overview]
Message-ID: <20150916235736.GC30118@ogun.home> (raw)
In-Reply-To: <CAPnjgZ0T1C8f-wOCd-ELa8fbQaPUfzyZGvDimDxt5L6SSrA6yw@mail.gmail.com>

On 21:46-20150901, Simon Glass wrote:
> On 27 August 2015 at 22:07, Nishanth Menon <nm@ti.com> wrote:
> > Use the sandbox environment for the basic tests.
> >
> > Signed-off-by: Nishanth Menon <nm@ti.com>
> > ---
> > New patch.
> >
> >  test/dm/Makefile     |  1 +
> >  test/dm/remoteproc.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> >  2 files changed, 68 insertions(+)
> >  create mode 100644 test/dm/remoteproc.c
> 
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Tested-by: Simon Glass <sjg@chromium.org>
> 
> Nit below.

Thanks. Will fix the same in the next rev.

[...]
> > +
> > +       /* dt device device 2 */
> > +       ut_assertok(rproc_stop(0));
> > +       ut_assertok(rproc_reset(0));
> > +       /* -> invalid attempt tests.. */
> > +       ut_asserteq(-EINVAL, rproc_start(0));
> > +       ut_asserteq(-EINVAL, rproc_ping(0));
> > +       /* Valid tests.. */
> 
> You don't need a period at the end of these comments\

Yep. Will fix.

> 
> > +       ut_assertok(rproc_load(2, 1, 0));
> > +       ut_assertok(rproc_start(2));
> > +       ut_assertok(rproc_is_running(2));
> > +       ut_assertok(rproc_ping(2));
> > +       ut_assertok(rproc_reset(2));
> > +       ut_assertok(rproc_stop(2));
> 
> Would it be worth having a test that goes through things in the wrong
> sequence? It's up to you.

The current tests does attempt to perform basic sanity tests - there
are invalid sequence attempts as well.

> 
> BTW you don't have to put all your tests in one function, e.g. if some
> have a different purpose you can put them in a separate function.

I agree and had started it that way, then as I started putting things
together, considering the tests were simple sequence based, they were
good enough to put them in the test sequence in one shot. We can
definitely evolve as folks find specific needs of improvement in the
future.

-- 
Regards,
Nishanth Menon

      reply	other threads:[~2015-09-16 23:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-28  4:07 [U-Boot] [PATCH V2 0/4] drivers/sandbox: Introduce a simplified remoteproc framework Nishanth Menon
2015-08-28  4:07 ` [U-Boot] [PATCH V2 1/4] drivers: " Nishanth Menon
2015-09-02  3:46   ` Simon Glass
2015-09-16 23:47     ` Nishanth Menon
2015-08-28  4:07 ` [U-Boot] [PATCH V2 2/4] remoteproc: Introduce a sandbox dummy driver Nishanth Menon
2015-09-02  3:46   ` Simon Glass
2015-09-16 23:50     ` Nishanth Menon
2015-08-28  4:07 ` [U-Boot] [PATCH V2 3/4] sandbox: Introduce dummy remoteproc nodes Nishanth Menon
2015-09-02  3:46   ` Simon Glass
2015-08-28  4:07 ` [U-Boot] [PATCH V2 4/4] test: Add basic tests for remoteproc Nishanth Menon
2015-09-02  3:46   ` Simon Glass
2015-09-16 23:57     ` Nishanth Menon [this message]

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=20150916235736.GC30118@ogun.home \
    --to=nm@ti.com \
    --cc=u-boot@lists.denx.de \
    /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