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