public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] test:dfu: Add test script for testing DFU regression
Date: Thu, 29 May 2014 09:58:44 -0600	[thread overview]
Message-ID: <53875934.4010902@wwwdotorg.org> (raw)
In-Reply-To: <CAPnjgZ3tO9o9gRdc6mHMOzyB0fT5vuP3f7BCxuJLaqgBOOLYEA@mail.gmail.com>

On 05/23/2014 06:51 PM, Simon Glass wrote:
> Hi Lukasz,
> 
> On 22 May 2014 00:43, Lukasz Majewski <l.majewski@samsung.com> wrote:
>> This commit adds test script for testing if any commit has introduced
>> regression to the DFU.
>>
>> It uses md5 to test if sent and received file is correct.
>> The test detailed description is available at DESCRIPTION.TXT file.
>>
>> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
>> ---
>>  test/dfu/DESCRIPTION.TXT    |   27 ++++++++++++++

>> diff --git a/test/dfu/DESCRIPTION.TXT b/test/dfu/DESCRIPTION.TXT
>> new file mode 100644
>> index 0000000..48da06b
>> --- /dev/null
>> +++ b/test/dfu/DESCRIPTION.TXT
>> @@ -0,0 +1,27 @@
>> +DFU TEST CASE DESCRIPTION:
>> +
>> +For running test script one needs to create:
>> +./log and ./bkp
>> +
>> +One also need to generate with dd following files:
>> +
>> +dat_*
>> +
>> +(e.g. dat_127B.img  dat_128B.img  dat_129B.img  dat_33M.img  dat_4095B.img
>> +dat_4096B.img  dat_4097B.img  dat_63B.img  dat_64B.img  dat_65B.img
>> +dat_960.img  dat_97M.img)
> 
> How do you do that? Is this intended for use with a particular board?
> I think you are missing some info here.

I think the test script should generate its own test files, so the user
can simply run it without having to manually set up a bunch of stuff first.

One important test-case is files that are larger than
CONFIG_SYS_DFU_DATA_BUF_SIZE. Is dat_97M.img above intended to be 97MB?
If so, that's probably covered. Testing large sizes that both are and
are-not multiples of CONFIG_SYS_DFU_DATA_BUF_SIZE would be useful.

  parent reply	other threads:[~2014-05-29 15:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-22 10:43 [U-Boot] [PATCH] test:dfu: Add test script for testing DFU regression Lukasz Majewski
2014-05-24  0:51 ` Simon Glass
2014-05-26  6:20   ` Lukasz Majewski
2014-05-29 15:58   ` Stephen Warren [this message]
2014-05-29 23:41     ` Simon Glass
2014-05-30  7:13       ` Lukasz Majewski
2014-06-03  9:54 ` [U-Boot] [PATCH v2] test:dfu: Add test scripts " Lukasz Majewski
2014-06-06 21:08   ` Simon Glass
2014-06-12  9:00     ` Lukasz Majewski
2014-06-12 13:34       ` Simon Glass
2014-06-17 10:09     ` Lukasz Majewski
2014-06-18  9:38 ` [U-Boot] [PATCH v3] " Lukasz Majewski
2014-06-20  7:48   ` Lukasz Majewski

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=53875934.4010902@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