06 Feb, 2020
1 commit
-
At present dm/device.h includes the linux-compatible features. This
requires including linux/compat.h which in turn includes a lot of headers.
One of these is malloc.h which we thus end up including in every file in
U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
which needs to use the system malloc() in some files.Move the compatibility features into a separate header file.
Signed-off-by: Simon Glass
08 Jan, 2020
1 commit
-
There is black magic in the file conftest.py that list
all the test unit. Then, all those test unit are called
in pytest. This call is done with the end of the name
(for example checksum if the full name is bloblist_test_checksum).The result is that only test for dm are really executed.
by pytest, all others tests are listed but never executed.This behaviour happens because the dm test unit only check
the end of the name and others tests checks the full name.To fix this issue, I've added a prefix to the function
cmd_ut_category, and this prefix is removed when looking
for the unit test.Signed-off-by: Philippe Reynes
Tested-by: Heinrich Schuchardt
21 Sep, 2019
1 commit
-
New seven test cases for u16_strcmp() are added under Unicode unit test,
which should be executed by "ut unicode" command.Signed-off-by: AKASHI Takahiro
Reviewed-by: Heinrich Schuchardt
17 Jul, 2019
1 commit
-
Provide a unit test for u16_strlen().
Signed-off-by: Heinrich Schuchardt
16 Feb, 2019
1 commit
-
In test/py/conftest.py the assumption is made that for if a test is called
with `ut unicode` the test function name starts with 'unicode_test_'. As
the Unicode tests did not follow this naming scheme they were not executed
by `make tests`.Rename the Unicode test functions.
Signed-off-by: Heinrich Schuchardt
13 Feb, 2019
1 commit
-
Provide unit tests for u16_strdup() and u16_strcpy().
Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf
24 Sep, 2018
4 commits
-
Up to now the EFI_TEXT_INPUT_PROTOCOL only supported ASCII characters.
With the patch it can consume UTF-8 from the console.Currently only the serial console and the console can deliver UTF-8.
Local consoles are restricted to ASCII.Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf -
Provide unit tests for utf_to_lower() utf_to_upper().
Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf -
Test printing of Unicode strings
Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf -
Provide unit tests for Unicode functions.
Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf