The filter in the testcase.yaml made it impossible for these to run. Also, the Kconfig names for the options didn't really make much sense so they were renamed to avoid conflict. This fixes an issue found by #36433. Signed-off-by: Yuval Peress <peress@google.com>
25 lines
761 B
CMake
25 lines
761 B
CMake
# Copyright (c) 2021 Google LLC
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
if(CONFIG_FFF_TEST)
|
|
# Add the FFF C test suites as ztest suites
|
|
message("CONFIG_FFF_TEST_TYPE_C=${CONFIG_FFF_TEST_TYPE_C}")
|
|
message("CONFIG_FFF_TEST_TYPE_GLOBAL_C=${CONFIG_FFF_TEST_TYPE_GLOBAL_C}")
|
|
zephyr_library()
|
|
zephyr_include_directories(
|
|
include
|
|
"${ZEPHYR_CURRENT_MODULE_DIR}"
|
|
"${ZEPHYR_CURRENT_MODULE_DIR}/test"
|
|
)
|
|
if(DEFINED CONFIG_FFF_TEST_TYPE_C)
|
|
zephyr_library_sources("${ZEPHYR_CURRENT_MODULE_DIR}/test/fff_test_c.c")
|
|
elseif(DEFINED CONFIG_FFF_TEST_TYPE_GLOBAL_C)
|
|
zephyr_library_sources(
|
|
"${ZEPHYR_CURRENT_MODULE_DIR}/test/fff_test_global_c.c"
|
|
"${ZEPHYR_CURRENT_MODULE_DIR}/test/global_fakes.c"
|
|
)
|
|
endif()
|
|
endif()
|