11 Jan, 2020

1 commit

  • In the function cmd_ut_category, the prefix is used with
    the function strncmp to know if the prefix should be
    removed from the test name, even if the prefix is NULL.

    To avoid this issue, we consider that a prefix NULL
    mean no prefix. So we only try to remove the prefix
    from the test_name if the prefix is not NULL, then
    we avoid to call the function strncmp with a NULL
    prefix.

    Reported-by: Coverity CID 281110
    Fixes: 4ad4edfe ("cmd_ut: add a parameter prefix to the function cmd_ut_category")
    Signed-off-by: Philippe Reynes

    Philippe Reynes
     

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

    Philippe Reynes
     

14 Nov, 2019

1 commit

  • OP-TEE can get supplied with a devicetree and will then insert
    its firmware node and reserved-memory sections into it.
    As this devicetree often is not the one supplied to a later
    loaded kernel, a previous commit added functionality to transfer
    these nodes onto that new devicetree.

    To make sure this functionality stays intact, also add a test
    for the transfer functionality.

    Signed-off-by: Heiko Stuebner
    Reviewed-by: Simon Glass

    Heiko Stuebner
     

09 Feb, 2019

1 commit


26 Nov, 2018

1 commit


24 Sep, 2018

1 commit


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

04 Dec, 2017

1 commit

  • Adjust this test to use the unit test framework. Drop the two existing
    commands for running the tests and replace them with a single
    'ut compression' command, with sub-commands.

    Signed-off-by: Simon Glass
    [trini: Continue to have ret = run_test_internal(...) in run_test so ret
    is always initialized]
    Signed-off-by: Tom Rini

    Simon Glass
     

03 Dec, 2017

1 commit


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

    Maxime Ripard
     

21 May, 2015

4 commits