-PROGRAMS=test_display_no_ssl spiceterm
+PROGRAMS=spiceterm
HEADERS=test_display_base.h basic_event_loop.h glyphs.h spiceterm.h
SOURCES=test_display_base.c basic_event_loop.c
all: ${PROGRAMS}
-test_display_no_ssl: ${SOURCES} ${HEADERS} test_display_no_ssl.c
- gcc ${SOURCES} test_display_no_ssl.c -o $@ $(shell pkg-config --cflags --libs gthread-2.0,spice-protocol,spice-server)
-
spiceterm: ${SOURCES} ${HEADERS} spiceterm.c
gcc ${SOURCES} spiceterm.c -o $@ -lutil $(shell pkg-config --cflags gdk-3.0) $(shell pkg-config --cflags --libs gthread-2.0,spice-protocol,spice-server)
-.PHONY: test1
-test1: test_display_no_ssl
- ./test_display_no_ssl & remote-viewer spice://localhost:5912
-
-.PHONY: test2
-test2: spiceterm
+.PHONY: test
+test: spiceterm
./spiceterm & remote-viewer spice://localhost:5912
.PHONY: distclean
+++ /dev/null
-/**
- * Test ground for developing specific tests.
- *
- * Any specific test can start of from here and set the server to the
- * specific required state, and create specific operations or reuse
- * existing ones in the test_display_base supplied queue.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include "test_display_base.h"
-
-SpiceCoreInterface *core;
-SpiceTimer *ping_timer;
-
-int ping_ms = 1000;
-
-void pinger(void *opaque)
-{
- printf("TEST PINGER\n");
-
- core->timer_start(ping_timer, ping_ms);
-}
-
-int main(void)
-{
- Test *test;
-
- core = basic_event_loop_init();
- test = test_new(core);
- //spice_server_set_image_compression(server, SPICE_IMAGE_COMPRESS_OFF);
- test_add_display_interface(test);
-
- test_add_agent_interface(test->server);
-
- test_add_keyboard_interface(test);
-
- //ping_timer = core->timer_add(pinger, NULL);
- //core->timer_start(ping_timer, ping_ms);
-
- basic_event_loop_mainloop();
-
- return 0;
-}