u-boot/test/py/tests
Stephen Warren 56382a81f3 test/py: make net test aware of USB and PCI enumeration
The existing net test executes a list of commands supplied by boardenv
variable env__net_pre_commands. The idea was that boardenv would know
whether the Ethernet device was attached to USB, PCI, ... and hence was
the best place to put any commands required to probe the device.

However, this approach doesn't scale well when attempting to use a single
boardenv across multiple branches of U-Boot, some of which require "pci
enum" to enumerate PCI and others of which don't, or don't /yet/ simply
because various upstream changes haven't been merged down.

This patch updates the test to require that the boardenv state which HW
features are required for Ethernet to work, and lets the test itself map
that knowledge to the set of commands to execute. Since this mapping is
part of the test script, which is part of the U-Boot code/branch, this
approach is more scalable. It also feels cleaner, since again boardenv
is only providing data, rather than test logic.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-01-28 21:01:23 -07:00
..
test_000_version.py test/py: Implement pytest infrastructure 2016-01-20 19:06:23 -07:00
test_dfu.py test/py: dfu: error out if USB device already exists 2016-01-28 21:01:23 -07:00
test_env.py test/py: move U-Boot respawn trigger to the test core 2016-01-28 21:01:22 -07:00
test_help.py test/py: Implement pytest infrastructure 2016-01-20 19:06:23 -07:00
test_hush_if_test.py test/py: test the shell if command 2016-01-20 19:06:23 -07:00
test_md.py test/py: move find_ram_base() into u_boot_utils 2016-01-28 21:01:23 -07:00
test_net.py test/py: make net test aware of USB and PCI enumeration 2016-01-28 21:01:23 -07:00
test_sandbox_exit.py test/py: move U-Boot respawn trigger to the test core 2016-01-28 21:01:22 -07:00
test_shell_basics.py test/py: add test of basic shell functionality 2016-01-20 19:06:23 -07:00
test_sleep.py test/py: move U-Boot respawn trigger to the test core 2016-01-28 21:01:22 -07:00
test_ums.py test/py: ums: add filesystem-based testing 2016-01-28 21:01:23 -07:00
test_unknown_cmd.py test/py: Implement pytest infrastructure 2016-01-20 19:06:23 -07:00