Skip to content
Snippets Groups Projects
Commit 855192a8 authored by Aimee Linden's avatar Aimee Linden
Browse files

VWR-20768 (SNOW-507) FIXED Missing LL_TEST conditions in cmake files

parent 5bb7cbc6
No related branches found
No related tags found
No related merge requests found
...@@ -523,6 +523,7 @@ Robin Cornelius ...@@ -523,6 +523,7 @@ Robin Cornelius
SNOW-506 SNOW-506
SNOW-514 SNOW-514
SNOW-520 SNOW-520
SNOW-507
SNOW-585 SNOW-585
VWR-2488 VWR-2488
VWR-9557 VWR-9557
......
...@@ -77,11 +77,12 @@ list(APPEND llcharacter_SOURCE_FILES ${llcharacter_HEADER_FILES}) ...@@ -77,11 +77,12 @@ list(APPEND llcharacter_SOURCE_FILES ${llcharacter_HEADER_FILES})
add_library (llcharacter ${llcharacter_SOURCE_FILES}) add_library (llcharacter ${llcharacter_SOURCE_FILES})
# Add tests if(LL_TESTS)
include(LLAddBuildTest) # Add tests
# UNIT TESTS include(LLAddBuildTest)
SET(llcharacter_TEST_SOURCE_FILES # UNIT TESTS
lljoint.cpp SET(llcharacter_TEST_SOURCE_FILES
) lljoint.cpp
LL_ADD_PROJECT_UNIT_TESTS(llcharacter "${llcharacter_TEST_SOURCE_FILES}") )
LL_ADD_PROJECT_UNIT_TESTS(llcharacter "${llcharacter_TEST_SOURCE_FILES}")
endif(LL_TESTS)
...@@ -59,16 +59,16 @@ list(APPEND llinventory_SOURCE_FILES ${llinventory_HEADER_FILES}) ...@@ -59,16 +59,16 @@ list(APPEND llinventory_SOURCE_FILES ${llinventory_HEADER_FILES})
add_library (llinventory ${llinventory_SOURCE_FILES}) add_library (llinventory ${llinventory_SOURCE_FILES})
if(LL_TESTS)
#add unit tests
INCLUDE(LLAddBuildTest)
SET(llinventory_TEST_SOURCE_FILES
# no real unit tests yet!
)
LL_ADD_PROJECT_UNIT_TESTS(llinventory "${llinventory_TEST_SOURCE_FILES}")
#add unit tests #set(TEST_DEBUG on)
INCLUDE(LLAddBuildTest) set(test_libs llinventory ${LLMESSAGE_LIBRARIES} ${LLVFS_LIBRARIES} ${LLMATH_LIBRARIES} ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
SET(llinventory_TEST_SOURCE_FILES LL_ADD_INTEGRATION_TEST(inventorymisc "" "${test_libs}")
# no real unit tests yet! LL_ADD_INTEGRATION_TEST(llparcel "" "${test_libs}")
) endif(LL_TESTS)
LL_ADD_PROJECT_UNIT_TESTS(llinventory "${llinventory_TEST_SOURCE_FILES}")
#set(TEST_DEBUG on)
set(test_libs llinventory ${LLMESSAGE_LIBRARIES} ${LLVFS_LIBRARIES} ${LLMATH_LIBRARIES} ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
LL_ADD_INTEGRATION_TEST(inventorymisc "" "${test_libs}")
LL_ADD_INTEGRATION_TEST(llparcel "" "${test_libs}")
...@@ -53,9 +53,11 @@ list(APPEND llprimitive_SOURCE_FILES ${llprimitive_HEADER_FILES}) ...@@ -53,9 +53,11 @@ list(APPEND llprimitive_SOURCE_FILES ${llprimitive_HEADER_FILES})
add_library (llprimitive ${llprimitive_SOURCE_FILES}) add_library (llprimitive ${llprimitive_SOURCE_FILES})
#add unit tests if(LL_TESTS)
INCLUDE(LLAddBuildTest) #add unit tests
SET(llprimitive_TEST_SOURCE_FILES INCLUDE(LLAddBuildTest)
llmediaentry.cpp SET(llprimitive_TEST_SOURCE_FILES
) llmediaentry.cpp
LL_ADD_PROJECT_UNIT_TESTS(llprimitive "${llprimitive_TEST_SOURCE_FILES}") )
LL_ADD_PROJECT_UNIT_TESTS(llprimitive "${llprimitive_TEST_SOURCE_FILES}")
endif(LL_TESTS)
...@@ -240,10 +240,12 @@ target_link_libraries(llui ...@@ -240,10 +240,12 @@ target_link_libraries(llui
${LLCOMMON_LIBRARIES} # must be after llimage, llwindow, llrender ${LLCOMMON_LIBRARIES} # must be after llimage, llwindow, llrender
) )
# Add tests if(LL_TESTS)
include(LLAddBuildTest) # Add tests
SET(llui_TEST_SOURCE_FILES include(LLAddBuildTest)
llurlmatch.cpp SET(llui_TEST_SOURCE_FILES
llurlentry.cpp llurlmatch.cpp
) llurlentry.cpp
LL_ADD_PROJECT_UNIT_TESTS(llui "${llui_TEST_SOURCE_FILES}") )
LL_ADD_PROJECT_UNIT_TESTS(llui "${llui_TEST_SOURCE_FILES}")
endif(LL_TESTS)
...@@ -67,15 +67,17 @@ if (DARWIN) ...@@ -67,15 +67,17 @@ if (DARWIN)
endif (DARWIN) endif (DARWIN)
# Add tests if(LL_TESTS)
include(LLAddBuildTest) # Add tests
# UNIT TESTS include(LLAddBuildTest)
SET(llvfs_TEST_SOURCE_FILES # UNIT TESTS
# none so far SET(llvfs_TEST_SOURCE_FILES
) # none so far
LL_ADD_PROJECT_UNIT_TESTS(llvfs "${llvfs_TEST_SOURCE_FILES}") )
LL_ADD_PROJECT_UNIT_TESTS(llvfs "${llvfs_TEST_SOURCE_FILES}")
# INTEGRATION TESTS
set(test_libs llmath llcommon llvfs ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES}) # INTEGRATION TESTS
# TODO: Some of these need refactoring to be proper Unit tests rather than Integration tests. set(test_libs llmath llcommon llvfs ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
LL_ADD_INTEGRATION_TEST(lldir "" "${test_libs}") # TODO: Some of these need refactoring to be proper Unit tests rather than Integration tests.
LL_ADD_INTEGRATION_TEST(lldir "" "${test_libs}")
endif(LL_TESTS)
...@@ -45,24 +45,27 @@ target_link_libraries( llxml ...@@ -45,24 +45,27 @@ target_link_libraries( llxml
${EXPAT_LIBRARIES} ${EXPAT_LIBRARIES}
) )
# tests
# unit tests if(LL_TESTS)
# tests
SET(llxml_TEST_SOURCE_FILES # unit tests
# none yet!
)
LL_ADD_PROJECT_UNIT_TESTS(llxml "${llxml_TEST_SOURCE_FILES}")
# integration tests SET(llxml_TEST_SOURCE_FILES
# none yet!
)
LL_ADD_PROJECT_UNIT_TESTS(llxml "${llxml_TEST_SOURCE_FILES}")
# set(TEST_DEBUG on) # integration tests
set(test_libs
${LLXML_LIBRARIES}
${WINDOWS_LIBRARIES}
${LLMATH_LIBRARIES}
${LLCOMMON_LIBRARIES}
)
LL_ADD_INTEGRATION_TEST(llcontrol "" "${test_libs}") # set(TEST_DEBUG on)
set(test_libs
${LLXML_LIBRARIES}
${WINDOWS_LIBRARIES}
${LLMATH_LIBRARIES}
${LLCOMMON_LIBRARIES}
)
LL_ADD_INTEGRATION_TEST(llcontrol "" "${test_libs}")
endif(LL_TESTS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment