summaryrefslogtreecommitdiffstats
path: root/server/tests/test_display_streaming.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-01-08 16:06:15 +0200
committerAlon Levy <alevy@redhat.com>2011-01-10 14:11:37 +0200
commit293f5f0df8b22e93f2358824309cdd0f849d96a6 (patch)
tree2117f28b0292293ecda917912d37b4453968b116 /server/tests/test_display_streaming.c
parent2c16ef8f267c7f9f53901cb6dd477e0b63429143 (diff)
downloadspice-293f5f0df8b22e93f2358824309cdd0f849d96a6.tar.gz
spice-293f5f0df8b22e93f2358824309cdd0f849d96a6.tar.xz
spice-293f5f0df8b22e93f2358824309cdd0f849d96a6.zip
server/tests: split test_display_no_ssl to test_display_base, add streaming test
Diffstat (limited to 'server/tests/test_display_streaming.c')
-rw-r--r--server/tests/test_display_streaming.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/server/tests/test_display_streaming.c b/server/tests/test_display_streaming.c
new file mode 100644
index 00000000..fdb12067
--- /dev/null
+++ b/server/tests/test_display_streaming.c
@@ -0,0 +1,27 @@
+/* Do repeated updates to the same rectangle to trigger stream creation.
+ *
+ * TODO: check that stream actually starts programatically (maybe stap?)
+ * TODO: stop updating same rect, check (prog) that stream stops
+ */
+
+#include "test_display_base.h"
+
+int simple_commands[] = {
+ SIMPLE_DRAW,
+ SIMPLE_UPDATE,
+};
+
+SpiceCoreInterface *core;
+SpiceServer *server;
+
+int main()
+{
+ core = basic_event_loop_init();
+ server = test_init(core);
+ spice_server_set_streaming_video(server, SPICE_STREAM_VIDEO_ALL);
+ test_add_display_interface(server);
+ test_set_simple_command_list(simple_commands, COUNT(simple_commands));
+ basic_event_loop_mainloop();
+ return 0;
+}
+