Skip to content
Snippets Groups Projects
Commit 15a3df2f authored by Logan Dethrow's avatar Logan Dethrow
Browse files

Always build indra/test, run if LL_TESTS is enabled. Removed python test run...

Always build indra/test, run if LL_TESTS is enabled. Removed python test run command since there are no python tests in the viewer.
parent dc58b520
No related branches found
No related tags found
No related merge requests found
...@@ -69,9 +69,8 @@ if (VIEWER) ...@@ -69,9 +69,8 @@ if (VIEWER)
add_subdirectory(${LIBS_OPEN_PREFIX}llxuixml) add_subdirectory(${LIBS_OPEN_PREFIX}llxuixml)
add_subdirectory(${LIBS_OPEN_PREFIX}viewer_components) add_subdirectory(${LIBS_OPEN_PREFIX}viewer_components)
if (LL_TESTS) # Legacy C++ tests. Build always, run if LL_TESTS is true.
add_subdirectory(${VIEWER_PREFIX}test) add_subdirectory(${VIEWER_PREFIX}test)
endif (LL_TESTS)
# viewer media plugins # viewer media plugins
add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins) add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins)
......
...@@ -4,7 +4,6 @@ project (test) ...@@ -4,7 +4,6 @@ project (test)
include(00-Common) include(00-Common)
include(LLCommon) include(LLCommon)
#include(LLDatabase)
include(LLInventory) include(LLInventory)
include(LLMath) include(LLMath)
include(LLMessage) include(LLMessage)
...@@ -74,12 +73,6 @@ if (NOT WINDOWS) ...@@ -74,12 +73,6 @@ if (NOT WINDOWS)
) )
endif (NOT WINDOWS) endif (NOT WINDOWS)
#if (NOT DARWIN)
# list(APPEND test_SOURCE_FILES
# lldatabase_tut.cpp
# )
#endif (NOT DARWIN)
set_source_files_properties(${test_HEADER_FILES} set_source_files_properties(${test_HEADER_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE) PROPERTIES HEADER_FILE_ONLY TRUE)
...@@ -98,7 +91,6 @@ target_link_libraries(test ...@@ -98,7 +91,6 @@ target_link_libraries(test
${LLCOMMON_LIBRARIES} ${LLCOMMON_LIBRARIES}
${EXPAT_LIBRARIES} ${EXPAT_LIBRARIES}
${GOOGLEMOCK_LIBRARIES} ${GOOGLEMOCK_LIBRARIES}
# ${APRICONV_LIBRARIES}
${PTHREAD_LIBRARY} ${PTHREAD_LIBRARY}
${WINDOWS_LIBRARIES} ${WINDOWS_LIBRARIES}
${BOOST_PROGRAM_OPTIONS_LIBRARY} ${BOOST_PROGRAM_OPTIONS_LIBRARY}
...@@ -135,25 +127,10 @@ ADD_CUSTOM_COMMAND( ...@@ -135,25 +127,10 @@ ADD_CUSTOM_COMMAND(
set(test_results ${CMAKE_CURRENT_BINARY_DIR}/cpp_tests_ok.txt) set(test_results ${CMAKE_CURRENT_BINARY_DIR}/cpp_tests_ok.txt)
if (EXISTS /etc/debian_version_FAIL) # This should cause the test executable to be built, but not
# The Python tests have all kinds of wacky non-portable assumptions # run if LL_TESTS is disabled. This will hopefully keep the
# built in. # tests up to date with any code changes changes even if
# developers choose to disable LL_TESTS.
add_custom_command( if (LL_TESTS)
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/py_tests_ok.txt add_custom_target(tests_ok ALL DEPENDS ${test_results})
COMMAND ${PYTHON_EXECUTABLE} endif (LL_TESTS)
ARGS \ No newline at end of file
${CMAKE_CURRENT_SOURCE_DIR}/test.py
--mode=static
--output=${CMAKE_CURRENT_BINARY_DIR}/py_test_results.txt
--touch=${CMAKE_CURRENT_BINARY_DIR}/py_tests_ok.txt
--mode=static
DEPENDS test.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Python unit tests"
)
list(APPEND test_results ${CMAKE_CURRENT_BINARY_DIR}/py_tests_ok.txt)
endif (EXISTS /etc/debian_version_FAIL)
add_custom_target(tests_ok ALL DEPENDS ${test_results})
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