Commit a8da29b8 authored by Colin Walters's avatar Colin Walters Committed by Benjamin Otte
parent 2c1d7cf0
......@@ -255,6 +255,11 @@ AC_ARG_ENABLE(rebuilds,
[AS_HELP_STRING([--disable-rebuilds],
[disable all source autogeneration rules])],,
[enable_rebuilds=yes])
AC_ARG_ENABLE(installed_tests,
AS_HELP_STRING([--enable-installed-tests],
[Install test programs (default: no)]),,
[enable_installed_tests=no])
AM_CONDITIONAL(BUILDOPT_INSTALL_TESTS, test x$enable_installed_tests = xyes)
AC_ARG_ENABLE(gtk2-dependency,
[AS_HELP_STRING([--enable-gtk2-dependency],
......
......@@ -30,7 +30,7 @@ EXTRA_DIST += \
border-image-repeat.sh \
$(NULL)
EXTRA_DIST += \
testdata = \
background-area.css \
background-area.ref.ui \
background-area.ui \
......@@ -279,4 +279,25 @@ EXTRA_DIST += \
window-default-size.ui \
$(NULL)
if BUILDOPT_INSTALL_TESTS
insttestdir=$(pkglibexecdir)/installed-tests
insttest_PROGRAMS = gtk-reftest
reftestdir = $(insttestdir)/reftests
reftest_DATA = $(testdata)
substitutions = \
-e s,@pkglibexecdir\@,$(pkglibexecdir),g \
$(NULL)
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
-include $(top_srcdir)/git.mk
[Test]
Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/gtk-reftest -k --verbose --output $(pwd) --directory @pkglibexecdir@/installed-tests/reftests"
Type=session
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment