24 Oct, 2016
1 commit
-
In pytest 3, runtestprotocol() may not call pytest_runtest_setup() if
the test is skipped. That call is required to create a section for the
test in the log file. If this is skipped, the call to log.end_section()
at the tail of pytest_runtest_protocol() will throw an exception. This
patch ensures that a log section always exists, both to avoid the
exception and to ensure that a consistently structured log file is
always created.Cc: Stefan Brüns
Reported-by: Stefan Brüns
Signed-off-by: Stephen Warren
Tested-by: Tom Rini
15 Oct, 2016
1 commit
-
We can only run this command if the sleep command is enabled and that
depends on CONFIG_CMD_MISCSigned-off-by: Tom Rini
14 Oct, 2016
3 commits
-
These have now landed upstream. The naming is different and in one case the
function signature has changed. Update the code to match.This applies the following upstream commits by
Thierry Reding :604e61e fdt: Add functions to retrieve strings
8702bd1 fdt: Add a function to get the index of a string
2218387 fdt: Add a function to count stringsSigned-off-by: Simon Glass
-
Add a NFS download test, based on TFTP test.
Tested on i.MX6 SabreLite board.Signed-off-by: Guillaume GARDET
Cc: Tom Rini
Cc: Joe Hershberger
Cc: Stephen Warren
Cc: Simon Glass
Reviewed-by: Stephen Warren
Acked-by: Joe Hershberger
23 Sep, 2016
6 commits
-
Thanks to Stefan Brüns we have more tests and a few more passes too,
update the expected output now.Cc: Stefan Brüns
Signed-off-by: Tom Rini -
/ and /./ should reference the same file.
Signed-off-by: Stefan Brüns
-
This is a regression test for a crash happening if the first dirent
in the block matches. Code tried to access a predecessor entry which
does not exist.
The crash happened for any block, but "." is always the first entry in
the first directory block and thus easy to check for.Signed-off-by: Stefan Brüns
-
ext4 and fat code emit some diagnostic messages during command execution.
These additional lines force a match window size which strictly is not
necessary.Signed-off-by: Stefan Brüns
-
The write file is created from $SMALL_FILE by appending ".w" on all
other occurences in the code.Signed-off-by: Stefan Brüns
-
Instead of providing the full path, specify directory and filename
separately. This allows to specify intermediate directories, required
for some additional tests.Signed-off-by: Stefan Brüns
22 Sep, 2016
1 commit
-
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
Cc: Stephen Warren
Signed-off-by: Tom Rini
Reviewed-by: Simon Glass
Acked-by: Stephen Warren
23 Aug, 2016
1 commit
-
The fs-test.sh script expected there to be a \n\r style newline at the
end of the output. This is no longer the case, so use 'tr' to remove the
\r that we get.Fixes: (c5917b4b054d "dm: serial-uclass: Move a carriage return before a
line feed")
Signed-off-by: Tom Rini
21 Aug, 2016
1 commit
-
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
Signed-off-by: Stephen Warren
Tested-by: Tom Rini
Reviewed-by: Heiko Schocher
20 Aug, 2016
1 commit
-
This adds a bunch of unit tests for the "fdt apply" command.
They've all been run successfully in the sandbox. However, as you still
require an out-of-tree dtc with overlay support, this is disabled by
default.Acked-by: Simon Glass
Acked-by: Pantelis Antoniou
Signed-off-by: Maxime Ripard
06 Aug, 2016
8 commits
-
Return one string for each command that was executed. This seems cleaner.
Suggested-by: Teddy Reed
Signed-off-by: Simon Glass
Reviewed-by: Stephen Warren -
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
Suggested-by: Stephen Warren -
Use 'cons.log.section' feature to split up the test output. This makes it
easier to read.Suggested-by: Stephen Warren
Signed-off-by: Simon Glass
-
Rename this argument and pass it to each function that needs it, instead of
making it global.Suggested-by: Stephen Warren
Suggested-by: Teddy ReedSigned-off-by: Simon Glass
-
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
Signed-off-by: Simon Glass
-
Fix some typos in various files introduced with the vboot test conversion.
Reported-by: Teddy Reed
Signed-off-by: Simon Glass
-
This check was missed. Add it and make the message more verbose.
Signed-off-by: Simon Glass
Reported-by: Tom Rini
Fixes: 9e17b034 (test/py: Provide a way to check that a command fails) -
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
Suggested-by: Stephen Warren
Signed-off-by: Simon Glass
Fixes: f6349c3c (test: Add a README)
28 Jul, 2016
3 commits
-
Many SoCs allow power to be applied to or removed from portions of the SoC
(power domains). This may be used to save power. This API provides the
means to control such power management hardware.Signed-off-by: Stephen Warren
Acked-by: Simon Glass -
Quite a few places have a bind() method which just calls dm_scan_fdt_dev().
We may as well call dm_scan_fdt_dev() directly. Update the code to do this.Signed-off-by: Simon Glass
-
This new function is more convenient for callers, and handles pre-relocation
situations automatically.Signed-off-by: Simon Glass
23 Jul, 2016
2 commits
-
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.othat's why mark this test to be run only at Sandbox
Signed-off-by: Michal Simek
Acked-by: Simon Glass -
Without this, the test fails if the test is run with a cwd other than the
root of the U-Boot source tree.Fixes: 8729d582595d ("test: Convert the vboot test to test/py")
Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
17 Jul, 2016
1 commit
-
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
15 Jul, 2016
11 commits
-
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 expectationsSigned-off-by: Simon Glass
-
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
-
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
-
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
-
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
-
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
-
Some tests want to execute a sequence of commands. Add a helper for this.
Signed-off-by: Simon Glass
Reviewed-by: Teddy Reed -
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
-
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
Reviewed-by: Teddy Reed -
It is useful to be able to obtain the output from a command. Return it from
this function.Signed-off-by: Simon Glass
Reviewed-by: Teddy Reed