Commit 0baf958c authored by berenger-bramas's avatar berenger-bramas
Browse files

Add unit test automation:

Set UTEST to true in cmake of project dir (true by default)
Then, make test into your build dir

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@179 2616d619-271b-44dc-8df4-d4a8f33a7222
parent ee0dd347
...@@ -56,6 +56,7 @@ endif() ...@@ -56,6 +56,7 @@ endif()
# Build - UTests # Build - UTests
MESSAGE( STATUS "SCALFMM_BUILD_UTESTS = ${SCALFMM_BUILD_UTESTS}" ) MESSAGE( STATUS "SCALFMM_BUILD_UTESTS = ${SCALFMM_BUILD_UTESTS}" )
if( SCALFMM_BUILD_UTESTS ) if( SCALFMM_BUILD_UTESTS )
ENABLE_TESTING()
add_subdirectory(UTests) add_subdirectory(UTests)
endif() endif()
......
...@@ -45,4 +45,9 @@ foreach(exec ${source_tests_files}) ...@@ -45,4 +45,9 @@ foreach(exec ${source_tests_files})
${execname} ${execname}
${fmb_lib} ${fmb_lib}
) )
add_test(
${execname}
${CMAKE_CURRENT_BINARY_DIR}/${execname}
)
endforeach(exec) endforeach(exec)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment