From dae926451bc7dab8c04a597498de92187df10e97 Mon Sep 17 00:00:00 2001 From: navarro Date: Fri, 26 Oct 2012 16:33:32 +0200 Subject: [PATCH 1/1] Add std and stdo files to distrib and copy them to build dir if necessary. --- teshsuite/smpi/CMakeLists.txt | 1 + teshsuite/smpi/mpich-test/CMakeLists.txt | 73 ++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 teshsuite/smpi/mpich-test/CMakeLists.txt diff --git a/teshsuite/smpi/CMakeLists.txt b/teshsuite/smpi/CMakeLists.txt index 43c70f5414..925bf1a595 100644 --- a/teshsuite/smpi/CMakeLists.txt +++ b/teshsuite/smpi/CMakeLists.txt @@ -10,6 +10,7 @@ if(enable_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) diff --git a/teshsuite/smpi/mpich-test/CMakeLists.txt b/teshsuite/smpi/mpich-test/CMakeLists.txt new file mode 100644 index 0000000000..74b267df37 --- /dev/null +++ b/teshsuite/smpi/mpich-test/CMakeLists.txt @@ -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 + ) -- 2.20.1