From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-Boot Regression Testing
Date: Fri, 11 Oct 2013 09:53:17 +0200 [thread overview]
Message-ID: <20131011095317.402e86c1@amdc308.digital.local> (raw)
In-Reply-To: <20131009162255.GG31348@cumulusnetworks.com>
Hi Curt,
Sorry for late reply.
> Hello,
>
> I have some questions about how U-Boot regression testing works. I am
> assuming some regression testing happens during the release period
> across some representative sample of boards and architectures.
I can only present my approach - I test the board (TRATS) often before
the official u-boot release.
I don't have any list of commands to test -> I just test the ones often
used (mm) or the one to which I contribute (pmic, dfu, ums).
>
> I know people check for compilation failures with MAKEALL, but I am
> wondering about runtime testing. I also understand that testing
> platform specific boot code is rather difficult (or easy depending on
> your perspective) - it boots or it does not boot.
>
> To be concrete -- how are core U-Boot commands and features tested?
> For example how do you test that FIT image support is not broken or
> that the 'env' command and all its options work properly?
As with DFU or UMS - I have got an automated test script for HOST PC to
test if data (including corner cases data size) is written and read
correctly from the eMMC medium. However those tests require typing "dfu
mmc 0" or "ums 0" commands on the target.
This posts reminds me that I shall post them....
>
> Googling did not turn up much on how this is done.
>
> On the social side -- is that something the community helps out with
> or something DENX does, or a mix?
>
> Are you using a test framework of some kind, either home grown or open
> source? These things tend to become home grown over time :)
I think that such scripts shall be added to ./test directory.
>
> This kind of testing usually takes the form of 'chat' scripts
> communicating over serial consoles. Perhaps you are using expect,
> pexpect, python nose?
Unfortunately I don't use serial console. I even thought of writing a
special USB gadget (or extent DFU) to provide a convenient way to test
if e.g. eMMC write works:
- Read file from FS via e.g. ext4load
- Calculate CRC (crc)
- Store the file with other name
- Read it
- Calculate CRC and compare
I'm also curious how other perform their tests. Since I _really_ want
to avoid over-engineered solution. Maybe someone do it better, simpler?
>
> We have a project, of which U-Boot is a part, that is starting to span
> multiple boards and architectures. We make a few modifications to
> U-Boot and I want to start automated regression testing as the number
> of boards increases.
As I have written above. The best approach would be to use only board
under test and host PC.
However it might be necessary to use the uC based "interface" board [1]
connected to HOST PC to perform power cycle (when we cannot use
u-boot's "reset" command).
>
> If an existing framework exists that folks are happy with I would love
> to hear about it.
+1 here
> Equally, I am interested to hear about what did
> *not* work for people.
I would like to avoid using the [1]. And night run tests would be also
very welcome.
> Whatever method our project uses the scripts
> will be publicly available.
>
> Cheers,
> Curt
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
prev parent reply other threads:[~2013-10-11 7:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-09 16:22 [U-Boot] U-Boot Regression Testing Curt Brune
2013-10-10 16:06 ` Simon Glass
2013-10-10 19:32 ` Wolfgang Denk
2013-10-11 4:11 ` Curt Brune
2013-10-11 7:53 ` Lukasz Majewski [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=20131011095317.402e86c1@amdc308.digital.local \
--to=l.majewski@samsung.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