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 "
4  "sure that the machine running the test has a SSH server running on port "
5  "2222, its own ssh public key as an authorized_keys, that 127.0.0.1 is in "
6  "the known_hosts file and that /usr/bin/xterm is available. In case of "
7  "failing tests, pvserver logs are available in "
8  "${CMAKE_CURRENT_BINARY_DIR}/sshServer-*.log")
9 
10 configure_file (
11  "${CMAKE_CURRENT_SOURCE_DIR}/server.sh.in"
12  "${CMAKE_CURRENT_BINARY_DIR}/server.sh" @ONLY)
13 configure_file (
14  "${CMAKE_CURRENT_SOURCE_DIR}/server_rc.sh.in"
15  "${CMAKE_CURRENT_BINARY_DIR}/server_rc.sh" @ONLY)
16 
17 configure_file (
18  "${CMAKE_CURRENT_SOURCE_DIR}/sshServers.pvsc.in"
19  "${CMAKE_CURRENT_BINARY_DIR}/sshServers.pvsc" @ONLY)
20 
21 set(ssh_server_tests
22  SimpleSSHServer
23  SimpleSSHServerAskPass
24  SimpleSSHServerTermExec
25  SimpleRCSSHServer
26  SSHServerPortForwarding
27  RCSSHServerPortForwarding
28  RCSSHServerPortForwardingOption
29  )
30 
31 foreach(tname IN LISTS ssh_server_tests)
32  configure_file (
33  "${tname}.xml.in"
34  "${CMAKE_CURRENT_BINARY_DIR}/${tname}.xml" @ONLY)
35 
36  list(APPEND TESTS_WITHOUT_BASELINES
37  ${CMAKE_CURRENT_BINARY_DIR}/${tname}.xml)
38  set(${tname}_DISABLE_CS TRUE)
39  set(${tname}_DISABLE_CRS TRUE)
40  # The SSH tests should not be run in parallel to avoid port collision
41  set(${tname}_FORCE_SERIAL TRUE)
42 endforeach()