diff mbox

[U-Boot,2/3] test: dfu: add some more test cases

Message ID 1404238617-30522-2-git-send-email-swarren@wwwdotorg.org
State Accepted
Delegated to: Marek Vasut
Headers show

Commit Message

Stephen Warren July 1, 2014, 6:16 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

On Tegra, the DFU buffer size is 1M. Consequently, the 8M test always
fails. Add tests for the 1M size, and one byte less as a corner case,
so that some large tests are executed and expected to pass.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 test/dfu/dfu_gadget_test_init.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ɓukasz Majewski July 8, 2014, 7:58 a.m. UTC | #1
Hi Stephen,

> From: Stephen Warren <swarren@nvidia.com>
> 
> On Tegra, the DFU buffer size is 1M. Consequently, the 8M test always
> fails. Add tests for the 1M size, and one byte less as a corner case,
> so that some large tests are executed and expected to pass.
> 
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
>  test/dfu/dfu_gadget_test_init.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/dfu/dfu_gadget_test_init.sh
> b/test/dfu/dfu_gadget_test_init.sh index fb54ad8c55ee..2163a685a55d
> 100755 --- a/test/dfu/dfu_gadget_test_init.sh
> +++ b/test/dfu/dfu_gadget_test_init.sh
> @@ -9,7 +9,7 @@ COLOUR_DEFAULT="\33[0m"
>  
>  LOG_DIR="./log"
>  
> -TEST_FILES_SIZES="63 64 65 127 128 129 4095 4096 4097 959 960 961 8M"
> +TEST_FILES_SIZES="63 64 65 127 128 129 4095 4096 4097 959 960 961
> 1048575 1048576 8M" 
>  printf "Init script for generating data necessary for DFU test
> script" 

Applied to u-boot-dfu tree.

Stephen, thanks for your support.
diff mbox

Patch

diff --git a/test/dfu/dfu_gadget_test_init.sh b/test/dfu/dfu_gadget_test_init.sh
index fb54ad8c55ee..2163a685a55d 100755
--- a/test/dfu/dfu_gadget_test_init.sh
+++ b/test/dfu/dfu_gadget_test_init.sh
@@ -9,7 +9,7 @@  COLOUR_DEFAULT="\33[0m"
 
 LOG_DIR="./log"
 
-TEST_FILES_SIZES="63 64 65 127 128 129 4095 4096 4097 959 960 961 8M"
+TEST_FILES_SIZES="63 64 65 127 128 129 4095 4096 4097 959 960 961 1048575 1048576 8M"
 
 printf "Init script for generating data necessary for DFU test script"