From 30842868742c9a215346d9906083c8566a743d2e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 23 Jun 2013 23:17:25 -0400 Subject: [PATCH] Install a11y tests too https://bugzilla.gnome.org/show_bug.cgi?id=702941 --- tests/accessibility/Makefile.am | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/accessibility/Makefile.am b/tests/accessibility/Makefile.am index 4c7a376d4..4862b9586 100644 --- a/tests/accessibility/Makefile.am +++ b/tests/accessibility/Makefile.am @@ -33,4 +33,25 @@ cally_clone_example_SOURCES = $(common_sources) cally-clone-example.c DISTCLEANFILES = +if ENABLE_INSTALLED_TESTS +# installed tests +insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)/accessibility +insttest_PROGRAMS = \ + cally-atkcomponent-example \ + cally-atkeditabletext-example \ + cally-atkevents-example \ + cally-atktext-example \ + cally-clone-example + +%.test: %$(EXEEXT) Makefile + $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ + echo 'Type=session' >> $@.tmp; \ + echo 'Exec=$(insttestdir)/$<' >> $@.tmp; \ + mv $@.tmp $@) + +testmetadir = $(datadir)/installed-tests/$(PACKAGE) +testmeta_DATA = $(insttest_PROGRAMS:=.test) + +endif + -include $(top_srcdir)/build/autotools/Makefile.am.gitignore