[UBOOT PATCH v2] test/py: net: Add a TFTP put test

Tom Rini trini at konsulko.com
Tue Oct 31 14:06:27 CET 2023


On Tue, Oct 31, 2023 at 06:22:29PM +0530, Love Kumar wrote:

> Execute tftpput command for uploading files to a server and validate its
> size & CRC32.
> 
> Signed-off-by: Love Kumar <love.kumar at amd.com>
> ---
> Changes in v2:
> - Add marking for cmd_tftpput config
> ---
>  test/py/tests/test_net.py | 72 +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 72 insertions(+)
[snip]
> +    fnu = "_".join([datetime.datetime.now().strftime("%y%m%d%H%M%S"), fn])
[snip]
> +            "tftpput $fileaddr $filesize $serverip:%s" % (fnu)

I think we need to have the filename to upload as be part of the board
env as well, otherwise this is going to fill up the tftpserver over
time. I use a 1MiB file and that times boards times number of iterations
I end up doing means I'll start noticing in a few months that I've got
less free space than I expected in that format.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231031/12d42dee/attachment.sig>


More information about the U-Boot mailing list