diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2014-08-18 12:12:26 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-08-20 13:10:32 +0200 |
commit | 0d7f85f0571c5605a45e5833d232eab541ad113c (patch) | |
tree | 99ce00d45f325a17cd08c1eb8da6bcc2f5943d4a /test | |
parent | 8fc171318e352ae191cdf527252e9166a56851ab (diff) | |
download | u-boot-imx-0d7f85f0571c5605a45e5833d232eab541ad113c.zip u-boot-imx-0d7f85f0571c5605a45e5833d232eab541ad113c.tar.gz u-boot-imx-0d7f85f0571c5605a45e5833d232eab541ad113c.tar.bz2 |
test: dfu: Extend dfu_gadget_test_init.sh to accept sizes of test files
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>
Diffstat (limited to 'test')
-rwxr-xr-x | test/dfu/dfu_gadget_test_init.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/dfu/dfu_gadget_test_init.sh b/test/dfu/dfu_gadget_test_init.sh index 2163a68..0d5c6c0 100755 --- a/test/dfu/dfu_gadget_test_init.sh +++ b/test/dfu/dfu_gadget_test_init.sh @@ -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" |