Skip to content
Snippets Groups Projects
Commit c0174554 authored by Adam Moss's avatar Adam Moss
Browse files

DEV-41080 - I found out why llmath can't be unit tested and fixed it, this...

DEV-41080 - I found out why llmath can't be unit tested and fixed it, this checkin is some harmless preparation for that...
parent a1c239b4
No related branches found
No related tags found
No related merge requests found
...@@ -235,15 +235,13 @@ target_link_libraries(llcommon ...@@ -235,15 +235,13 @@ target_link_libraries(llcommon
#add unit tests #add unit tests
INCLUDE(LLAddBuildTest) INCLUDE(LLAddBuildTest)
SET(llcommon_TEST_SOURCE_FILES SET(llcommon_TEST_SOURCE_FILES
# unit-testing llcommon is not possible right now as the test-harness *itself* depends upon llcommon, causing a circular dependency. Add your 'unit' tests as integration tests for now.
) )
LL_ADD_PROJECT_UNIT_TESTS(llcommon "${llcommon_TEST_SOURCE_FILES}") LL_ADD_PROJECT_UNIT_TESTS(llcommon "${llcommon_TEST_SOURCE_FILES}")
#set(TEST_DEBUG on) #set(TEST_DEBUG on)
set(test_libs llcommon ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES}) set(test_libs llcommon ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
# Have to treat lllazy test as an integration test until this issue is resolved:
# https://jira.lindenlab.com/jira/browse/DEV-29456
LL_ADD_INTEGRATION_TEST(lllazy lllazy.cpp "${test_libs}") LL_ADD_INTEGRATION_TEST(lllazy lllazy.cpp "${test_libs}")
# Also puzzled as to why *CMake* barfs when these are *unit* tests.
LL_ADD_INTEGRATION_TEST(llstring "llstring.cpp" "${test_libs}") LL_ADD_INTEGRATION_TEST(llstring "llstring.cpp" "${test_libs}")
LL_ADD_INTEGRATION_TEST(llrand "llrand.cpp" "${test_libs}") LL_ADD_INTEGRATION_TEST(llrand "llrand.cpp" "${test_libs}")
......
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