Skip to content
Snippets Groups Projects
Commit 23f839ba authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

ENH: Move the test data download to individual tests

parent 011be7d8
No related branches found
No related tags found
No related merge requests found
......@@ -381,15 +381,7 @@ install(
# Test data download
#--------------------------------------------------------------------------
include(imstkExternalDataDownloadTest)
#--------------------------------------------------------------------------
# Append external data needed for testing to be downloaded later
#--------------------------------------------------------------------------
list(APPEND FILE_LIST
asianDragon/,REGEX:.*
human/,REGEX:.*
oneTet/,REGEX:.*)
#--------------------------------------------------------------------------
# Add Examples subdirectories
#--------------------------------------------------------------------------
......@@ -400,7 +392,9 @@ endif()
#-----------------------------------------------------------------------------
# Download the external data needed for both testing and examples
#-----------------------------------------------------------------------------
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
if(BUILD_TESTING OR BUILD_EXAMPLES)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
endif()
#--------------------------------------------------------------------------
# Innerbuild dummy test
......
......@@ -15,6 +15,14 @@ imstk_add_library( Collision
# Testing
#-----------------------------------------------------------------------------
if( BUILD_TESTING )
include(imstkAddTest)
imstk_add_test( Collision )
include(imstkAddTest)
list(APPEND FILE_LIST_COL_TEST
asianDragon/,REGEX:.*
human/,REGEX:.*
oneTet/,REGEX:.*)
imstk_add_test(Collision)
imstk_add_data(Collision ${FILE_LIST_COL_TEST})
endif()
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