[gtk+] testsuite: install tests in gtk/
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testsuite: install tests in gtk/
- Date: Thu, 16 May 2013 17:48:40 +0000 (UTC)
commit e20d48a5d3b571b2ce936b15406c415c0381d187
Author: Benjamin Otte <otte redhat com>
Date: Thu May 16 19:44:23 2013 +0200
testsuite: install tests in gtk/
testsuite/gtk/Makefile.am | 54 ++++++++++++++++++++++++++++++
testsuite/gtk/accel.test.in | 3 ++
testsuite/gtk/accessible.test.in | 3 ++
testsuite/gtk/action.test.in | 3 ++
testsuite/gtk/bitmask.test.in | 3 ++
testsuite/gtk/builder.test.in | 3 ++
testsuite/gtk/cellarea.test.in | 3 ++
testsuite/gtk/crossingevents.test.in | 3 ++
testsuite/gtk/defaultvalue.test.in | 3 ++
testsuite/gtk/entry.test.in | 3 ++
testsuite/gtk/expander.test.in | 3 ++
testsuite/gtk/filechooser.test.in | 3 ++
testsuite/gtk/floating.test.in | 3 ++
testsuite/gtk/grid.test.in | 3 ++
testsuite/gtk/gtkmenu.test.in | 3 ++
testsuite/gtk/keyhash.test.in | 3 ++
testsuite/gtk/object.test.in | 3 ++
testsuite/gtk/objects-finalize.test.in | 3 ++
testsuite/gtk/papersize.test.in | 3 ++
testsuite/gtk/rbtree.test.in | 3 ++
testsuite/gtk/recentmanager.test.in | 3 ++
testsuite/gtk/regression-tests.test.in | 3 ++
testsuite/gtk/stylecontext.test.in | 3 ++
testsuite/gtk/templates.test.in | 3 ++
testsuite/gtk/testing.test.in | 3 ++
testsuite/gtk/textbuffer.test.in | 3 ++
testsuite/gtk/textiter.test.in | 3 ++
testsuite/gtk/treemodel.test.in | 3 ++
testsuite/gtk/treepath.test.in | 3 ++
testsuite/gtk/treeview-scrolling.test.in | 3 ++
testsuite/gtk/treeview.test.in | 3 ++
testsuite/gtk/window.test.in | 3 ++
32 files changed, 147 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/Makefile.am b/testsuite/gtk/Makefile.am
index 90322d1..41031fc 100644
--- a/testsuite/gtk/Makefile.am
+++ b/testsuite/gtk/Makefile.am
@@ -1,5 +1,7 @@
include $(top_srcdir)/Makefile.decl
+NULL=
+
SUBDIRS =
AM_CPPFLAGS = \
@@ -24,14 +26,18 @@ progs_ldadd = \
$(top_builddir)/gdk/libgdk-3.la \
$(GTK_DEP_LIBS)
+test_in_files =
+
noinst_PROGRAMS = $(TEST_PROGS)
TEST_PROGS += testing
+test_in_files += testing.test.in
testing_SOURCES = testing.c
testing_LDADD = $(progs_ldadd)
TEST_PROGS += treemodel
+test_in_files += treemodel.test.in
treemodel_SOURCES = \
treemodel.h \
treemodel.c \
@@ -45,26 +51,32 @@ treemodel_SOURCES = \
treemodel_LDADD = $(progs_ldadd)
TEST_PROGS += treeview
+test_in_files += treeview.test.in
treeview_SOURCES = treeview.c
treeview_LDADD = $(progs_ldadd)
TEST_PROGS += treeview-scrolling
+test_in_files += treeview-scrolling.test.in
treeview_scrolling_SOURCES = treeview-scrolling.c
treeview_scrolling_LDADD = $(progs_ldadd) -lm
TEST_PROGS += recentmanager
+test_in_files += recentmanager.test.in
recentmanager_SOURCES = recentmanager.c
recentmanager_LDADD = $(progs_ldadd)
TEST_PROGS += floating
+test_in_files += floating.test.in
floating_SOURCES = floating.c
floating_LDADD = $(progs_ldadd)
TEST_PROGS += accel
+test_in_files += accel.test.in
accel_SOURCES = accel.c
accel_LDADD = $(progs_ldadd)
#TEST_PROGS += object
+#test_in_files += object.test.in
#object_SOURCES = object.c
#object_LDADD = $(progs_ldadd)
@@ -72,73 +84,90 @@ accel_LDADD = $(progs_ldadd)
# on a naked X server creates slightly different event
# sequences than running on a normal desktop
# TEST_PROGS += crossingevents
+#test_in_files += crossingevents.test.in
#crossingevents_SOURCES = crossingevents.c
#crossingevents_LDADD = $(progs_ldadd)
TEST_PROGS += filechooser
+test_in_files += filechooser.test.in
filechooser_SOURCES = filechooser.c
filechooser_LDADD = $(progs_ldadd)
TEST_PROGS += builder
+test_in_files += builder.test.in
builder_SOURCES = builder.c
builder_LDADD = $(progs_ldadd)
builder_LDFLAGS = -export-dynamic
TEST_PROGS += templates
+test_in_files += templates.test.in
templates_SOURCES = templates.c
templates_LDADD = $(progs_ldadd)
if OS_UNIX
#TEST_PROGS += defaultvalue
+#test_in_files += defaultvalue.test.in
#defaultvalue_SOURCES = defaultvalue.c
#defaultvalue_LDADD = $(progs_ldadd)
endif
TEST_PROGS += textbuffer
+test_in_files += textbuffer.test.in
textbuffer_SOURCES = textbuffer.c
textbuffer_LDADD = $(progs_ldadd)
TEST_PROGS += textiter
+test_in_files += textiter.test.in
textiter_SOURCES = textiter.c
textiter_LDADD = $(progs_ldadd)
TEST_PROGS += expander
+test_in_files += expander.test.in
expander_SOURCES = expander.c
expander_LDADD = $(progs_ldadd)
TEST_PROGS += action
+test_in_files += action.test.in
action_SOURCES = action.c
action_LDADD = $(progs_ldadd)
TEST_PROGS += stylecontext
+test_in_files += stylecontext.test.in
stylecontext_SOURCES = stylecontext.c
stylecontext_LDADD = $(progs_ldadd)
TEST_PROGS += papersize
+test_in_files += papersize.test.in
papersize_SOURCES = papersize.c
papersize_LDADD = $(progs_ldadd)
TEST_PROGS += cellarea
+test_in_files += cellarea.test.in
cellarea_SOURCES = cellarea.c
cellarea_LDADD = $(progs_ldadd)
TEST_PROGS += treepath
+test_in_files += treepath.test.in
treepath_SOURCES = treepath.c
treepath_LDADD = $(progs_ldadd)
TEST_PROGS += accessible
+test_in_files += accessible.test.in
accessible_SOURCES = accessible.c
accessible_LDADD = $(progs_ldadd)
TEST_PROGS += entry
+test_in_files += entry.test.in
entry_SOURCES = entry.c
entry_LDADD = $(progs_ldadd)
TEST_PROGS += grid
+test_in_files += grid.test.in
grid_SOURCES = grid.c
grid_LDADD = $(progs_ldadd)
TEST_PROGS += rbtree
+test_in_files += rbtree.test.in
rbtree_CFLAGS = -DGTK_COMPILATION -UG_ENABLE_DEBUG
rbtree_SOURCES = rbtree.c \
$(top_srcdir)/gtk/gtkrbtree.h \
@@ -146,6 +175,7 @@ rbtree_SOURCES = rbtree.c \
rbtree_LDADD = $(GTK_DEP_LIBS)
TEST_PROGS += bitmask
+test_in_files += bitmask.test.in
bitmask_CFLAGS = -DGTK_COMPILATION -UG_ENABLE_DEBUG
bitmask_SOURCES = bitmask.c \
$(top_srcdir)/gtk/gtkbitmaskprivate.h \
@@ -154,10 +184,12 @@ bitmask_SOURCES = bitmask.c \
bitmask_LDADD = $(GTK_DEP_LIBS)
TEST_PROGS += regression-tests
+test_in_files += regression-tests.test.in
regression_tests_SOURCES = regression-tests.c
regression_tests_LDADD = $(progs_ldadd)
TEST_PROGS += keyhash
+test_in_files += keyhash.test.in
keyhash_SOURCES = keyhash.c \
$(top_srcdir)/gtk/gtkkeyhash.c \
$(top_srcdir)/gtk/gtkkeyhash.h \
@@ -173,15 +205,18 @@ keyhash_CFLAGS = -DGTK_COMPILATION \
-DGTK_SYSCONFDIR=\"$(sysconfdir)\"
TEST_PROGS += gtkmenu
+test_in_files += gtkmenu.test.in
gtkmenu_SOURCES = gtkmenu.c
gtkmenu_LDADD = $(progs_ldadd)
TEST_PROGS += objects-finalize
+test_in_files += objects-finalize.test.in
objects_finalize_SOURCES = objects-finalize.c
objects_finalize_LDADD = $(progs_ldadd)
TEST_PROGS += window
+test_in_files += window.test.in
window_SOURCES = window.c
window_LDADD = $(progs_ldadd)
@@ -189,4 +224,23 @@ EXTRA_DIST += \
file-chooser-test-dir/empty \
file-chooser-test-dir/text.txt
+if BUILDOPT_INSTALL_TESTS
+insttestdir=$(pkglibexecdir)/installed-tests
+insttest_PROGRAMS = $(TEST_PROGS)
+
+substitutions = \
+ -e s,@pkglibexecdir\@,$(pkglibexecdir),g \
+ $(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/testsuite/gtk/accel.test.in b/testsuite/gtk/accel.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/accel.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/accessible.test.in b/testsuite/gtk/accessible.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/accessible.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/action.test.in b/testsuite/gtk/action.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/action.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/bitmask.test.in b/testsuite/gtk/bitmask.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/bitmask.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/builder.test.in b/testsuite/gtk/builder.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/builder.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/cellarea.test.in b/testsuite/gtk/cellarea.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/cellarea.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/crossingevents.test.in b/testsuite/gtk/crossingevents.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/crossingevents.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/defaultvalue.test.in b/testsuite/gtk/defaultvalue.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/defaultvalue.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/entry.test.in b/testsuite/gtk/entry.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/entry.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/expander.test.in b/testsuite/gtk/expander.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/expander.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/filechooser.test.in b/testsuite/gtk/filechooser.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/filechooser.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/floating.test.in b/testsuite/gtk/floating.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/floating.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/grid.test.in b/testsuite/gtk/grid.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/grid.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/gtkmenu.test.in b/testsuite/gtk/gtkmenu.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/gtkmenu.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/keyhash.test.in b/testsuite/gtk/keyhash.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/keyhash.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/object.test.in b/testsuite/gtk/object.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/object.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/objects-finalize.test.in b/testsuite/gtk/objects-finalize.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/objects-finalize.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/papersize.test.in b/testsuite/gtk/papersize.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/papersize.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/rbtree.test.in b/testsuite/gtk/rbtree.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/rbtree.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/recentmanager.test.in b/testsuite/gtk/recentmanager.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/recentmanager.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/regression-tests.test.in b/testsuite/gtk/regression-tests.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/regression-tests.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/stylecontext.test.in b/testsuite/gtk/stylecontext.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/stylecontext.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/templates.test.in b/testsuite/gtk/templates.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/templates.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/testing.test.in b/testsuite/gtk/testing.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/testing.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/textbuffer.test.in b/testsuite/gtk/textbuffer.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/textbuffer.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/textiter.test.in b/testsuite/gtk/textiter.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/textiter.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/treemodel.test.in b/testsuite/gtk/treemodel.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/treemodel.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/treepath.test.in b/testsuite/gtk/treepath.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/treepath.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/treeview-scrolling.test.in b/testsuite/gtk/treeview-scrolling.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/treeview-scrolling.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/treeview.test.in b/testsuite/gtk/treeview.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/treeview.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
diff --git a/testsuite/gtk/window.test.in b/testsuite/gtk/window.test.in
new file mode 100644
index 0000000..3b650c8
--- /dev/null
+++ b/testsuite/gtk/window.test.in
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/NAME"
+Type=session
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]