09 Apr, 2020
1 commit
-
Add a test for the dm drivers command. Also fix a null pointer dereference
revealed by said test.Signed-off-by: Sean Anderson
Reviewed-by: Bin Meng
Tested-by: Bin Meng
Reviewed-by: Simon Glass
01 Apr, 2020
7 commits
-
We don't need 5KB to test things out. A smaller size makes it easier to
look at the FIT with fdtdump.Signed-off-by: Simon Glass
-
This code is repeated so move it into a function with a parameter.
Signed-off-by: Simon Glass
-
Fix various minor things noticed by pylint.
Signed-off-by: Simon Glass
-
Fix some long lines and comments. Use a distinct name for the
'required key' test.Signed-off-by: Simon Glass
-
This test is actually made up of five separate tests. Split them out so
that they appear as separate tests.Unfortunately this restarts U-Boot multiple times which adds about a
second to the already-long vboot test, about 8 seconds total on my
machine. We could add a special 'teardown' test afterwards but if the
tests are executed out of order that would not work.Changing test_vboot into a class causes it not to be discovered and makes
it different from all other tests.Signed-off-by: Simon Glass
-
Add a check to make sure that it is not possible to add a new
configuration and use the hashed nodes and hash of another configuration.Signed-off-by: Simon Glass
-
This tool only uses the last -k parameter provided. Drop the earlier one
since it has no effect.Signed-off-by: Simon Glass
31 Mar, 2020
1 commit
-
With CONFIG_OF_CONTROL environment variable $fdtcontroladdr is not defined
and test_efi_grub_net() fails.Signed-off-by: Heinrich Schuchardt
28 Mar, 2020
2 commits
-
With CONFIG_OF_CONTROL environment variable $fdtcontroladdr is not defined
and test_efi_helloworld_net() fails.Signed-off-by: Heinrich Schuchardt
-
Commit 41e30dcf8796 ("cmd: mmc: Make Mode: printout consistent") fixed
the layout of `mmc info` output. Reflect this change in the respective
testcase.Also fix a typo in the documentation.
Fixes: 41e30dcf8796 ("cmd: mmc: Make Mode: printout consistent")
Signed-off-by: Harald Seiler
Acked-by: Stephen Warren
Reviewed-by: Simon Glass
13 Mar, 2020
1 commit
-
4dbc107f4683 ("cmd: gpio: Correct do_gpio() return value") correctly
changed the behaviour of the gpio command to return CMD_RET_SUCCESS or
CMD_RET_FAILURE, but any existing script which expects the return value
to be the pin value is broken by this change.Reinstate the legacy behaviour for `gpio input` only.
Fixes: 4dbc107f4683 ("cmd: gpio: Correct do_gpio() return value")
Signed-off-by: Alex Kiernan
Signed-off-by: Alex Kiernan
Reviewed-by: Simon Glass
05 Feb, 2020
2 commits
-
Fix pylint warnings:
* add missing module and function documentation
* correct indentationSigned-off-by: Heinrich Schuchardt
-
Fix warnings issued by pylint:
* naming of variables
* usage of commas and semicolons
* indentation
* placement of module descriptionSigned-off-by: Heinrich Schuchardt
04 Feb, 2020
2 commits
-
Unit test for 'abootimg' command. Right now it covers dtb/dtbo
functionality in Android Boot Image v2, which was added recently.Running test:
$ ./test/py/test.py --bd sandbox --build -k test_abootimg
shows that 1/1 tests passes successfully.
Signed-off-by: Sam Protsenko
Signed-off-by: Lokesh Vutla -
Convert Android documentation from regular txt format to Sphinx (RST).
Also add Android index.rst file and reference it in root index.rst, so
that Android documentation is visible.Test:
$ make htmldocs
$ xdg-open doc/output/index.htmlSigned-off-by: Sam Protsenko
Signed-off-by: Lokesh Vutla
16 Jan, 2020
2 commits
-
Xilinx/FPGA changes for v2020.04
ARM64:
- Add INIT_SPL_RELATIVE dependencySPL:
- FIT image fix
- Enable customization of bl2_plat_get_bl31_params()Pytest:
- Add test for octal/hex conversionsMicroblaze:
- Fix manual relocation for one SPI instanceNand:
- Convert zynq/zynqmp drivers to DMXilinx:
- Enable boot script location via Kconfig
- Support OF_SEPARATE in board FDT selection
- Remove low level uart setup it is done later by code
- Add support for DEVICE_TREE variable passing for SPLZynq:
- Enable jtag boot mode via distro boot
- Removing unused baseaddresses from hardware.h
- DT fixupsZynqMP:
- Fix emmc boot sequence
- Simplify spl logic around bss and board_init_r()
- Support psu_post_config_data() calling
- Tune mini-nand DTS
- Fix psu wiring for a2197 boards
- Add runtime MMC device boot order filling in spl
- Clear ATF handoff handling with custom bl2_plat_get_bl31_params()
- Add support u-boot.its generation
- Use single image configuration for all platforms
- Enable PANIC_HANG via Kconfig
- DT fixups
- Firmware fixes
- Add support for zcu208 and zcu1285Versal:
- Fix emmc boot sequence
- Enable board_late_init() by default -
The device tree compiler expects that a node with a unit-address has a reg
property.Signed-off-by: Heinrich Schuchardt
Reviewed-by: Simon Glass
14 Jan, 2020
1 commit
-
Extend test suite to cover also automatic octal/hex converstions which
haven't been implemented in past.Signed-off-by: Michal Simek
Acked-by: Stephen Warren
Reviewed-by: Simon Goldschmidt
08 Jan, 2020
3 commits
-
This test verifies the implementation of the 'bootm' extension that
handles UEFI binaries inside FIT images (enabled via CONFIG_BOOTM_EFI).Signed-off-by: Cristian Ciocaltea
Reviewed-by: Heinrich Schuchardt -
Describe the components of environment variable
env__efi_loader_helloworld_file.Signed-off-by: Heinrich Schuchardt
-
Consider the following test sample:
@pytest.mark.buildconfigspec('fit')
@pytest.mark.notbuildconfigspec('generate_acpi_table')
def test_sample(u_boot_console):Whatever the argument of the 'notbuildconfigspec' is,
the test ends up being skipped with the message:('/uboot/test/py/conftest.py', 463,
'Skipped: .config feature "fit" enabled')Signed-off-by: Cristian Ciocaltea
Signed-off-by: Heinrich Schuchardt
07 Jan, 2020
1 commit
-
Bring in the following merges:
commit 8fbbec12f7d2c18f8883f3371cfca74a98b5dd87
Merge: 87f69f467a83 63618e71e89b
Author: Tom Rini
Date: Fri Jan 3 09:48:47 2020 -0500Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq into next
- updates and fixes on ls1028a, lx2, ls1046a, MC-DPSPARSER support
commit 87f69f467a8335b171c71bf217d2625d515acd7c
Merge: c0912f9bbfb2 4466b9970319
Author: Tom Rini
Date: Tue Dec 24 08:18:19 2019 -0500Merge https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xx into next
- Enable DM driver on ppc/km boards
- Enable DM_USB for some of NXP powerpc platforms: P5040, T4240, T208x,
T104x, P4080, P2041, P2020, P1020, P3041
- Some updates in mpc85xx-ddr driver, km boardscommit c0912f9bbfb26dd03d189953678691b799d35b6e
Merge: 533c9f5714bd a1d6dc3f8407
Author: Tom Rini
Date: Wed Dec 18 07:20:19 2019 -0500Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-x86 into next
- Various x86 common codes updated for TPL/SPL
- I2C designware driver updated for PCI
- ICH SPI driver updated to support Apollo Lake
- Add Intel FSP2 base support
- Intel Apollo Lake platform specific drivers support
- Add a new board Google Chromebook Coralcommit 533c9f5714bdba79dc6f2629284d4c1a08a611d1
Merge: 553cb0688782 033e18b47bd0
Author: Tom Rini
Date: Tue Dec 17 07:53:08 2019 -0500Merge tag '20191217-for-next' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c into next
i2c: for next
- misc: i2c_eeprom:
Add partition support and add ability to query size
of eeprom device and partitions
- i2c common:
add support for offset overflow in to address and add
sandbox tests for it.commit 553cb06887825314e74a9bdac337467c77d1db88
Merge: f39abbbc531e b4f98b3b16ec
Author: Tom Rini
Date: Thu Dec 12 08:18:59 2019 -0500Merge tag 'dm-next-13dec19' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm into next
buildman improvements including toolchain environment feature
sandbox unicode support in serial
02 Jan, 2020
2 commits
-
This test currently does not run because it specifies the sandbox board
instead of sandbox_spl. Fix it.Signed-off-by: Simon Glass
-
get_env() was originally written to strip() the output of printenv to
isolate the test from any whitespace changes in printenv's output.
However, this throws away any whitespace in the variable value, which can
cause issues when test code expects to see that whitespace. In fact,
printenv never adds any whitespace at all, so there's no need to strip.The strip causes a practical problem for test_env_echo_exists() if
state_test_env.get_existent_var() happens to choose a U-Boot variable that
contains trailing whitespace. This is true for variable boot_targets.With Python 2, get_existent_var() never returned boot_targets so this
issue never caused a practical problem.With Python 3, get_existent_var does sometimes return boot_targets, no
doubt due to Python 3's different dict hash key order implementation,
about 0.5-2% of the time, so this test appears intermittent. With the
strip removed, this intermittency is solved, since the test passes for all
possible U-Boot variables.Signed-off-by: Stephen Warren
10 Dec, 2019
1 commit
-
Buildman doesn't store this file in the same directory as a normal build.
Update the conftest code to handle both cases.Change-Id: I1fd0e56054d7dc77394a7589336aa0991bd0133d
Signed-off-by: Simon Glass
05 Dec, 2019
1 commit
-
# This is actually a resent patch of
# [1] https://lists.denx.de/pipermail/u-boot/2019-May/369170.htmlTwo test cases are added under test_fs_ext:
test case 10: for root directory
test case 11: for non-root directoryThose will verify a behavior fixed by the commits related to
root directory
("fs: fat: allocate a new cluster for root directory of fat32" and
"fs: fat: flush a directory cluster properly"), and focus on
handling long-file-name directory entries under a directory.Signed-off-by: AKASHI Takahiro
31 Oct, 2019
10 commits
-
We have two further uses of raw string usage in the test/py codebase
that are used under CI. The first of which is under the bind test and
is a direct update. The second of which is to strip VT100 codes from
the match buffer. While switching this to a raw string is also a direct
update, the comment it notes that problems were encountered on Ubuntu
14.04 (and whatever Python 2 version that was) that required slight
tweaks to the regex. Replace that now that we're saying Python 3.5 is
the minimum.Reviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini -
To be more closely aligned with Python community best practices, we need
to better document our usage of pip and make use of a requirements.txt
file that shows the versions of the tools that we are using. This will
aide in ensuring reproducibility of our tests as well.Reviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini -
Now that we have moved to being based on pytest for python3 we need to
make our test.py wrapper more robust in terms of only calling python3
rather than possibly finding and using python2. To do this, change from
execvp()'ing pytest to invoking the package itself via python. In the
event that pytest is unavailable we still get a user-friendly error:pkg_resources.DistributionNotFound: The 'pytest' distribution was not found and is required by the application
Reviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini -
The check_output function from the subprocess Python module by default
returns data as encoded bytes and leaves decoding to the application.
Given our uses of the call, it makes the most sense to immediately
decode the results.Reviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini -
- In python 3 you must use raw strings for regex as other forms are
deprecated and would require further changes to the pattern here.
In one case this lets us have a simpler match pattern.
- As strings are now Unicode our complex tests (Euro symbol,
SHIFT+ALT+FN 5) we need to declare that as a bytes string and then
decode it for use.Cc: Heinrich Schuchardt
Reviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini -
In the case of some unit tests we are working with providing a fake
flash device that we have written some text strings in to. In this case
we want to tell Python to encode things to bytes for us.Reviewed-by: Stephen Warren
Reviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini -
- Modern pytest is more visible in telling us about parameters that we
had not described, so describe a few more.
- ConfigParser.readfp(...) is now configparser.read_file(...)
- As part of the "strings vs bytes" conversions in Python 3, we use the
default encoding/decoding of utf-8 but in some places tell Python to
replace problematic conversions rather than throw a fatal error.
- Fix a typo noticed while doing the above ("tot he" -> "to the").
- As suggested by Stephen, re-alphabetize the import list
- Per Heinrich, replace how we write contents in test_fit.pyReviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini -
Use the 2to3 tool to perform numerous automatic conversions from Python
2 syntax to Python 3. Also fix whitespace problems that Python 3
catches that Python 2 did not.Reviewed-by: Stephen Warren
Reviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini -
Fix the following spit from pytest:
u-boot/test/py/conftest.py:438: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
for board in mark.args:In both cases, the later suggestion is applicable.
Reviewed-by: Stephen Warren
Reviewed-by: Simon Glass
Signed-off-by: Marek Vasut
Cc: Igor Opaniuk
[trini: Update for current file with a few more cases, un-pin pytest in CI]
Tested-by: Simon Glass [on sandbox]
Tested-by: Stephen Warren
Signed-off-by: Tom Rini -
We inconsistently note multiple dependencies today in our tests,
sometimes with a single line that declares multiple and sometimes
multiple single lines. Current pytest seems to fail on the single line
format so change to multiple declarations.Reviewed-by: Stephen Warren
Reviewed-by: Simon Glass
Tested-by: Stephen Warren
Tested-by: Simon Glass [on sandbox]
Signed-off-by: Tom Rini
15 Oct, 2019
2 commits
-
At present the 'Index' column of 'dm tree' assumes there is
two digits, this patch increase it to 3 digits.It also aligns output of 'dm uclass', assuming the same 3 digits index.
The boards with CONFIG_PINCTRL_FULL activated have one pinconfig
by pin configuration, so they can have more than 100 devices
pinconfig (for example with stm32mp157c-ev1 board we have
106 pinconfig node).Signed-off-by: Patrick Delaunay
Reviewed-by: Simon Glass -
This commit add a test in the vboot test to check that
when a required key is asked, only FIT signed with this
key is used/accepted by u-boot.Signed-off-by: Philippe Reynes
21 Aug, 2019
1 commit
-
Based on discussion with Stephen Warren there was recommendation to list
both memory and random command dependencies just in case that dependency is
not properly handled by Kconfig.Fixes: a09c1f7e1c1b ("test/py: Fix MMC/SD block write test dependency")
Signed-off-by: Michal Simek
Acked-by: Stephen Warren