Make sure we dist all testsuite ingredients

This commit is contained in:
Matthias Clasen 2013-05-28 18:08:42 -04:00
parent 92823b2201
commit 0d768ee8a8
6 changed files with 38 additions and 35 deletions

View File

@ -75,6 +75,18 @@ testdata = \
combos.ui combos.txt \
$(NULL)
test_in_files = \
a11ytests.test.in \
a11ychildren.test.in \
a11ytree.test.in \
a11yvalue.test.in \
a11yderive.test.in \
a11ytext.test.in \
a11yutil.test.in \
$(NULL)
EXTRA_DIST += $(test_in_files)
if BUILDOPT_INSTALL_TESTS
insttestdir=$(pkglibexecdir)/installed-tests
insttest_PROGRAMS = $(TEST_PROGS)
@ -86,23 +98,11 @@ substitutions = \
-e s,@pkglibexecdir\@,$(pkglibexecdir),g \
$(NULL)
test_in_files = \
a11ytests.test.in \
a11ychildren.test.in \
a11ytree.test.in \
a11yvalue.test.in \
a11yderive.test.in \
a11ytext.test.in \
a11yutil.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

View File

@ -22,9 +22,11 @@ LDADD = \
$(top_builddir)/gtk/libgtk-3.la \
$(GTK_DEP_LIBS)
TEST_PROGS += api
TEST_PROGS += api
test_in_files += api.test.in
EXTRA_DIST += $(test_in_files)
if BUILDOPT_INSTALL_TESTS
insttestdir=$(pkglibexecdir)/installed-tests/css
insttest_PROGRAMS = $(TEST_PROGS)
@ -38,8 +40,6 @@ 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)/css
testmeta_DATA = $(test_files)
endif

View File

@ -348,6 +348,8 @@ test_data = \
widget-style-property.css \
$(NULL)
EXTRA_DIST += $(test_in_files) $(test_data)
if BUILDOPT_INSTALL_TESTS
insttestdir=$(pkglibexecdir)/installed-tests/css/parser
insttest_PROGRAMS = $(TEST_PROGS)

View File

@ -35,9 +35,19 @@ TEST_PROGS += keysyms
keysyms_SOURCES = keysyms.c
keysyms_LDADD = $(progs_ldadd)
CLEANFILES = \
CLEANFILES = \
cairosurface.png \
gdksurface.png
gdksurface.png \
$(NULL)
test_in_files = \
rgba.test.in \
encoding.test.in \
display.test.in \
keysyms.test.in \
$(NULL)
EXTRA_DIST += $(test_in_files)
if BUILDOPT_INSTALL_TESTS
insttestdir=$(pkglibexecdir)/installed-tests
@ -47,20 +57,11 @@ 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

View File

@ -1,8 +1,6 @@
include $(top_srcdir)/Makefile.decl
NULL=
SUBDIRS =
NULL =
AM_CPPFLAGS = \
-I$(top_srcdir) \
@ -221,8 +219,10 @@ window_SOURCES = window.c
window_LDADD = $(progs_ldadd)
EXTRA_DIST += \
$(test_in_files) \
file-chooser-test-dir/empty \
file-chooser-test-dir/text.txt
file-chooser-test-dir/text.txt \
$(NULL)
if BUILDOPT_INSTALL_TESTS
insttestdir=$(pkglibexecdir)/installed-tests
@ -237,8 +237,6 @@ 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

View File

@ -282,6 +282,11 @@ testdata = \
window-default-size.ui \
$(NULL)
EXTRA_DIST += \
(testdata) \
reftests.test.in \
$(NULL)
if BUILDOPT_INSTALL_TESTS
insttestdir=$(pkglibexecdir)/installed-tests
insttest_PROGRAMS = gtk-reftest
@ -296,9 +301,6 @@ substitutions = \
reftests.test: reftests.test.in Makefile
$(AM_V_GEN) sed $(substitutions) $< > $@.tmp && mv $@.tmp $@
EXTRA_DIST += \
reftests.test.in
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
testmeta_DATA = reftests.test
endif