]>
git.proxmox.com Git - spiceterm.git/blob - test_display_no_ssl.c
4a7babf89a03165614bcbcec1f0481df8995944e
2 * Test ground for developing specific tests.
4 * Any specific test can start of from here and set the server to the
5 * specific required state, and create specific operations or reuse
6 * existing ones in the test_display_base supplied queue.
10 #include "test_display_base.h"
12 SpiceCoreInterface
*core
;
13 SpiceTimer
*ping_timer
;
15 void show_channels(SpiceServer
*server
);
19 void pinger(void *opaque
)
21 // show_channels is not thread safe - fails if disconnections / connections occur
22 //show_channels(server);
24 core
->timer_start(ping_timer
, ping_ms
);
27 int simple_commands
[] = {
28 //SIMPLE_CREATE_SURFACE,
30 //SIMPLE_DESTROY_SURFACE,
41 core
= basic_event_loop_init();
42 test
= test_new(core
);
43 //spice_server_set_image_compression(server, SPICE_IMAGE_COMPRESS_OFF);
44 test_add_display_interface(test
);
45 test_add_agent_interface(test
->server
);
46 test_set_simple_command_list(test
, simple_commands
, COUNT(simple_commands
));
48 ping_timer
= core
->timer_add(pinger
, NULL
);
49 core
->timer_start(ping_timer
, ping_ms
);
51 basic_event_loop_mainloop();