Test peo modified

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@913 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
canape 2008-02-01 10:51:31 +00:00
commit 2d739c74b6
8 changed files with 8 additions and 62 deletions

View file

@ -59,28 +59,18 @@ ENDIF(WIN32 AND NOT CYGWIN)
### 3) Define your targets and link the librairies ### 3) Define your targets and link the librairies
###################################################################################### ######################################################################################
SET (TEST_LIST t-EAAsyncIslandLib) SET (TEST_LIST t-Mpdboot
t-ParallelEvalLib
# t-ParallelEval
# t-ParallelTransform
# t-MultiStart
# t-PSOSelect
# t-EAAsyncIsland
# t-EASyncIsland
# t-PSOGlobalBest
# t-PSOWorstPosition
SET (TEST_LIBRARY t-ParallelEvalLib
t-ParallelTransformLib t-ParallelTransformLib
t-MultiStartLib t-MultiStartLib
t-PSOSelect
t-EAAsyncIslandLib t-EAAsyncIslandLib
t-EASyncIslandLib t-EASyncIslandLib
t-PSOGlobalBestLib t-PSOGlobalBestLib
t-PSOWorstPositionLib t-PSOWorstPositionLib
) t-Mpdallexit)
FOREACH (test ${TEST_LIST})
FOREACH (test ${TEST_LIST} ${TEST_LIBRARY})
SET ("T_${test}_SOURCES" "${test}.cpp") SET ("T_${test}_SOURCES" "${test}.cpp")
ENDFOREACH (test) ENDFOREACH (test)
@ -88,7 +78,7 @@ ENDFOREACH (test)
IF(ENABLE_CMAKE_TESTING) IF(ENABLE_CMAKE_TESTING)
# Add the tests # Add the tests
FOREACH (test ${TEST_LIST} ${TEST_LIBRARY}) FOREACH (test ${TEST_LIST})
ADD_EXECUTABLE(${test} ${T_${test}_SOURCES}) ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
ENDFOREACH (test) ENDFOREACH (test)
@ -97,7 +87,7 @@ IF(ENABLE_CMAKE_TESTING)
ENDFOREACH (test) ENDFOREACH (test)
# Link the librairies # Link the librairies
FOREACH (test ${TEST_LIST} ${TEST_LIBRARY}) FOREACH (test ${TEST_LIST})
TARGET_LINK_LIBRARIES(${test} peo ${XML2_LIBS} rmc_mpi ga es eoutils eo) TARGET_LINK_LIBRARIES(${test} peo ${XML2_LIBS} rmc_mpi ga es eoutils eo)
ENDFOREACH (test) ENDFOREACH (test)

View file

@ -1,8 +0,0 @@
#include <peo.h>
int main (int __argc, char *__argv[])
{
system("mpdboot");
system("mpiexec -n 4 ./t-EAAsyncIslandLib @param ");
system("mpdallexit");
}

View file

@ -1,8 +0,0 @@
#include <peo.h>
int main (int __argc, char *__argv[])
{
system("mpdboot");
system("mpiexec -n 4 ./t-EASyncIslandLib @param ");
system("mpdallexit");
}

View file

@ -2,7 +2,5 @@
int main (int __argc, char *__argv[]) int main (int __argc, char *__argv[])
{ {
system("mpdboot");
system("mpiexec -n 4 ./t-MultiStartLib @param ");
system("mpdallexit"); system("mpdallexit");
} }

View file

@ -3,6 +3,4 @@
int main (int __argc, char *__argv[]) int main (int __argc, char *__argv[])
{ {
system("mpdboot"); system("mpdboot");
system("mpiexec -n 4 ./t-ParallelEvalLib @param ");
system("mpdallexit");
} }

View file

@ -1,8 +0,0 @@
#include <peo.h>
int main (int __argc, char *__argv[])
{
system("mpdboot");
system("mpiexec -n 4 ./t-PSOGlobalBestLib @param ");
system("mpdallexit");
}

View file

@ -1,8 +0,0 @@
#include <peo.h>
int main (int __argc, char *__argv[])
{
system("mpdboot");
system("mpiexec -n 4 ./t-PSOWorstPositionLib @param ");
system("mpdallexit");
}

View file

@ -1,8 +0,0 @@
#include <peo.h>
int main (int __argc, char *__argv[])
{
system("mpdboot");
system("mpiexec -n 4 ./t-ParallelTransformLib @param ");
system("mpdallexit");
}