From ba89d093d42d6f177fbe7fc07549ea7dfd6a85b2 Mon Sep 17 00:00:00 2001 From: Dawid Jagiela Date: Tue, 5 Jun 2012 14:50:33 +0200 Subject: [PATCH] UNRES single MD for MPI ctest file permissions fix --- source/unres/src_MD/CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/unres/src_MD/CMakeLists.txt b/source/unres/src_MD/CMakeLists.txt index 1f42622..26843d6 100644 --- a/source/unres/src_MD/CMakeLists.txt +++ b/source/unres/src_MD/CMakeLists.txt @@ -298,7 +298,7 @@ target_link_libraries( UNRES_BIN-MD xdrf ) # test_single_ala.sh #========================================= -FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_single_ala.sh +FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/test_single_ala.sh "#!/bin/sh export POT=GB export PREFIX=ala10 @@ -321,6 +321,16 @@ export PATTERN=$DD/patterns.cart $UNRES_BIN ") +# +# File permissions workaround +# +FILE( COPY ${CMAKE_CURRENT_BINARY_DIR}/scripts/test_single_ala.sh + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} + FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE +) + + + #========================================= # ala10.inp #========================================= @@ -358,6 +368,7 @@ if(NOT UNRES_WITH_MPI) else(NOT UNRES_WITH_MPI) + add_test(NAME UNRES_MD_MPI_Ala10 COMMAND mpirun -np 1 ${CMAKE_CURRENT_BINARY_DIR}/test_single_ala.sh ) endif(NOT UNRES_WITH_MPI) -- 1.7.9.5