[gtk+] Install gdk tests



commit 3a414e0acef4ca466d56d224eb1df24a24486f91
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 15 00:14:18 2013 -0400

    Install gdk tests

 gdk/tests/Makefile.am      |   26 ++++++++++++++++++++++++++
 gdk/tests/display.test.in  |    3 +++
 gdk/tests/encoding.test.in |    3 +++
 gdk/tests/keysyms.test.in  |    3 +++
 gdk/tests/rgba.test.in     |    3 +++
 5 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/gdk/tests/Makefile.am b/gdk/tests/Makefile.am
index 49a7dca..bd9a3b3 100644
--- a/gdk/tests/Makefile.am
+++ b/gdk/tests/Makefile.am
@@ -39,4 +39,30 @@ CLEANFILES = \
        cairosurface.png        \
        gdksurface.png
 
+if BUILDOPT_INSTALL_TESTS
+insttestdir=$(pkglibexecdir)/installed-tests
+insttest_PROGRAMS = $(TEST_PROGS)
+
+substitutions = \
+       -e s,@pkglibexecdir\@,$(pkglibexecdir),g \
+       $(NULL)
+
+test_in_files = \
+       rgba.test.in \
+       encoding.test.in \
+       display.test.in \
+       keysyms.test.in \
+       $(NULL)
+
+test_files = $(test_in_files:.test.in=.test)
+
+$(test_files): %.test: %.test.in
+       $(AM_V_GEN) sed $(substitutions) $< > $  tmp && mv $  tmp $@
+
+EXTRA_DIST += $(test_in_files)
+
+testmetadir = $(datadir)/installed-tests/$(PACKAGE)
+testmeta_DATA = $(test_files)
+endif
+
 -include $(top_srcdir)/git.mk
diff --git a/gdk/tests/display.test.in b/gdk/tests/display.test.in
new file mode 100644
index 0000000..9875c68
--- /dev/null
+++ b/gdk/tests/display.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/display"
+Type=session
diff --git a/gdk/tests/encoding.test.in b/gdk/tests/encoding.test.in
new file mode 100644
index 0000000..06a329d
--- /dev/null
+++ b/gdk/tests/encoding.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/encoding"
+Type=session
diff --git a/gdk/tests/keysyms.test.in b/gdk/tests/keysyms.test.in
new file mode 100644
index 0000000..2f1ce97
--- /dev/null
+++ b/gdk/tests/keysyms.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/keysyms"
+Type=session
diff --git a/gdk/tests/rgba.test.in b/gdk/tests/rgba.test.in
new file mode 100644
index 0000000..5fd3155
--- /dev/null
+++ b/gdk/tests/rgba.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/rgba"
+Type=session


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]