Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add std and stdo files to distrib and copy them to build dir if necessary.
authornavarro <navarro@caraja.(none)>
Fri, 26 Oct 2012 14:33:32 +0000 (16:33 +0200)
committernavarro <navarro@caraja.(none)>
Fri, 26 Oct 2012 14:33:32 +0000 (16:33 +0200)
teshsuite/smpi/CMakeLists.txt
teshsuite/smpi/mpich-test/CMakeLists.txt [new file with mode: 0644]

index 43c70f5..925bf1a 100644 (file)
@@ -10,6 +10,7 @@ if(enable_smpi)
   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
   
   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
   
   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
+  include("${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich-test/CMakeLists.txt")
 
   add_executable(alltoall2 alltoall2.c )
   add_executable(alltoall_basic alltoall_basic.c)
 
   add_executable(alltoall2 alltoall2.c )
   add_executable(alltoall_basic alltoall_basic.c)
diff --git a/teshsuite/smpi/mpich-test/CMakeLists.txt b/teshsuite/smpi/mpich-test/CMakeLists.txt
new file mode 100644 (file)
index 0000000..74b267d
--- /dev/null
@@ -0,0 +1,73 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(tesh_files
+  ${tesh_files}
+  PARENT_SCOPE
+  )
+set(xml_files
+  ${xml_files}
+  PARENT_SCOPE
+  )
+set(examples_src
+  ${examples_src}
+  PARENT_SCOPE
+  )
+set(bin_files
+  ${bin_files}
+  PARENT_SCOPE
+  )
+  
+set(stdo_std_smpi
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/attrt.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/attrerr.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/context.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/commnames.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/self.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sndrcvrep.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/waitany.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/reqcreate.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/persistent.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/allpair2.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typeub3.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/waitall.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nullproc2.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/allpair.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/hindexed.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/ssendtest2.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sendmany.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nullproc.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nbtest.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sendcplx.stdo
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/hvec.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typebase.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typeub2.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/structf.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typecreate.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nblock.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/cartmap.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/graphtest.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/cartf.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/aborttest.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/errstringsf.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/env.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/profile/ptest.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allredmany.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allredf.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/scatterv.std
+)
+
+if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_HOME_DIRECTORY}")
+else()
+    foreach(srcfile ${stdo_std_smpi})
+        set(dstfile ${srcfile})
+        string(REPLACE "${CMAKE_HOME_DIRECTORY}" "${CMAKE_BINARY_DIR}" dst_file "${dstfile}")
+        #message("copy ${srcfile} to ${dstfile}")
+        file(COPY ${srcfile} DESTINATION ${dst_file})
+    endforeach()
+endif()
+
+set(txt_files
+  ${txt_files}
+  ${stdo_std_smpi}
+  PARENT_SCOPE
+  )