test peo modified

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@914 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
canape 2008-02-01 12:36:45 +00:00
commit 51093a1d62
8 changed files with 22 additions and 10 deletions

View file

@ -59,18 +59,22 @@ ENDIF(WIN32 AND NOT CYGWIN)
### 3) Define your targets and link the librairies
######################################################################################
SET (TEST_LIST t-Mpdboot
t-ParallelEvalLib
t-ParallelTransformLib
t-MultiStartLib
SET (TEST_RUN t-Mpdboot)
SET (TEST_LIST t-ParallelEval
t-ParallelTransform
t-MultiStart
t-PSOSelect
t-EAAsyncIslandLib
t-EASyncIslandLib
t-PSOGlobalBestLib
t-PSOWorstPositionLib
t-EAAsyncIsland
t-EASyncIsland
t-PSOGlobalBest
t-PSOWorstPosition
t-Mpdallexit)
SET (TEST_STOP t-Mpdallexit)
FOREACH (test ${TEST_LIST})
FOREACH (test ${TEST_LIST} ${TEST_RUN} ${TEST_STOP})
SET ("T_${test}_SOURCES" "${test}.cpp")
ENDFOREACH (test)
@ -78,14 +82,22 @@ ENDFOREACH (test)
IF(ENABLE_CMAKE_TESTING)
# Add the tests
FOREACH (test ${TEST_LIST})
FOREACH (test ${TEST_LIST} ${TEST_RUN} ${TEST_STOP})
ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
ENDFOREACH (test)
FOREACH (test ${TEST_RUN})
ADD_TEST(${test} ${test})
ENDFOREACH (test)
FOREACH (test ${TEST_LIST})
ADD_TEST(${test} "mpiexec" "-n" "4" "${CMAKE_CURRENT_BINARY_DIR}/${test}" "@param")
ENDFOREACH (test)
FOREACH (test ${TEST_STOP})
ADD_TEST(${test} ${test})
ENDFOREACH (test)
# Link the librairies
FOREACH (test ${TEST_LIST})
TARGET_LINK_LIBRARIES(${test} peo ${XML2_LIBS} rmc_mpi ga es eoutils eo)