test.ssh.cmake
Go to the documentation of this file.
1 
2 message(STATUS
3  "With PARAVIEW_SSH_SERVERS_TESTING, to have the SSH Server tests pass, make sure that this machine has its own ssh public key as an authorized_keys and that 127.0.0.1 is in the known_hosts file, /usr/bin/xterm is available. In case of failing tests, pvserver logs are available in ${CMAKE_CURRENT_BINARY_DIR}/sshServer.log")
4 
5 configure_file (
6  "${CMAKE_CURRENT_SOURCE_DIR}/server.sh.in"
7  "${CMAKE_CURRENT_BINARY_DIR}/tmp/server.sh" @ONLY)
8 configure_file (
9  "${CMAKE_CURRENT_SOURCE_DIR}/server_rc.sh.in"
10  "${CMAKE_CURRENT_BINARY_DIR}/tmp/server_rc.sh" @ONLY)
11 
12 file(
13  COPY ${CMAKE_CURRENT_BINARY_DIR}/tmp/server.sh
14  DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
15  FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
16  )
17 
18 file(
19  COPY ${CMAKE_CURRENT_BINARY_DIR}/tmp/server_rc.sh
20  DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
21  FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
22  )
23 
24 configure_file (
25  "${CMAKE_CURRENT_SOURCE_DIR}/sshServers.pvsc.in"
26  "${CMAKE_CURRENT_BINARY_DIR}/sshServers.pvsc" @ONLY)
27 
28 set(ssh_server_tests
29  SimpleSSHServer
30  SimpleSSHServerAskPass
31  SimpleSSHServerTermExec
32  SimpleRCSSHServer
33  SSHServerPortForwarding
34  RCSSHServerPortForwarding
35  )
36 
37 foreach(tname IN LISTS ssh_server_tests)
38  configure_file (
39  "${tname}.xml.in"
40  "${CMAKE_CURRENT_BINARY_DIR}/${tname}.xml" @ONLY)
41 
42  list(APPEND TESTS_WITHOUT_BASELINES
43  ${CMAKE_CURRENT_BINARY_DIR}/${tname}.xml)
44  set(${tname}_DISABLE_CS TRUE)
45  set(${tname}_DISABLE_CRS TRUE)
46  # The SSH tests should not be run in parallel to avoid port collision
47  set(${tname}_FORCE_SERIAL TRUE)
48 endforeach()