Add some explanation about how to run this test

Change-Id: I748e13db89dc79bbf11f663ce6914513d2912766
Reviewed-by: Alp Öz <aoz@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2021-09-13 10:09:26 +02:00
parent 66a7f8d527
commit 4b81483b4d

View File

@@ -48,6 +48,19 @@
#include <cstdlib> #include <cstdlib>
/*
In order to run this test properly it requires some setup (example for fedora):
1. Run a server:
systemctl start sshd
2. Create your own ssh key (needed only once). For fedora it needs ecdsa type:
ssh-keygen -t ecdsa
3. Make your public key known to the server (needed only once):
ssh-copy-id -i [full path to your public key]
4. Set the env variables before executing test:
QTC_SSH_TEST_HOST=127.0.0.1
QTC_SSH_TEST_KEYFILE=[full path to your private key]
QTC_SSH_TEST_USER=[your user name]
*/
using namespace QSsh; using namespace QSsh;
static QString getHostFromEnvironment() static QString getHostFromEnvironment()