[PATCH v7] test/py: net_boot: Add test cases for net boot

2024-06-05 Thread Love Kumar
. This test relies on boardenv_* containing configuration values including the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the boot log pattern value is matched. For example, if the parameter 'pattern' is defined as 'login:', it will boot till login prompt. Signed-off-by: Love

[PATCH v6] test/py: net_boot: Add test cases for net boot

2024-06-03 Thread Love Kumar
. This test relies on boardenv_* containing configuration values including the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the boot log pattern value is matched. For example, if the parameter 'pattern' is defined as 'login:', it will boot till login prompt. Signed-off-by: Love

Re: [PATCH v2 12/14] test/py: net: add _lwip variants of dhcp, ping and tftpboot tests

2024-05-28 Thread Love Kumar
assert expected_crc in output +@pytest.mark.buildconfigspec("cmd_net_lwip") +def test_net_tftpboot_lwip(u_boot_console): +test_net_tftpboot(u_boot_console, True) + @pytest.mark.buildconfigspec('cmd_nfs') def test_net_nfs(u_boot_console): """Test the nfs command. Reviewed-by: Love Kumar

[PATCH v5] test/py: net_boot: Add test cases for net boot

2024-05-28 Thread Love Kumar
. This test relies on boardenv_* containing configuration values including the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the boot log pattern value is matched. For example, if the parameter 'pattern' is defined as 'login:', it will boot till login prompt. Signed-off-by: Love

[PATCH] test/py: Add support to enable check for bad pattern

2024-05-22 Thread Love Kumar
get kernel image!') with u_boot_console.enable_check(check_type, check_pattern): u_boot_console.run_command('') Signed-off-by: Love Kumar --- test/py/u_boot_console_base.py | 44 ++ 1 file changed, 44 insertions(+) diff --git a/test/py/u_boot_console_base.py b

Re: [PATCH v4] test/py: net_boot: Add test cases for net boot

2024-05-06 Thread Love Kumar
On 04/05/24 1:48 am, Tom Rini wrote: On Fri, May 03, 2024 at 05:39:46PM +0530, Love Kumar wrote: Add tests for booting image using tftpboot/pxe boot commands, tftpboot boot case loads the FIT image into DDR and boots using bootm command whereas pxe boot cases downloads the pxe configuration

[PATCH v4] test/py: net_boot: Add test cases for net boot

2024-05-03 Thread Love Kumar
. This test relies on boardenv_* containing configuration values including the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the boot log pattern value is matched. For example, if the parameter 'pattern' is defined as 'login:', it will boot till login prompt. Signed-off-by: Love

[PATCH v3] test/py: net_boot: Add test cases for net boot

2024-04-30 Thread Love Kumar
. This test relies on boardenv_* containing configuration values including the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the boot log pattern value is matched. For example, if the parameter 'pattern' is defined as 'login:', it will boot till login prompt. Signed-off-by: Love

Re: [PATCH 2/5] mmc: zynq-sdhci: refactor tapdelay settings

2024-03-14 Thread Love Kumar
00 0001 ZynqMP> Regards, Love Kumar On 23/02/24 7:36 pm, Steffen Dirkwinkel wrote: From: Steffen Dirkwinkel Previously we were setting in tapdelay for SD1 every time even if SD0 was requested. The SD tapdelay settings are shifted by 16 bits between SD0 and SD1. We can use that to make our

[PATCH v4] test/py: reset: Add a test for reset command

2024-03-12 Thread Love Kumar
Add a test for reset commands which performs resetting of CPU, It does COLD reset by default and WARM reset with -w option. Signed-off-by: Love Kumar --- Changes in v2: - Set bootmode through boardenv if modeboot is not defined Changes in v3: - Fix the issue with bad pattern found on console

[PATCH v4] test/py: saveenv: Add a test for saveenv command

2024-03-12 Thread Love Kumar
Add test case for saveenv command in non-JTAG bootmode which saves the u-boot environment variables in persistent storage. Signed-off-by: Love Kumar --- Changes in v2: - Set bootmode through boardenv if modeboot is not defined Changes in v3: - Fix the issue with bad patterns and escape

Re: [PATCH v3] test/py: reset: Add a test for reset command

2024-03-11 Thread Love Kumar
Hi, On 11/03/24 2:11 pm, Angelo Dureghello wrote: Hi, jfyi, reset support added in qemu merged as commit d3c79c3974. Regards, angelo The other issue was with echo commands: => echo $modeboot $modeboot => echo $? $? Does HUSH shell is enabled by default for this? Regards, Love

[PATCH v3] test/py: saveenv: Add a test for saveenv command

2024-02-19 Thread Love Kumar
Add test case for saveenv command in non-JTAG bootmode which saves the u-boot environment variables in persistent storage. Signed-off-by: Love Kumar --- Changes in v2: - Set bootmode through boardenv if modeboot is not defined Changes in v3: - Fix the issue with bad patterns and escape

[PATCH v3] test/py: reset: Add a test for reset command

2024-02-19 Thread Love Kumar
Add a test for reset commands which performs resetting of CPU, It does COLD reset by default and WARM reset with -w option. Signed-off-by: Love Kumar --- Changes in v2: - Set bootmode through boardenv if modeboot is not defined Changes in v3: - Fix the issue with bad pattern found on console

[PATCH v2] test/py: reset: Add a test for reset command

2024-02-13 Thread Love Kumar
Add a test for reset commands which performs resetting of CPU, It does COLD reset by default and WARM reset with -w option. Signed-off-by: Love Kumar --- Changes in v2: - Set bootmode through boardenv if modeboot is not defined --- test/py/tests/test_reset.py | 63

[PATCH v2] test/py: saveenv: Add a test for saveenv command

2024-02-13 Thread Love Kumar
Add test case for saveenv command in non-JTAG bootmode which saves the u-boot environment variables in persistent storage. Signed-off-by: Love Kumar --- Changes in v2: - Set bootmode through boardenv if modeboot is not defined --- test/py/tests/test_saveenv.py | 138

[PATCH v5] test/py: net: Add dhcp abort test

2024-01-30 Thread Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot prompt and validate the abort status. Signed-off-by: Love Kumar --- Changes in v2: - Mark CMD_MII command dependency Changes in v3: - Skip the test if PHY device not present Changes in v4: - Setup the network configuration

[PATCH] test/py: scsi: Add test for scsi commands

2024-01-19 Thread Love Kumar
Add a following test cases for scsi commands: scsi_reset - To reset SCSI controller scsi_info - To show available SCSI devices scsi_scan - To (re-)scan SCSI bus scsi_device - To show or set surrent device scsi_part - To print partition table of selected SCSI device Signed-off-by: Love Kumar

[PATCH] test/py: spi: Add tests for SPI flash device

2024-01-19 Thread Love Kumar
Add test cases for sf commands to verify various SPI flash operations such as erase, write and read. It also adds qspi lock unlock cases. This test relies on boardenv_* configurations to run it for different SPI flash family such as single SPI, QSPI, and OSPI. Signed-off-by: Love Kumar --- test

[PATCH] test/py: nand: Add tests for NAND flash device

2024-01-19 Thread Love Kumar
Add tests for nand commands to test various NAND flash operations such as erase, write and read. Signed-off-by: Love Kumar --- test/py/tests/test_nand.py | 201 + 1 file changed, 201 insertions(+) create mode 100644 test/py/tests/test_nand.py diff --git

[PATCH] test/py: usb: Add tests for USB device

2024-01-19 Thread Love Kumar
Add the test cases for usb commands to test its various functionality such as start, stop, reset, info, tree, storage, dev, part, ls, load, and save. It also adds different file systems cases such as fat32, ext2 and ext4. Signed-off-by: Love Kumar --- test/py/tests/test_usb.py | 626

[PATCH] test/py: mmc: Add tests for MMC device

2024-01-19 Thread Love Kumar
Add the test cases for mmc commands to test its various functionality such as mmc list, dev, info, rescan, part, ls, load, and save. It also adds different file systems cases such as fat32, ext2 and ext4. Signed-off-by: Love Kumar --- test/py/tests/test_mmc.py | 671

[PATCH] test/py: secure: Add secure tests for Zynq & ZynqMP

2024-01-19 Thread Love Kumar
Add test cases to verify the different type of secure boot images loaded at DDR location for AMD's ZynqMP SoC. It also adds tests authentication and decryption functionality using AES and RSA features for Zynq. Signed-off-by: Love Kumar --- test/py/tests/test_zynq_secure.py | 190

[PATCH] test/py: gpio: Add gpio pins generic test

2024-01-18 Thread Love Kumar
-by: Love Kumar --- test/py/tests/test_gpio.py | 90 ++ 1 file changed, 90 insertions(+) diff --git a/test/py/tests/test_gpio.py b/test/py/tests/test_gpio.py index 0af186f23602..3e16e6365743 100644 --- a/test/py/tests/test_gpio.py +++ b/test/py/tests

[PATCH] test/py: zynqmp_rpu: Add test for loading RPU apps

2024-01-18 Thread Love Kumar
Add testcases for loading RPU applications in split and lockstep mode including the negative one for AMD's ZynqMP SoC. Signed-off-by: Love Kumar --- test/py/tests/test_zynqmp_rpu.py | 208 +++ 1 file changed, 208 insertions(+) create mode 100644 test/py/tests

[PATCH v2] test/py: net_boot: Add test cases for net boot

2024-01-12 Thread Love Kumar
. This test relies on boardenv_* containing configuration values including the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the boot log pattern value is matched. For example, if the parameter 'pattern' is defined as 'login:', it will boot till login prompt. Signed-off-by: Love

[PATCH] test/py: saveenv: Add a test for saveenv command

2024-01-11 Thread Love Kumar
Add test case for saveenv command in non-JTAG bootmode which saves the u-boot environment variables in persistent storage. Signed-off-by: Love Kumar --- test/py/tests/test_saveenv.py | 125 ++ 1 file changed, 125 insertions(+) create mode 100644 test/py/tests

[PATCH] test/py: reset: Add a test for reset command

2024-01-10 Thread Love Kumar
Add a test for reset commands which performs resetting of CPU, It does COLD reset by default and WARM reset with -w option. Signed-off-by: Love Kumar --- test/py/tests/test_reset.py | 50 + 1 file changed, 50 insertions(+) create mode 100644 test/py/tests

[PATCH] test/py: bootstage: Add test for bootstage command

2024-01-09 Thread Love Kumar
Add test cases for bootstage command to print the bootstage report, to stash the data into memory and to unstash the data from memory. Signed-off-by: Love Kumar --- test/py/tests/test_bootstage.py | 67 + 1 file changed, 67 insertions(+) create mode 100644 test

[PATCH] test/py: net_boot: Add test cases for net boot

2024-01-08 Thread Love Kumar
. Signed-off-by: Love Kumar --- test/py/tests/test_net_boot.py | 371 + 1 file changed, 371 insertions(+) create mode 100644 test/py/tests/test_net_boot.py diff --git a/test/py/tests/test_net_boot.py b/test/py/tests/test_net_boot.py new file mode 100644 index

[PATCH] test/py: memtest: Add tests for mtest command

2024-01-03 Thread Love Kumar
Add the following memory tests: memtest_negative - To test mtest command by providing incorrect inputs memtest_ddr - To test memory write-read-comparision for DDR memory Signed-off-by: Love Kumar --- test/py/tests/test_memtest.py | 68 +++ 1 file changed, 68

[PATCH v3] test/py: i2c: Add tests for i2c command

2024-01-01 Thread Love Kumar
Add below test cases for i2c commands: i2c_bus - To show i2c bus info, i2c_dev - To set or show the current bus, i2c_probe - To probe the i2c device, i2c_eeprom - To test i2c eeprom device, i2c_probe_all_buses - To list down all the buses and probes it Signed-off-by: Love Kumar --- Changes in v2

[PATCH v3] test/py: mii: Add tests for mii command

2024-01-01 Thread Love Kumar
Add below test cases for mii commands: mii_info -To display MII PHY info mii_list - To list MII devices mii_set_device - To set MII device mii_read - To reads register from MII PHY address mii_dump - To display data from MII PHY address Signed-off-by: Love Kumar --- Changes in v2: - Get MII

[PATCH] test/py: mdio: Add tests for mdio command

2023-12-19 Thread Love Kumar
Add below test cases for mdio commands: mdio_list - To list MDIO buses mdio_read - To read PHY's register at . mdio_write - To write PHY's register at . Signed-off-by: Love Kumar --- test/py/tests/test_mdio.py | 79 ++ 1 file changed, 79 insertions(+) create

[PATCH v2] test/py: mii: Add tests for mii command

2023-12-05 Thread Love Kumar
Add below test cases for mii commands: mii_info -To display MII PHY info mii_list - To list MII devices mii_set_device - To set MII device mii_read - To reads register from MII PHY address mii_dump - To display data from MII PHY address Signed-off-by: Love Kumar --- Changes in v2: - Get MII

[UBOOT PATCH v4] test/py: net: Add dhcp abort test

2023-11-21 Thread Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot prompt and validate the abort status. Signed-off-by: Love Kumar --- Changes in v2: - Mark CMD_MII command dependency Changes in v3: - Skip the test if PHY device not present Changes in v4: - Setup the network configuration

[PATCH v2] test/py: i2c: Add tests for i2c command

2023-11-21 Thread Love Kumar
Add below test cases for i2c commands: i2c_bus - To show i2c bus info, i2c_dev - To set or show the current bus, i2c_probe - To probe the i2c device, i2c_eeprom - To test i2c eeprom device, i2c_probe_all_buses - To list down all the buses and probes it Signed-off-by: Love Kumar --- Changes in v2

[PATCH] test/py: mii: Add tests for mii command

2023-11-21 Thread Love Kumar
Add below test cases for mii commands: mii_info -To display MII PHY info mii_list - To list MII devices mii_set_device - To set MII device mii_read - To reads register from MII PHY address mii_dump - To display data from MII PHY address Signed-off-by: Love Kumar --- test/py/tests/test_mii.py

[PATCH] test/py: i2c: Add tests for i2c command

2023-11-14 Thread Love Kumar
Add below test cases for i2c commands: i2c_bus - To show i2c bus info, i2c_dev - To set or show the current bus, i2c_probe - To probe the i2c device, i2c_eeprom - To test i2c eeprom device, i2c_probe_all_buses - To list down all the buses and probes it Signed-off-by: Love Kumar --- test/py

[UBOOT PATCH v3] test/py: net: Add dhcp abort test

2023-11-14 Thread Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot prompt and validate the abort status. Signed-off-by: Love Kumar --- Changes in v2: - Mark CMD_MII command dependency Changes in v3: - Skip the test if PHY device not present --- test/py/tests/test_net.py | 47

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

2023-11-07 Thread Love Kumar
Execute tftpput command for uploading files to a server and validate its size & CRC32. Signed-off-by: Love Kumar --- Changes in v2: - Add marking for cmd_tftpput config Chnages in v3: - Add filename to upload as part of env file --- test/py/tests/test_net.py

[UBOOT PATCH v2] test/py: net: Add dhcp abort test

2023-10-31 Thread Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot prompt and validate the abort status. Signed-off-by: Love Kumar --- Changes in v2: - Mark CMD_MII command dependency --- test/py/tests/test_net.py | 45 +++ 1 file changed, 45 insertions

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

2023-10-31 Thread Love Kumar
Execute tftpput command for uploading files to a server and validate its size & CRC32. Signed-off-by: Love Kumar --- Changes in v2: - Add marking for cmd_tftpput config --- test/py/tests/test_net.py | 72 +++ 1 file changed, 72 insertions(+) diff -

[PATCH] test/py: net: Add a test for 'pxe get' command

2023-10-03 Thread Love Kumar
Execute the 'pxe get' command to download a pxe configuration file from the TFTP server and validate its interpretation. Signed-off-by: Love Kumar --- test/py/tests/test_net.py | 66 +++ 1 file changed, 66 insertions(+) diff --git a/test/py/tests/test_net.py

[PATCH] test/py: net: Add dhcp abort test

2023-10-03 Thread Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot prompt and validate the abort status. Signed-off-by: Love Kumar --- test/py/tests/test_net.py | 44 +++ 1 file changed, 44 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py

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

2023-10-03 Thread Love Kumar
Execute tftpput command for uploading files to a server and validate its size & CRC32. Signed-off-by: Love Kumar --- test/py/tests/test_net.py | 69 +++ 1 file changed, 69 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py i

[PATCH v2] test/py: sleep: Add a test for the time command

2023-09-27 Thread Love Kumar
Execute "time ", and validate that it gives the approximately the correct amount of command execution time. Signed-off-by: Love Kumar --- Changes in v2: - Used @pytest.mark.buildconfigspec('') --- test/py/tests/test_sleep.py | 18 ++ 1 file changed, 18 insertions(+)

[PATCH] test/py: sleep: Add a test for the time command

2023-09-26 Thread Love Kumar
Execute "time ", and validate that it gives the approximately the correct amount of command execution time. Signed-off-by: Love Kumar --- test/py/tests/test_sleep.py | 20 1 file changed, 20 insertions(+) diff --git a/test/py/tests/test_sleep.py b/tes