u-boot-brain/test
Lukasz Majewski 8eb3752446 tests: py: dfu: Add functionality to set different u-boot's dfu env variable
By default (on almost all systems) the dfu env variable, which defines
available alt settings, is named as "dfu_alt_info".

However on some platforms (i.e. Odroid XU3), the 'dfu_alt_info' is concatenated
from other variables - namely 'dfu_alt_boot' and 'dfu_alt_system' at run time
(when one types 'dfu 0 mmc 0' for first time).

'dfu_alt_boot' describes alt settings which depend on boot medium - for example
boot loader's LBA sectors which are different on eMMC and SD card because of e.g.
MBR/GPT.

'dfu_alt_system' describes board agnostic alt settings - like rootfs, kernel.
On such system we can only append/modify this env variable.

Because of the above, we must have way to modify other than "dfu_ale_info"
variable to perform tests.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
---
Changes for v3:
- None

Changes for v2:
- Rewrite of "alt_info_env_name" variable description
- Use of get() method on python's dictionary to easily obtain default
  value
2016-04-25 17:56:30 +02:00
..
dm test/dm/core.c: Make pre-reloc test use pre-reloc struct 2016-04-14 11:51:39 -06:00
env test: env: Add a test of the new regex behavior for attrs 2015-05-21 09:16:18 -04:00
fs test/fs: error case fixes/enhancements 2016-01-13 21:05:21 -05:00
image image: Fix FIT and vboot tests to exit sandbox correctly 2016-02-26 08:53:10 -07:00
py tests: py: dfu: Add functionality to set different u-boot's dfu env variable 2016-04-25 17:56:30 +02:00
stdint test: Add a simple test to detected warnings with uint64_t, uintptr_t 2014-10-27 11:04:01 -04:00
trace trace: Improve the trace test number recognition 2016-02-26 08:53:10 -07:00
vboot image: Fix FIT and vboot tests to exit sandbox correctly 2016-02-26 08:53:10 -07:00
cmd_ut.c test: env: Add test framework for env 2015-05-21 09:16:18 -04:00
command_ut.c test/py: test the shell if command 2016-01-20 19:06:23 -07:00
common.sh test: Add a test for command repeat 2014-09-24 18:30:28 -04:00
compression.c Add support for LZ4 decompression algorithm 2015-10-11 17:12:10 -04:00
Kconfig test: env: Add test framework for env 2015-05-21 09:16:18 -04:00
Makefile test: dm: Move the time test over to the ut command 2015-05-21 09:16:17 -04:00
time_ut.c test: dm: Move the time test over to the ut command 2015-05-21 09:16:17 -04:00
ut.c test: Record and silence console in tests 2015-11-19 20:27:51 -07:00