summaryrefslogtreecommitdiffstats
path: root/Tests/Server/tc_cache.json
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-06-21 19:26:09 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-08-13 21:20:11 (GMT)
commit9b3c5ccf1200e237c0bad3336235b9dde289f016 (patch)
tree190dd7de4056207246c0d8d1192b1117dc8d4f23 /Tests/Server/tc_cache.json
parent1df3875871af9aa3f144ab065479b98e255aca5a (diff)
downloadCMake-9b3c5ccf1200e237c0bad3336235b9dde289f016.zip
CMake-9b3c5ccf1200e237c0bad3336235b9dde289f016.tar.gz
CMake-9b3c5ccf1200e237c0bad3336235b9dde289f016.tar.bz2
Server: test cache after reconnect
Diffstat (limited to 'Tests/Server/tc_cache.json')
-rw-r--r--Tests/Server/tc_cache.json24
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/Server/tc_cache.json b/Tests/Server/tc_cache.json
new file mode 100644
index 0000000..74af6d9
--- /dev/null
+++ b/Tests/Server/tc_cache.json
@@ -0,0 +1,24 @@
+[
+{ "message": "Testing cache" },
+
+{ "message": "Cache after first handshake is empty:" },
+{ "handshake": {"major": 1, "sourceDirectory": "buildsystem1", "buildDirectory": "buildsystem1"} },
+{ "send": { "type": "cache" } },
+{ "validateCache": { "isEmpty": true } },
+
+{ "message": "Cache after configure is populated:" },
+{ "send": { "type": "configure" } },
+{ "reply": { "type": "configure", "skipProgress":true } },
+{ "send": { "type": "cache" } },
+{ "validateCache": { "isEmpty": false } },
+
+{ "message": "Handshake for existing cache requires buildDirectory only:" },
+{ "reconnect": {} },
+{ "handshake": {"major": 1, "sourceDirectory": "", "buildDirectory": "buildsystem1"} },
+
+{ "message": "Cache after reconnect is again populated:" },
+{ "send": { "type": "cache" } },
+{ "validateCache": { "isEmpty": false } },
+
+{ "message": "Everything ok." }
+]