# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE # # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # # Declare the configuration variables for the test scripts SET (TEST_LOCAL_RSH_EXECUTION_HOST "localhost" CACHE STRING "Execution host for RSH Batch test (only necessary for test target)") SET (TEST_LOCAL_RSH_WORK_DIR "/tmp" CACHE STRING "Work directory for RSH Batch test (only necessary for test target)") SET (TEST_LOCAL_SSH_EXECUTION_HOST "localhost" CACHE STRING "Execution host for SSH Batch test (only necessary for test target)") SET (TEST_LOCAL_SSH_WORK_DIR "/tmp" CACHE STRING "Work directory for SSH Batch test (only necessary for test target)") # Configure the config file for all the test scripts CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Test_Local_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/Test_Local_config.h) # Just copy the test scripts to the binary dir CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/seta.sh ${CMAKE_CURRENT_BINARY_DIR}/seta.sh COPYONLY) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/setb.sh ${CMAKE_CURRENT_BINARY_DIR}/setb.sh COPYONLY) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test-script.sh ${CMAKE_CURRENT_BINARY_DIR}/test-script.sh COPYONLY) # set the include directories include_directories(${CMAKE_SOURCE_DIR}/src/Core) include_directories(${CMAKE_CURRENT_BINARY_DIR}) # Build the test programs add_executable(Test_Local_SH Test_Local_SH.cxx) target_link_libraries(Test_Local_SH Batch) add_executable(Test_Local_RSH Test_Local_RSH.cxx) target_link_libraries(Test_Local_RSH Batch) add_executable(Test_Local_SSH Test_Local_SSH.cxx) target_link_libraries(Test_Local_SSH Batch) # Add the tests themselves ADD_TEST(Local_SH Test_Local_SH) ADD_TEST(Local_RSH Test_Local_RSH) ADD_TEST(Local_SSH Test_Local_SSH)