04 Feb, 2018
2 commits
-
Add a test of the 'log format' and 'log rec' commands. This also covers
things like log_get_cat_by_name(), since they are used by these commands.
Fix a style nit in the tests also.Signed-off-by: Simon Glass
-
At present this just outputs the message. Update it to output whatever the
format requests.Signed-off-by: Simon Glass
29 Jan, 2018
1 commit
-
All of these host tools are apparently written for Python2,
not Python3.Use 'python2' in the shebang line according to PEP 394
(https://www.python.org/dev/peps/pep-0394/).Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
18 Dec, 2017
1 commit
-
After adding our small zynq uboot which has hush parser off same
variable tests start to failed. Use quotes only when hush is enabled.Reported-by: Michal Simek
Signed-off-by: Stephen Warren
13 Dec, 2017
2 commits
-
Some QEMUs have a problem with time setup that's why
sleep test is failing. Introduce env__sleep_accurate
boardenv variable to have an option to skip sleep test.Signed-off-by: Michal Simek
Reviewed-by: Tom Rini
Reviewed-by: Stephen Warren -
- avoid disturbing 0MiB partition size (in fact < 1MiB)
- test overlap limit between part1 and part2
- test gpt write with data with modifier 'M' for MiBSigned-off-by: Patrick Delaunay
Reviewed-by: Stephen Warren
08 Dec, 2017
1 commit
-
Add a test which tries out various filters and options to make sure that
logging works as expected.Signed-off-by: Simon Glass
06 Dec, 2017
1 commit
-
Patch queue for efi - 2017-12-05
Highlights for this release:
- Dynamic EFI object creation (lists instead of static arrays)
- EFI selftest improvements
- Minor fixes
03 Dec, 2017
1 commit
-
The u-boot.sym file is scanned to find unit test suites for execution. At
present it only finds those whose names start with 'dm' or 'env'. This
code is buried in the bowels of the test code so when adding a new suite
it is not easy to discover why it is ignored by the test framework.There seems to be no need to make this restriction. Drop it.
Signed-off-by: Simon Glass
Acked-by: Stephen Warren
01 Dec, 2017
3 commits
-
Check that helloworld.efi returns EFI_SUCCESS.
Reviewed-by: Simon Glass
Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf -
Make a comment line easier to read.
Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf -
Clear environment variable efi_selftest before executing the
default tests.Provide a test verifying that the EFI watchdog
reboots the system upon timeout.The test depends on CONFIG_CMD_EFI_SELFTEST=y.
Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf
17 Nov, 2017
1 commit
-
It can be useful to record how long tests take; this can help debug slow
running test systems or track changes in performance over time. Enhance
the test system to record timestamps while running test:
- Whenever a new log file section is started.
- After U-Boot is started and communication has been established.
- After each host or U-Boot command is executed.Signed-off-by: Stephen Warren
06 Nov, 2017
1 commit
-
test_gpt generates a persistent disk image which can be re-used across
multiple test runs. Currently, if the Python code that generates the disk
image change, the image is not regenerated, which could cause test
failures e.g. if a test was updated to expect some new partition name or
size, yet the persistent disk image contained the old name or size. This
change introduces functionality to regenerate the disk image if the
instructions to generate the image have changed.Signed-off-by: Stephen Warren
24 Oct, 2017
6 commits
-
Signed-off-by: Masahiro Yamada
Reviewed-by: Stephen Warren -
don't use prettyprint_part_size() in create_gpt_partitions_list()
that avoid to align offset and size to 1 MiB and increase precision for
start and size.
This patch avoid the risk to change partition size and lost data during
rename or swap.Signed-off-by: Patrick Delaunay
Acked-by: Stephen Warren
Tested-by: Stephen Warren -
Add test of first and last LBA in gpt for rename and swap.
Only the name is expected to change, so test 3 columns
for part command
1: first LBA (start)
2: last LBA (end)
3: partition nameAfter rename, the last LBA change and it is a error in current U-Boot code
+ "first" = 0x7ff : invalid value ( size increasing !Acked-by: Stephen Warren
Tested-by: Stephen Warren
Signed-off-by: Patrick Delaunay -
+ test write for one partition on all the device (size=0)
+ test write with disk uuid and 2 partitionsAcked-by: Stephen Warren
Tested-by: Stephen Warren
Signed-off-by: Patrick Delaunay -
add sandbox test for some gpt sub-command
- gpt read / part list : read the gpt partition created by sgdisk on host
test start, size, LBA and name output
- gpt verify : verify the gpt partition create by sgdisk on hostPS: persistent data test_gpt_disk_image.bin are udpated
Acked-by: Stephen Warren
Tested-by: Stephen Warren
Signed-off-by: Patrick Delaunay -
copy the persistent gpt binary file as it can be modified during the test
that avoid issue if the test fail: the test always restart with clean fileAcked-by: Stephen Warren
Tested-by: Stephen Warren
Signed-off-by: Patrick Delaunay
17 Oct, 2017
1 commit
-
On qemu errors like
assert 2.999650001525879 >= 3
occur.According to the comment in the code the test is meant to be
approximate. So we should accept some milliseconds less.Cc: Stephen Warren
Signed-off-by: Heinrich Schuchardt
Reviewed-by: Stephen Warren
01 Oct, 2017
1 commit
-
Patch queue for efi - 2017-10-01
Lots of new things this time. High level highlights are:
- Shim support (to boot Fedora)
- Initial set of unit tests
- Preparations to support UEFI Shell
30 Sep, 2017
4 commits
-
The current code wraps a pre tag inside an a tag. For some reason, this
causes at least Firefox to attempt to drag the pre section content when
using a mouse drag to select text. Re-order the tags so that the text can
be selected using the mouse, at least if you start the drag outside the
text (after the end of the line, for example).Signed-off-by: Stephen Warren
-
Some tests use external tools (executables) during their operation. Add
a test.py mark to indicate this. This allows those tests to be skipped if
the required tool is not present.Signed-off-by: Stephen Warren
-
When skipping tests, explicitly mention the board type or config option
that caused the skip. This will help people understand/fix any issues.Signed-off-by: Stephen Warren
-
Some tests rely on external tools. Mention these in the test/py README.
Signed-off-by: Stephen Warren
19 Sep, 2017
1 commit
-
A Python test script is provided that runs the EFI selftest
if CONFIG_CMD_EFI_SELFTEST=y.Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf
16 Sep, 2017
1 commit
-
Make various changes to the GPT test:
1) Reference the disk image using an absolute path in all cases. This
allows test/py to operate correctly if it's run from a directory other
than the root of the U-Boot source tree.2) Store the disk image in the teswt/py persistent data directory. This
removes the need to re-generate it every time the tests are run.3) Execute sgdisk using u_boot_utils.run_and_log() so that its output is
captured in the test log. This allows debugging any problems running it.4) Make the disk image a test fixture. This removes the requirement to
always run all GPT tests, and run them in order. The current code doesn't
create the disk image if e.g. just test_gpt_uuid() is executed via the
test.py -k command-line option.5) Use @pytest.mark.buildconfigspec for all feature dependencies, rather
than manually implementing some of them.6) Make all tests depend on sandbox, since they use the sandbox-specific
host command.Fixes: a2f422555fc8 ("add pytests for 'gpt guid' command in sandbox")
Fixes: c5772188ede9 ("add pytests for 'gpt rename' and 'gpt swap'")
Signed-off-by: Stephen Warren
Tested-by: Tom Rini
15 Sep, 2017
4 commits
-
run_command does not have a parameter wait_for_each.
Signed-off-by: Heinrich Schuchardt
-
Add unit tests for the 'gpt rename' and 'gpt swap' commands that
rely on the block device created by test/py/make_test_disk.py.
Add CONFIG_CMD_GPT_RENAME to the sandbox_defconfig. Remove the
testdisk.raw test device at the end of the tests.Signed-off-by: Alison Chaiken
Reviewed-by: Simon Glass -
Run unit tests for the 'gpt guid' command, making use of the block
device created by test/py/make_test_disk.py. Remove this device at
the end of the tests.Signed-off-by: Alison Chaiken
Reviewed-by: Simon Glass -
Provide a Python function that creates a small block device for the
purpose of testing the cmd/gpt.c or cmd/part.c functions in the u-boot
sandbox.Signed-off-by: Alison Chaiken
Reviewed-by: Simon Glass
14 Aug, 2017
1 commit
-
Move this test so that it will run when 'make tests' is used.
Signed-off-by: Simon Glass
23 Jul, 2017
1 commit
-
If one does not already have a rule to create a custom device node when
a given device enumerates it can be useful to have udev create a
bus path based node to the entry in /dev/bus/usb that was just
enumerated. Given that DFU itself does not require a /dev entry it is a
good idea to provide a rule that will generate one.Signed-off-by: Tom Rini
12 Jul, 2017
1 commit
-
Currently we have code which prints out platform data at the start of SPL.
Now that we have tests for dtoc this is probably not necessary. Drop it.
Update test_ofplatdata to check for empty output since it is useful to
check that sandbox_spl works as expected.Signed-off-by: Simon Glass
06 Jun, 2017
2 commits
-
Some tests depends on echo command to be present.
Reported-by: Stephen Warren
Signed-off-by: Michal Simek -
All tests in test_hush_if_test depends on hush parser to be
present. This patch simplify test dependencies by using global
pytestmark.Reported-by: Stephen Warren
Signed-off-by: Michal Simek
Acked-by: Stephen Warren
22 May, 2017
1 commit
-
There is missing dependency on echo command. Mark tests which requires
echo.Signed-off-by: Michal Simek
Reviewed-by: Stephen Warren
27 Nov, 2016
2 commits
-
We have all the building blocks now to run arbitrary efi applications
in travis. The most important one out there is grub2, so let's add
a simple test to verify that grub2 still comes up.Signed-off-by: Alexander Graf
-
Today we can compile a self-contained hello world efi test binary that
allows us to quickly verify whether the EFI loader framwork works.We can use that binary outside of the self-contained test case though,
by providing it to a to-be-tested system via tftp.This patch separates compilation of the helloworld.efi file from
including it in the u-boot binary for "bootefi hello". It also modifies
the efi_loader test case to enable travis to pick up the compiled file.
Because we're now no longer bloating the resulting u-boot binary, we
can enable compilation always, giving us good travis test coverage.Signed-off-by: Alexander Graf
Reviewed-by: Tom Rini