From: Andreas Reichel <[email protected]> This patch series is based on the last two patches on the mailing list (from HEAD to HEAD~2): * [PATCH] Bugfix: zeroing errno before strtol is mandatory * [PATCH v2] Bugfix: bgenv_get: Error codes overlap return values * [PATCH] Bugfix: env_api_fat.c: Return correct buffer size
It contains a complete replacement for the current test-suite, because cmocka is not compatible to the license of efibootguard. Instead, fff (fake function framework) and check is used. * https://github.com/meekrosoft/fff (MIT License) * https://libcheck.github.io/check/ (LGPL License) Signed-off-by: Andreas Reichel <[email protected]> Andreas Reichel (6): Remove cmocka test suite Add libcheck unit testing framework Add function faking framework as submodule Update travis build script Make code more modular Add new tests based on check, fff and linker wrapping .gitmodules | 3 + .travis-build.sh | 33 +- 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 +++++ fff | 1 + include/env_config_file.h | 20 + include/env_config_partitions.h | 18 + include/env_disk_utils.h | 20 + include/test-interface.h | 4 + tools/tests/Makefile.am | 65 ++- 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 | 100 +++++ tools/tests/test_ebgenv_api.c | 641 +++++++++++++++++++++++++++++ tools/tests/test_ebgenv_api_internal.c | 416 +++++++++++++++++++ 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 | 202 +++++++++ tools/tests/test_probe_config_partitions.c | 99 +++++ 26 files changed, 2034 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 160000 fff 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 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 -- 2.14.2 -- 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/20171024122629.16634-1-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
