| f5d196d0 | 22-Jan-2016 |
Stephen Warren <swarren@nvidia.com> |
test/py: add DFU test
Add a test of DFU functionality to the Python test suite. The test starts DFU in U-Boot, waits for USB device enumeration on the host, executes dfu-util multiple times to test
test/py: add DFU test
Add a test of DFU functionality to the Python test suite. The test starts DFU in U-Boot, waits for USB device enumeration on the host, executes dfu-util multiple times to test various transfer sizes, many of which trigger USB driver edge cases, and finally aborts the DFU command in U-Boot.
This test mirrors the functionality previously available via the shell scripts in test/dfu, and hence those are removed too.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| d054f4c2 | 22-Jan-2016 |
Stephen Warren <swarren@nvidia.com> |
test/py: ums: add filesystem-based testing
Enhance the UMS test to optionally mount a partition and read/write a file to it, validating that the content written and read back are identical.
This en
test/py: ums: add filesystem-based testing
Enhance the UMS test to optionally mount a partition and read/write a file to it, validating that the content written and read back are identical.
This enhancement is backwards-compatible; old boardenv contents that don't define the new configuration data will cause the test code to perform as before.
test/ums/ is deleted since the Python test now performs the same testing that it did.
The code is also re-written to make use of the recently added utility module, and split it up into nested functions so the overall logic of the test process can be followed more easily without the details cluttering the code.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 1c8b4d5f | 15-Jan-2016 |
Stephen Warren <swarren@nvidia.com> |
test/py: add a test for the sleep command
Execute "sleep", and validate that it sleeps for approximately the correct amount of time.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Sim
test/py: add a test for the sleep command
Execute "sleep", and validate that it sleeps for approximately the correct amount of time.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 3045d7f0 | 15-Jan-2016 |
Stephen Warren <swarren@nvidia.com> |
test/py: test the ums command
This test invokes the "ums" command in U-Boot, and validates that a USB storage device is enumerated on the test host system, and can be read from.
Signed-off-by: Step
test/py: test the ums command
This test invokes the "ums" command in U-Boot, and validates that a USB storage device is enumerated on the test host system, and can be read from.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| cc156f3f | 15-Jan-2016 |
Stephen Warren <swarren@nvidia.com> |
test/py: test the shell if command
Migrate all most tests from command_ut.c into the Python test system. This allows the tests to be run against any U-Boot binary that supports the if command (i.e.
test/py: test the shell if command
Migrate all most tests from command_ut.c into the Python test system. This allows the tests to be run against any U-Boot binary that supports the if command (i.e. where hush is enabled) without requiring that binary to be permanently bloated with the code from command_ut.
Some tests in command_ut.c can only be executed from C code, since they test internal (more unit-level) features of various U-Boot APIs. The migrated tests can all operate directly from the U-Boot console.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 8b86c609 | 15-Jan-2016 |
Stephen Warren <swarren@nvidia.com> |
test/py: add test of basic shell functionality
This tests whether the following features of the U-Boot shell: - Execution of a directly entered command. - Compound commands (; delimiter). - Quoting
test/py: add test of basic shell functionality
This tests whether the following features of the U-Boot shell: - Execution of a directly entered command. - Compound commands (; delimiter). - Quoting of arguments containing spaces. - Executing commands from environment variables.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 98cee89b | 15-Jan-2016 |
Stephen Warren <swarren@wwwdotorg.org> |
test/py: test the md/mw commands
This tests whether md/mw work, and affect each-other.
Command repeat is also tested.
test/cmd_repeat.sh is removed, since the new Python-based test does everything
test/py: test the md/mw commands
This tests whether md/mw work, and affect each-other.
Command repeat is also tested.
test/cmd_repeat.sh is removed, since the new Python-based test does everything it used to.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 5ab097ab | 15-Jan-2016 |
Stephen Warren <swarren@wwwdotorg.org> |
test/py: add test of setenv/printenv/echo
This tests basic environment variable functionality.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Stephen Warren <swarren@nvidia.co
test/py: add test of setenv/printenv/echo
This tests basic environment variable functionality.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 472040d5 | 15-Jan-2016 |
Stephen Warren <swarren@wwwdotorg.org> |
test/py: test that sandbox exits when asked
Test the sandbox port's implementation of the reset command and SIGHUP handling. These should both cause the U-Boot process to exit gracefully.
Signed-of
test/py: test that sandbox exits when asked
Test the sandbox port's implementation of the reset command and SIGHUP handling. These should both cause the U-Boot process to exit gracefully.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|