Install gdk tests

This commit is contained in:
Matthias Clasen 2013-05-15 00:14:18 -04:00
parent c4f0ff9d77
commit 3a414e0ace
5 changed files with 38 additions and 0 deletions

View File

@ -39,4 +39,30 @@ CLEANFILES = \
cairosurface.png \ cairosurface.png \
gdksurface.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 -include $(top_srcdir)/git.mk

View File

@ -0,0 +1,3 @@
[Test]
Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/display"
Type=session

View File

@ -0,0 +1,3 @@
[Test]
Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/encoding"
Type=session

View File

@ -0,0 +1,3 @@
[Test]
Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/keysyms"
Type=session

3
gdk/tests/rgba.test.in Normal file
View File

@ -0,0 +1,3 @@
[Test]
Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/rgba"
Type=session