]>
Commit | Line | Data |
---|---|---|
cc04455b DM |
1 | /** |
2 | * Test ground for developing specific tests. | |
3 | * | |
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. | |
7 | */ | |
8 | ||
9 | #include <stdlib.h> | |
1d7f2da4 | 10 | #include <stdio.h> |
cc04455b DM |
11 | #include "test_display_base.h" |
12 | ||
13 | SpiceCoreInterface *core; | |
14 | SpiceTimer *ping_timer; | |
15 | ||
1d7f2da4 | 16 | int ping_ms = 1000; |
cc04455b DM |
17 | |
18 | void pinger(void *opaque) | |
19 | { | |
1d7f2da4 | 20 | printf("TEST PINGER\n"); |
cc04455b DM |
21 | |
22 | core->timer_start(ping_timer, ping_ms); | |
23 | } | |
24 | ||
cc04455b DM |
25 | int main(void) |
26 | { | |
27 | Test *test; | |
28 | ||
29 | core = basic_event_loop_init(); | |
30 | test = test_new(core); | |
31 | //spice_server_set_image_compression(server, SPICE_IMAGE_COMPRESS_OFF); | |
32 | test_add_display_interface(test); | |
474762d8 | 33 | |
cc04455b | 34 | test_add_agent_interface(test->server); |
474762d8 | 35 | |
8a22eb4f | 36 | test_add_keyboard_interface(test); |
474762d8 | 37 | |
52983d31 DM |
38 | //ping_timer = core->timer_add(pinger, NULL); |
39 | //core->timer_start(ping_timer, ping_ms); | |
cc04455b DM |
40 | |
41 | basic_event_loop_mainloop(); | |
42 | ||
43 | return 0; | |
44 | } |