On 2017-11-02 16:56, [ext] Andreas J. Reichel wrote:
> From: Andreas Reichel <[email protected]>
> 
> This patch series contains a complete replacement for the current
> test-suite, because cmocka is not compatible with efibootguard's
> license.
> 
> Instead, fff (fake function framework) and check is used.
> * https://github.com/meekrosoft/fff (MIT license)
> * https://libcheck.github.io/check  (LGPL)
> 
> Additional tests for user variables are included in the
> upcoming patch series after this one has been merged.
> 
> Signed-off-by: Andreas Reichel <[email protected]>
> 
> Andreas Reichel (9):
>   Remove cmocka test suite
>   Add libcheck unit testing framework
>   Add function faking framework as submodule
>   Make code more modular
>   tests: Add test for bgenv_init
>   tests: Add test for config partition probing
>   tests: Add test for config file probing
>   tests: Add tests for internal environment API functions
>   tests: Add tests for environment API
> 
>  .gitmodules                                |   3 +
>  .travis-build.sh                           |  32 +-
>  Makefile.am                                |   4 +-
>  configure.ac                               |   3 +
>  docs/COMPILE.md                            |   4 +-
>  env/env_api_fat.c                          | 230 +----------
>  env/env_config_file.c                      |  90 ++++
>  env/env_config_partitions.c                |  83 ++++
>  env/env_disk_utils.c                       |  99 +++++
>  include/env_config_file.h                  |  20 +
>  include/env_config_partitions.h            |  18 +
>  include/env_disk_utils.h                   |  20 +
>  include/test-interface.h                   |   2 +
>  testing/fff                                |   1 +
>  tools/tests/Makefile.am                    |  67 ++-
>  tools/tests/fake_devices.c                 |  94 +++++
>  tools/tests/fake_devices.h                 |  28 ++
>  tools/tests/test_api.c                     | 315 --------------
>  tools/tests/test_bgenv_init_retval.c       |  96 +++++
>  tools/tests/test_ebgenv_api.c              | 635 
> +++++++++++++++++++++++++++++
>  tools/tests/test_ebgenv_api_internal.c     | 403 ++++++++++++++++++
>  tools/tests/test_environment.c             | 119 ------
>  tools/tests/test_main.c                    |  34 ++
>  tools/tests/test_partitions.c              | 154 -------
>  tools/tests/test_probe_config_file.c       | 191 +++++++++
>  tools/tests/test_probe_config_partitions.c |  95 +++++
>  26 files changed, 1995 insertions(+), 845 deletions(-)
>  create mode 100644 .gitmodules
>  create mode 100644 env/env_config_file.c
>  create mode 100644 env/env_config_partitions.c
>  create mode 100644 env/env_disk_utils.c
>  create mode 100644 include/env_config_file.h
>  create mode 100644 include/env_config_partitions.h
>  create mode 100644 include/env_disk_utils.h
>  create mode 160000 testing/fff
>  create mode 100644 tools/tests/fake_devices.c
>  create mode 100644 tools/tests/fake_devices.h
>  delete mode 100644 tools/tests/test_api.c
>  create mode 100644 tools/tests/test_bgenv_init_retval.c
>  create mode 100644 tools/tests/test_ebgenv_api.c
>  create mode 100644 tools/tests/test_ebgenv_api_internal.c
>  delete mode 100644 tools/tests/test_environment.c
>  create mode 100644 tools/tests/test_main.c
>  delete mode 100644 tools/tests/test_partitions.c
>  create mode 100644 tools/tests/test_probe_config_file.c
>  create mode 100644 tools/tests/test_probe_config_partitions.c
> 

Looks all good and seems to work. I've decided last-minute to rename
testing/fff to tests/fff (to be consistent with other test-related
folders) and merged things to next.

Thanks,
Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/21604f65-ffe9-3213-9fc2-8a76048d0991%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to