summaryrefslogtreecommitdiffstats
path: root/Tests/Server/tc_buildsystem1.json
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-27 19:29:20 (GMT)
committerTobias Hunger <tobias.hunger@qt.io>2016-09-28 18:10:59 (GMT)
commit71a505870c1f5a4fc89a8ad4e4dc3bb008a35118 (patch)
treecbef01144873d1a80bd96344d20c52d48dbcb654 /Tests/Server/tc_buildsystem1.json
parent7b1e60f26e284e223be8638744ba3a3b0efdee63 (diff)
downloadCMake-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/tc_buildsystem1.json')
-rw-r--r--Tests/Server/tc_buildsystem1.json27
1 files changed, 27 insertions, 0 deletions
diff --git a/Tests/Server/tc_buildsystem1.json b/Tests/Server/tc_buildsystem1.json
new file mode 100644
index 0000000..08831b7
--- /dev/null
+++ b/Tests/Server/tc_buildsystem1.json
@@ -0,0 +1,27 @@
+[
+{ "message": "Testing globalSettings" },
+
+{ "handshake": {"major": 1, "sourceDirectory":"buildsystem1","buildDirectory":"buildsystem1"} },
+
+{ "message": "Configure:" },
+{ "send": { "type": "configure", "cookie":"CONFIG" } },
+{ "reply": { "type": "configure", "cookie":"CONFIG", "skipProgress":true } },
+
+{ "message": "Compute:" },
+{ "send": { "type": "compute", "cookie":"COMPUTE" } },
+{ "reply": { "type": "compute", "cookie":"COMPUTE", "skipProgress":true } },
+
+{ "message": "Codemodel:" },
+{ "send": { "type": "codemodel", "cookie":"CODEMODEL" } },
+{ "reply": { "type": "codemodel", "cookie":"CODEMODEL" } },
+
+{ "message": "CMake Inputs:"},
+{ "send": { "type": "cmakeInputs", "cookie":"INPUTS" } },
+{ "reply": { "type": "cmakeInputs", "cookie":"INPUTS" } },
+
+{ "message": "Cache:"},
+{ "send": { "type": "cache", "cookie":"CACHE" } },
+{ "reply": { "type": "cache", "cookie":"CACHE" } },
+
+{ "message": "Everything ok." }
+]