- Oct 14, 2016
-
-
Tom Rini authored
We can only run this command if the sleep command is enabled and that depends on CONFIG_CMD_MISC Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Oct 13, 2016
-
-
Guillaume GARDET authored
Add a NFS download test, based on TFTP test. Tested on i.MX6 SabreLite board. Signed-off-by:
Guillaume GARDET <guillaume.gardet@free.fr> Cc: Tom Rini <trini@konsulko.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Simon Glass <sjg@chromium.org> Reviewed-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
- Sep 22, 2016
-
-
Tom Rini authored
Make sure that when we're telling bootm to boot an image, and we expect the image to boot we get the output from sandbox that we attempted to run Linux and that U-Boot completed its job. Cc: Simon Glass <sjg@chromium.org> Cc: Stephen Warren <swarren@nvidia.com> Signed-off-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Stephen Warren <swarren@nvidia.com>
-
- Aug 20, 2016
-
-
Stephen Warren authored
This prevents capture of command output from terminating early on boards that use a simple prompt (e.g. "=> ") that appears in the middle of command output (e.g. crc32's "... ==> 2fa737e0"). Reported-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Stephen Warren <swarren@wwwdotorg.org> Tested-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Heiko Schocher <hs@denx.de>
-
- Aug 06, 2016
-
-
Simon Glass authored
Return one string for each command that was executed. This seems cleaner. Suggested-by:
Teddy Reed <teddy.reed@gmail.com> Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Stephen Warren <swarren@nvidia.com>
-
Simon Glass authored
Add a proper function for this rather than using internal functions. Use it in the single call site. Also, do a restart at the end of the vboot test to reset to the normal device tree. Signed-off-by:
Simon Glass <sjg@chromium.org> Suggested-by:
Stephen Warren <swarren@nvidia.com>
-
Simon Glass authored
Use 'cons.log.section' feature to split up the test output. This makes it easier to read. Suggested-by:
Stephen Warren <swarren@nvidia.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Rename this argument and pass it to each function that needs it, instead of making it global. Suggested-by:
Stephen Warren <swarren@nvidia.com> Suggested-by:
Teddy Reed <teddy.reed@gmail.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Instead of this, use the existing run_and_log() function, enhanced to support a command string as well as a list of arguments. Suggested-by:
Stephen Warren <swarren@nvidia.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Fix some typos in various files introduced with the vboot test conversion. Reported-by:
Teddy Reed <teddy.reed@gmail.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This check was missed. Add it and make the message more verbose. Signed-off-by:
Simon Glass <sjg@chromium.org> Reported-by:
Tom Rini <trini@konsulko.com> Fixes: 9e17b034 (test/py: Provide a way to check that a command fails)
-
Simon Glass authored
Fix review comments that were missed at the time. Also explain why we need to regenerate the device tree for each test. Reported-by:
Teddy Reed <teddy.reed@gmail.com> Suggested-by:
Stephen Warren <swarren@nvidia.com> Signed-off-by:
Simon Glass <sjg@chromium.org> Fixes: f6349c3c (test: Add a README)
-
- Jul 22, 2016
-
-
Michal Simek authored
Getting this error: Zynq> sb load hostfs - 100 /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit Unknown command 'sb' - try 'help' because sb command is present only for Sandbox obj-$(CONFIG_SANDBOX) += host.o that's why mark this test to be run only at Sandbox Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Stephen Warren authored
Without this, the test fails if the test is run with a cwd other than the root of the U-Boot source tree. Fixes: 8729d582 ("test: Convert the vboot test to test/py") Signed-off-by:
Stephen Warren <swarren@nvidia.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Jul 17, 2016
-
-
Simon Glass authored
This should be spl_of_platdata, since otherwise it will try to run on boards that don't support of-platdata. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 15, 2016
-
-
Simon Glass authored
Add a simple test which checks that the of-platdata system is working correctly. The sequence is as follows: - SPL starts up and probes all the UCLASS_MISC drivers - There are 3 of these in sandbox.dts - Therefore there should be 3 U_BOOT_DEVICE() declarations in dt-platdata.c - These should produce 3 sandbox_spl_test devices - Each device prints out its platform data when probed - This test checks for this output and compares it against expectations Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When sandbox SPL is enabled we want to start that rather than U-Boot proper, since some tests may rely on running it first. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some tests want to check the console output from SPL or U-Boot proper. Provide a means to do this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present the SPL and U-Boot consoles both present the same error message when the expected console output does not appear. Add "SPL" to the SPL error message to resolve this ambiguity. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board can sometimes be used for tests. Handle it the same way as sandbox. Note: I plan to drop the sandbox_spl board at some point and merge its features into sandbox. So this commit may not be necessary. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 14, 2016
-
-
Simon Glass authored
Now that we have a suitable test framework we should move all tests into it. The vboot test is a suitable candidate. Rewrite it in Python and move the data files into an appropriate directory. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some tests want to execute a sequence of commands. Add a helper for this. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Teddy Reed <teddy.reed@gmail.com>
-
Simon Glass authored
Sometimes we want to run a command and check that it fails. Add a function to handle this. It can check the return code and also make sure that the output contains a given error message. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It is sometimes inconvenient to convert a string into a list for execution with run_and_log(). Provide a helper function to do this. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Teddy Reed <teddy.reed@gmail.com>
-
Simon Glass authored
It is useful to be able to obtain the output from a command. Return it from this function. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Teddy Reed <teddy.reed@gmail.com>
-
Simon Glass authored
Tests may want to look at the output from running a command, even if it fails (e.g. with a non-zero return code). Provide a means to obtain this. Another approach would be to return a class object containing both the output and the exception, but I'm not sure if that would result in a lot of refactoring. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Teddy Reed <teddy.reed@gmail.com>
-
Simon Glass authored
Tests may want to look at the output from running a command. Return it so that this is possible. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Teddy Reed <teddy.reed@gmail.com>
-
Simon Glass authored
Normally tests will run with the test.dtb file designed for this purpose. However, the verified boot tests need to run with their own device-tree file, containing a public key. Make the device-tree file a config option so that it can be adjusted by tests. The default is to keep the current behaviour. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Teddy Reed <teddy.reed@gmail.com>
-
- Jul 08, 2016
-
-
Daniel Schwierzeck authored
Some archs like MIPS or PPC have a different 'bdinfo' output than ARM regarding the memory configuration. Also support 'memstart = 0x*' in u_boot_utils.find_ram_base() to make all tests requiring the RAM base working on those archs. Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Acked-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
Prior to this patch, any VT100 codes emitted by U-Boot are considered part of a command's output, which often causes tests to fail. For example, test_env_echo_exists executes printenv, and then considers any text on a line before an = sign as a valid U-Boot environment variable name. This includes any VT100 codes emitted. When the test later attempts to use that variable, the name would be invalid since it includes the VT100 codes. Solve this by stripping VT100 codes from the match buffer, so they are never seen by higher level test code. The codes are still logged unmodified, so that users can expect U-Boot's exact output without interference. This does clutter the log file a bit. However, it allows users to see exactly what U-Boot emitted rather than a modified version, which hopefully is better for debugging. It's also much simpler to implement, since logging happens as soon as text is received, and so stripping the VT100 codes from the log would require handling reception and stripping of partial VT100 codes. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
Some CONFIG_ variables were recently renamed, but test/py wasn't updated to match. This causes some tests to be skipped. Fix test/py so the tests are run. Fixes: 11636258 ("Rename reset to sysreset") Fixes: f1f9d4fa ("hush: complete renaming CONFIG_SYS_HUSH_PARSER to CONFIG_HUSH_PARSER") Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
- Jun 19, 2016
-
-
Stephen Warren authored
CONFIG_VERSION_VARIABLE isn't always defined, so we can't simply look up its value directly, or an exception will occur if it isn't defined. Instead, we must use .get() to supply a default value if the variable isn't defined. Fixes: da37f006 ("tests: py: disable main_signon check for printenv cmd") Acked-by:
Heiko Schocher <hs@denx.de> Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
- Jun 09, 2016
-
-
Heiko Schocher authored
if CONFIG_VERSION_VARIABLE is set, the U-Boot environment contains a "vers" variable with the current U-Boot version string. If now "printenv" is called, test/py fails as it detects the main_sign string, which is in this case correct. So check only the main_sign as an error, if CONFIG_VERSION_VARIABLE is not set. Signed-off-by:
Heiko Schocher <hs@denx.de>
-
- May 27, 2016
-
-
Michal Simek authored
Large file transfers, flash erasing and more complicated tests requires more time to finish. Provide a way to setup specific timeout directly in test. For example description for 50s test: timeout = 50000 with u_boot_console.temporary_timeout(timeout): u_boot_console.run_command(...) Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Stephen Warren <swarren@nvidia.com>
-
Heiko Schocher authored
test/py raises an error, if a board has not enabled bdi command > pytest.skip('bdinfo command not supported') E NameError: global name 'pytest' is not defined import pytest in test/py/u_boot_utils.py fixes this. Signed-off-by:
Heiko Schocher <hs@denx.de> Reviewed-by:
Stephen Warren <swarren@nvidia.com>
-
- May 13, 2016
-
-
Heiko Schocher authored
test/py raises an error, if a board has not enabled bdi command > pytest.skip('bdinfo command not supported') E NameError: global name 'pytest' is not defined import pytest in test/py/u_boot_utils.py fixes this. Signed-off-by:
Heiko Schocher <hs@denx.de> Reviewed-by:
Stephen Warren <swarren@nvidia.com>
-
- May 06, 2016
-
-
Stephen Warren authored
It can take a while for a host machine to notice that a USB device has disconnected, and process the change. At the end of the DFU test, we wait up to 10 seconds for this to happen. This change makes the test wait the same (up to) 10 seconds at the start of the test for any previously active USB device-mode session to be cleaned up. Such as session might have been used to download U-Boot into memory for example; this is certainly true on my Tegra test systems. This changes should solve the DFU test intermittency issues I've been seeing on some Tegra devices. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
- Apr 25, 2016
-
-
Łukasz Majewski authored
After concatenation of "dfu_alt_info" variable from "dfu_alt_boot" and "dfu_alt_system" it may happen that test and dummy files alt settings are different than default 0 and 1. This patch provides the ability to set different values for them. Signed-off-by:
Lukasz Majewski <l.majewski@samsung.com> Acked-by:
Stephen Warren <swarren@nvidia.com> --- Changes for v3: - replace variables declarations with ones read from configuration file - remove not necessary str() conversion at DFU host command generation Changes for v2: - generate "alt_info" automatically - use file names as alt settings instead of numerical values - extend in-code documentation
-
Łukasz Majewski authored
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
-
Łukasz Majewski authored
This patch replaces hardcoded (i.e. 0 and 1) values passed to dfu_{read|write} with variables. Signed-off-by:
Lukasz Majewski <l.majewski@samsung.com> Acked-by:
Stephen Warren <swarren@nvidia.com> --- Changes for v3: - Replace per module global variables with ones defined inside a function Changes for v2: - None
-