unit-tests/osloader-test: make modules always be built for the test
@@ -5,6 +5,8 @@ set(TEST_MODULE_FILES
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})
-
