]> git.proxmox.com Git - spiceterm.git/commitdiff
remove test code
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 10 Sep 2013 10:14:45 +0000 (12:14 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 10 Sep 2013 10:14:45 +0000 (12:14 +0200)
Makefile
test_display_no_ssl.c [deleted file]

index 2a27efd5e8845f9bf38481620b9a531c5fe6dba8..a7a945d88fb185c6b93f6960c7403a9ce5a142f5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,16 @@
 
-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
diff --git a/test_display_no_ssl.c b/test_display_no_ssl.c
deleted file mode 100644 (file)
index 8eb66cf..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * 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;
-}