From e2a8edf93b544a8d68127db793544cc3ae8fc73e Mon Sep 17 00:00:00 2001 From: Stanislav Pankevich Date: Tue, 21 Apr 2020 16:49:20 +0200 Subject: [PATCH] unit-tests/osloader-test: make modules always be built for the test --- src/unit-tests/osloader-test/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unit-tests/osloader-test/CMakeLists.txt b/src/unit-tests/osloader-test/CMakeLists.txt index ce3565797..349a274a5 100644 --- a/src/unit-tests/osloader-test/CMakeLists.txt +++ b/src/unit-tests/osloader-test/CMakeLists.txt @@ -4,7 +4,9 @@ set(TEST_MODULE_FILES ut_osloader_module_test.c ut_osloader_symtable_test.c ut_osloader_test.c) - + +add_osal_ut_exe(osal_loader_UT ${TEST_MODULE_FILES}) + # build many copies of the test module # we need to have unique modules to load up to OS_MAX_MODULES # This will cover up to 32 -- extras are ignored. If needed this can be increased. @@ -16,7 +18,5 @@ while(MOD GREATER 0) COMPILE_DEFINITIONS "MODULE_NAME=module${MOD}" PREFIX "" LIBRARY_OUTPUT_DIRECTORY eeprom1) + add_dependencies(osal_loader_UT MODULE${MOD}) endwhile(MOD GREATER 0) - -add_osal_ut_exe(osal_loader_UT ${TEST_MODULE_FILES}) -