diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-27 19:29:20 (GMT) |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-28 18:10:59 (GMT) |
commit | 71a505870c1f5a4fc89a8ad4e4dc3bb008a35118 (patch) | |
tree | cbef01144873d1a80bd96344d20c52d48dbcb654 /Tests/Server/buildsystem1 | |
parent | 7b1e60f26e284e223be8638744ba3a3b0efdee63 (diff) | |
download | CMake-71a505870c1f5a4fc89a8ad4e4dc3bb008a35118.zip CMake-71a505870c1f5a4fc89a8ad4e4dc3bb008a35118.tar.gz CMake-71a505870c1f5a4fc89a8ad4e4dc3bb008a35118.tar.bz2 |
server-mode: Add project data for unit tests
Do some basic unit tests for "codemodel", "cmakeInputs" and "cache"
commands of the cmake server.
This just calls the commands right now and makes sure the server
thinks it can reply to the request. The data itself is currently not
validated.
Diffstat (limited to 'Tests/Server/buildsystem1')
-rw-r--r-- | Tests/Server/buildsystem1/CMakeLists.txt | 22 | ||||
-rw-r--r-- | Tests/Server/buildsystem1/foo.cpp | 5 | ||||
-rw-r--r-- | Tests/Server/buildsystem1/main.cpp | 5 | ||||
-rw-r--r-- | Tests/Server/buildsystem1/subdir/CMakeLists.txt | 5 | ||||
-rw-r--r-- | Tests/Server/buildsystem1/subdir/empty.cpp | 5 |
5 files changed, 42 insertions, 0 deletions
diff --git a/Tests/Server/buildsystem1/CMakeLists.txt b/Tests/Server/buildsystem1/CMakeLists.txt new file mode 100644 index 0000000..d690472 --- /dev/null +++ b/Tests/Server/buildsystem1/CMakeLists.txt @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 3.4) + +project(buildsystem2) + +set(var1 123) + +set(var2 345) + +add_executable(main main.cpp) + +add_executable(m_other main.cpp) + +add_library(foo foo.cpp) + +function(f1) +endfunction() + +set(var3 345) + +add_library(someImportedLib UNKNOWN IMPORTED) + +add_subdirectory(subdir) diff --git a/Tests/Server/buildsystem1/foo.cpp b/Tests/Server/buildsystem1/foo.cpp new file mode 100644 index 0000000..7f39d71 --- /dev/null +++ b/Tests/Server/buildsystem1/foo.cpp @@ -0,0 +1,5 @@ + +int foo() +{ + return 0; +} diff --git a/Tests/Server/buildsystem1/main.cpp b/Tests/Server/buildsystem1/main.cpp new file mode 100644 index 0000000..766b775 --- /dev/null +++ b/Tests/Server/buildsystem1/main.cpp @@ -0,0 +1,5 @@ + +int main() +{ + return 0; +} diff --git a/Tests/Server/buildsystem1/subdir/CMakeLists.txt b/Tests/Server/buildsystem1/subdir/CMakeLists.txt new file mode 100644 index 0000000..9157312 --- /dev/null +++ b/Tests/Server/buildsystem1/subdir/CMakeLists.txt @@ -0,0 +1,5 @@ +set(bar4 something) + +set(bar5 more) + +add_executable(ooo empty.cpp) diff --git a/Tests/Server/buildsystem1/subdir/empty.cpp b/Tests/Server/buildsystem1/subdir/empty.cpp new file mode 100644 index 0000000..7f39d71 --- /dev/null +++ b/Tests/Server/buildsystem1/subdir/empty.cpp @@ -0,0 +1,5 @@ + +int foo() +{ + return 0; +} |