[sapwood] get ready for the first rendering test case
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sapwood] get ready for the first rendering test case
- Date: Fri, 6 Aug 2010 12:04:38 +0000 (UTC)
commit 3a638a545515c49188cfbb17fbdb418fbf547d09
Author: Sven Herzberg <herzi gnome-de org>
Date: Wed Aug 4 14:05:39 2010 +0200
get ready for the first rendering test case
* engine/Makefile.am: add libsapwood-private.la (because libtool will
tell us that linking against modules is not portable if we try to link
the testcase against libsapwood.la)
* tests/Makefile.am: updated
* tests/rendering.c: add a skeleton for the first rendering test now
engine/Makefile.am | 25 +++++++++++++++----------
tests/Makefile.am | 5 +++++
tests/rendering.c | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 54 insertions(+), 10 deletions(-)
---
diff --git a/engine/Makefile.am b/engine/Makefile.am
index e1ad754..816e8b7 100644
--- a/engine/Makefile.am
+++ b/engine/Makefile.am
@@ -4,7 +4,10 @@ INCLUDES = $(GTK_CFLAGS) \
-I$(top_srcdir)/protocol
engine_LTLIBRARIES=libsapwood.la
-noinst_LTLIBRARIES=libsapwood-client.la
+noinst_LTLIBRARIES=\
+ libsapwood-client.la \
+ libsapwood-private.la \
+ $(NULL)
libsapwood_la_SOURCES=\
sapwood-main.c \
@@ -16,29 +19,31 @@ libsapwood_la_SOURCES=\
theme-image.h \
theme-pixbuf.c \
theme-pixbuf.h \
- sapwood-pixmap.c \
- sapwood-pixmap.h \
- sapwood-pixmap-priv.h \
$(NULL)
nodist_libsapwood_la_SOURCES=\
sapwood-paths.h \
$(NULL)
-
-libsapwood_client_la_SOURCES=\
- sapwood-client.c \
- sapwood-client.h \
- $(NULL)
-
libsapwood_la_LDFLAGS = -avoid-version -module -Wl,-z,defs
libsapwood_la_LIBADD=$(GTK_LIBS) \
libsapwood-client.la \
+ libsapwood-private.la \
$(NULL)
libsapwood_la_CFLAGS = -DG_LOG_DOMAIN=\"sapwood-engine\" $(AM_CFLAGS)
+libsapwood_client_la_SOURCES=\
+ sapwood-client.c \
+ sapwood-client.h \
+ $(NULL)
libsapwood_client_la_LIBADD=\
$(top_builddir)/protocol/libprotocol.la \
$(NULL)
+libsapwood_private_la_SOURCES=\
+ sapwood-pixmap.c \
+ sapwood-pixmap.h \
+ sapwood-pixmap-priv.h \
+ $(NULL)
+
sapwood-paths.h: Makefile
$(AM_V_GEN) echo "#define SAPWOOD_SERVER \"$(daemondir)/sapwood-server\"" > $@
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e81cbb0..b3f750c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,6 +23,11 @@ large_window_SOURCES=large-window.c
large_window_CPPFLAGS=$(AM_CPPFLAGS) -I$(top_srcdir)/engine -DTOP_SRCDIR=\""$(top_srcdir)"\"
large_window_LDADD=$(LDADD)
+TEST_PROGS+=rendering
+rendering_SOURCES=rendering.c
+rendering_CPPFLAGS=$(AM_CPPFLAGS) -I$(top_srcdir)/engine -DTOP_SRCDIR=\""$(top_srcdir)"\"
+rendering_LDADD=$(LDADD) ../engine/libsapwood-private.la
+
EXTRA_DIST+=\
sapwood-wrapper \
$(NULL)
diff --git a/tests/rendering.c b/tests/rendering.c
new file mode 100644
index 0000000..fc4350b
--- /dev/null
+++ b/tests/rendering.c
@@ -0,0 +1,34 @@
+/* This file is part of sapwood
+ *
+ * Copyright (C) 2010 Sven Herzberg
+ *
+ * This work is provided "as is"; redistribution and modification
+ * in whole or in part, in any medium, physical or electronic is
+ * permitted without restriction.
+ *
+ * This work is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * In no event shall the authors or contributors be liable for any
+ * direct, indirect, incidental, special, exemplary, or consequential
+ * damages (including, but not limited to, procurement of substitute
+ * goods or services; loss of use, data, or profits; or business
+ * interruption) however caused and on any theory of liability, whether
+ * in contract, strict liability, or tort (including negligence or
+ * otherwise) arising in any way out of the use of this software, even
+ * if advised of the possibility of such damage.
+ */
+
+#include <sapwood-pixmap.h>
+
+int
+main (int argc,
+ char**argv)
+{
+ gtk_test_init (&argc, &argv, NULL);
+
+ return g_test_run ();
+}
+
+/* vim:set et sw=2 cino=t0,f0,(0,{s,>2s,n-1s,^-1s,e2s: */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]