From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Sandbox DT for testing (unit tests)
Date: Tue, 26 Jan 2016 15:36:56 -0700 [thread overview]
Message-ID: <56A7F508.1080006@wwwdotorg.org> (raw)
Simon,
I noticed that under sandbox, "ut dm" needs sandbox to have been started
with arch/sandbox/dts/test.dtb. A few questions related to that:
a) Is it safe and does it make sense to always use that DT when running
Sandbox for tests (e.g. under test/py)?
b) Does it make sense for that DT to be the default (perhaps bundled
into the executable like other DT-using platforms, or perhaps the
default value for the -d option if the user supplies none)?
c) Is it possible for "ut dm" to detect if the correct DT has been
loaded (e.g. by reading some property only in that file as a marker) and
only execute tests that don't rely on test.dtb if test.dtb isn't in use?
I think running "ut env" and "ut time" under test/py should be very
easy, although the test log will only report overall status, not the
status of each individual test within the ut invocation. That
information will still be in the log file though. I'll go add tests for
those two at least.
next reply other threads:[~2016-01-26 22:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-26 22:36 Stephen Warren [this message]
2016-01-26 23:08 ` [U-Boot] Sandbox DT for testing (unit tests) Simon Glass
2016-01-26 23:28 ` Stephen Warren
2016-01-26 23:35 ` Simon Glass
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=56A7F508.1080006@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--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