[Spice-commits] server/tests

Frediano Ziglio fziglio at kemper.freedesktop.org
Wed May 18 13:57:38 UTC 2016


 server/tests/Makefile.am |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 1be06f188e79fd5ebcc1a2084b4588eb0203398e
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sun May 15 17:12:47 2016 +0100

    make spice-server-replay use dynamic spice-server library
    
    spice-server-replay is built with the same settings as tests.
    Currently the tests links to a convenience spice-server library.
    A convenience library is a static library build with object file
    for a dynamic library.
    This make all tests contain all spice-server library code and not
    linking to the spice-server dynamic library (the .so).
    It's not a problem for most tests however this make impossible for
    spice-server-replay utility to be used with a dynamic spice-server
    library (you have to recompile it including the library).
    This is a pity as you could for instance compare your system
    library behavior with the library you are developing.
    Also if we decide to install in a future the utility for testing
    we would have lot of code duplication.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am
index b3e9740..91edd7c 100644
--- a/server/tests/Makefile.am
+++ b/server/tests/Makefile.am
@@ -67,7 +67,18 @@ noinst_LIBRARIES += \
 	libstat_test4.a \
 	$(NULL)
 
-spice_server_replay_SOURCES = replay.c
+spice_server_replay_SOURCES = replay.c		\
+	../event-loop.c				\
+	basic_event_loop.c			\
+	basic_event_loop.h
+
+spice_server_replay_LDADD =					\
+	$(top_builddir)/spice-common/common/libspice-common.la	\
+	$(top_builddir)/server/libspice-server.la		\
+	$(GLIB2_LIBS)						\
+	$(GOBJECT2_LIBS)					\
+	$(SPICE_NONPKGCONFIG_LIBS)		                \
+	$(NULL)
 
 stat_test_SOURCES = stat-main.c
 stat_test_LDADD = \


More information about the Spice-commits mailing list