Commit 10a9003f authored by Sébastien Wilmet's avatar Sébastien Wilmet

Installed Tests

Not sure it'll be used, but by supporting it there are more chances that
it'll be used.
parent ba8e81c4
......@@ -130,6 +130,14 @@ GTK_PREFIX="`$PKG_CONFIG --variable=prefix gtk+-3.0`"
AC_SUBST(GLIB_PREFIX)
AC_SUBST(GTK_PREFIX)
# Installed Tests for gnome continuous integration
AC_ARG_ENABLE(installed_tests,
AS_HELP_STRING([--enable-installed-tests],
[Install test programs (default: no)]),,
[enable_installed_tests=no])
AM_CONDITIONAL(INSTALLED_TESTS, test "x$enable_installed_tests" = "xyes")
# Introspection
AX_REQUIRE_DEFINED([GOBJECT_INTROSPECTION_CHECK])
GOBJECT_INTROSPECTION_CHECK([1.42.0])
......
......@@ -26,4 +26,23 @@ test_text_iter_SOURCES = test-text-iter.c
UNIT_TEST_PROGS += test-utils
test_utils_SOURCES = test-utils.c
if INSTALLED_TESTS
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
insttest_PROGRAMS = $(UNIT_TEST_PROGS)
%.test: %$(EXEEXT) Makefile
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
echo 'Type=session' >> $@.tmp; \
echo 'Exec=$(insttestdir)/$<' >> $@.tmp; \
mv $@.tmp $@)
test_files = $(UNIT_TEST_PROGS:=.test)
DISTCLEANFILES = $(test_files)
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
testmeta_DATA = $(test_files)
endif # INSTALLED_TESTS
-include $(top_srcdir)/git.mk
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