Issue #38643 Introduce a more powerful and well established mocking framework into Zephyr. It also allows running the actual FFF tests using the zephyr SDK and ztest framework to ensure compatibility. As per TSC meeting, the fff.h header was directly added to subsys/testsuite/include/. As per the guidelines, the file is exactly the same as it is in FFF's library, but re-styled with clang-format. The west.yml entry was added using the "ci" group and filtered by default. (note that the tests will break until the CI actually specifies that the group is needed). Signed-off-by: Yuval Peress <peress@google.com>
27 lines
614 B
Plaintext
27 lines
614 B
Plaintext
# Copyright (c) 2021 Google LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config ZEPHYR_FFF_MODULE
|
|
bool
|
|
|
|
config FFF_TEST
|
|
bool "FFF Test suite"
|
|
help
|
|
Enable the FFF test suite. This should really only be called from the tests for FFF under
|
|
tests/ztest/mock_fff/. It brings in the test sources from the upstream FFF module.
|
|
|
|
if FFF_TEST
|
|
|
|
choice FFF_TEST
|
|
prompt "The type of FFF test to bring in"
|
|
|
|
config FFF_TEST_C
|
|
bool "Compile the FFF default C test suite as a zephyr library"
|
|
|
|
config FFF_TEST_GLOBAL_C
|
|
bool "Compile the FFF global C test suite as a zephyr library"
|
|
|
|
endchoice # FFF_TEST
|
|
|
|
endif # FFF_TEST
|