]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
test: dfu: Extend dfu_gadget_test_init.sh to accept sizes of test files
authorLukasz Majewski <l.majewski@samsung.com>
Mon, 18 Aug 2014 10:12:26 +0000 (12:12 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 20 Aug 2014 11:10:32 +0000 (13:10 +0200)
It is now possible to pass to the dfu_gadget_test_init.sh script the sizes
of files to be generated.

This feature is required by UMS tests which reuse this code.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
test/dfu/dfu_gadget_test_init.sh

index 2163a685a55df9fe817e1f153633852a9e0e7ce7..0d5c6c0cd080249f00540505538c9a888db14e2b 100755 (executable)
@@ -9,7 +9,11 @@ COLOUR_DEFAULT="\33[0m"
 
 LOG_DIR="./log"
 
-TEST_FILES_SIZES="63 64 65 127 128 129 4095 4096 4097 959 960 961 1048575 1048576 8M"
+if [ $# -eq 0 ]; then
+    TEST_FILES_SIZES="63 64 65 127 128 129 4095 4096 4097 959 960 961 1048575 1048576 8M"
+else
+    TEST_FILES_SIZES=$@
+fi
 
 printf "Init script for generating data necessary for DFU test script"