diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-02-10 13:21:19 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-02-15 08:21:40 +0000 |
commit | 1652be1310f828343aa3f33dbe571fcadd0cc6d6 (patch) | |
tree | 178490e06c9e17c456f08c745319f9929649d808 /tests/manual/ssh | |
parent | 42f260747eee2440952f9753dfefff99ef43b346 (diff) | |
download | qt-creator-1652be1310f828343aa3f33dbe571fcadd0cc6d6.tar.gz |
Tests: Provide some cmake files for manual tests
Add another option to mark a test as manual and use this for some
existing.
Manual tests will not be added as a ctest, but they can still get
executed explicitly.
Beside this allow to use a condition when using add_qtc_test().
Change-Id: I03d5397db36c0a2c9ee506a4214ed68fae6ad6e7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'tests/manual/ssh')
-rw-r--r-- | tests/manual/ssh/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/ssh/sftpfsmodel/CMakeLists.txt | 18 | ||||
-rw-r--r-- | tests/manual/ssh/shell/CMakeLists.txt | 13 |
3 files changed, 33 insertions, 0 deletions
diff --git a/tests/manual/ssh/CMakeLists.txt b/tests/manual/ssh/CMakeLists.txt new file mode 100644 index 0000000000..91464d8317 --- /dev/null +++ b/tests/manual/ssh/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(sftpfsmodel) +add_subdirectory(shell) diff --git a/tests/manual/ssh/sftpfsmodel/CMakeLists.txt b/tests/manual/ssh/sftpfsmodel/CMakeLists.txt new file mode 100644 index 0000000000..3e6119cd91 --- /dev/null +++ b/tests/manual/ssh/sftpfsmodel/CMakeLists.txt @@ -0,0 +1,18 @@ +file(RELATIVE_PATH RELATIVE_TEST_PATH "${PROJECT_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}") +file(RELATIVE_PATH TEST_RELATIVE_LIBEXEC_PATH "/${RELATIVE_TEST_PATH}" "/${IDE_LIBEXEC_PATH}") + +add_qtc_test(tst_manual_sftpfsmodel + MANUALTEST + DEPENDS Utils QtcSsh Qt5::Widgets + INCLUDES "${PROJECT_SOURCE_DIR}/src/shared/modeltest" + DEFINES "TEST_RELATIVE_LIBEXEC_PATH=\"${TEST_RELATIVE_LIBEXEC_PATH}\"" + SOURCES + main.cpp + window.cpp window.h window.ui +) + +extend_qtc_test(tst_manual_sftpfsmodel + SOURCES_PREFIX "${PROJECT_SOURCE_DIR}/src/shared/modeltest/" + SOURCES + modeltest.cpp modeltest.h +) diff --git a/tests/manual/ssh/shell/CMakeLists.txt b/tests/manual/ssh/shell/CMakeLists.txt new file mode 100644 index 0000000000..f7748f2e96 --- /dev/null +++ b/tests/manual/ssh/shell/CMakeLists.txt @@ -0,0 +1,13 @@ +file(RELATIVE_PATH RELATIVE_TEST_PATH "${PROJECT_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}") +file(RELATIVE_PATH TEST_RELATIVE_LIBEXEC_PATH "/${RELATIVE_TEST_PATH}" "/${IDE_LIBEXEC_PATH}") + +add_qtc_test(tst_manual_shell + MANUALTEST + CONDITION UNIX + DEPENDS Utils QtcSsh Qt5::Network + DEFINES "TEST_RELATIVE_LIBEXEC_PATH=\"${TEST_RELATIVE_LIBEXEC_PATH}\"" + SOURCES + argumentscollector.cpp argumentscollector.h + main.cpp + shell.cpp shell.h +) |