forked from qt-creator/qt-creator
Make the test depend on environment variables and give some hint how to run the test correctly. Beside this make the test work on Windows and share the setup with ssh unit test. Change-Id: I6bbf1ec863449512646ca2c51d13fec537beedbc Reviewed-by: hjk <hjk@qt.io>
18 lines
583 B
QML
18 lines
583 B
QML
import qbs.FileInfo
|
|
|
|
QtcAutotest {
|
|
name: "SSH autotest"
|
|
Depends { name: "QtcSsh" }
|
|
Depends { name: "Utils" }
|
|
files: "tst_ssh.cpp"
|
|
cpp.defines: {
|
|
var defines = base;
|
|
var absLibExecPath = FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix,
|
|
qtc.ide_libexec_path);
|
|
var relLibExecPath = FileInfo.relativePath(destinationDirectory, absLibExecPath);
|
|
defines.push('TEST_RELATIVE_LIBEXEC_PATH="' + relLibExecPath + '"');
|
|
defines.push("WITH_TESTS");
|
|
return defines;
|
|
}
|
|
}
|