build: Namespace installed tests of private libraries

Currently our private cogl/clutter forks still install tests as
cogl/clutter, which conflicts with the original libraries.
This commit is contained in:
Florian Müllner 2016-04-29 13:16:30 +02:00
parent b6092cf4db
commit 28c9b6e1d7
3 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
installed_test_metadir = $(datadir)/installed-tests/mutter-clutter
installed_testdir = $(libexecdir)/installed-tests/mutter-clutter
include $(top_srcdir)/build/autotools/glib-tap.mk
AM_CFLAGS = -g $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)

View File

@ -25,7 +25,7 @@ endif
check-local: test
if ENABLE_INSTALLED_TESTS
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
insttestdir = $(libexecdir)/installed-tests/mutter-cogl
insttest_SCRIPTS = run-tests.sh
insttest_DATA = config.env
endif

View File

@ -158,18 +158,18 @@ clean-generic: clean-wrappers
if ENABLE_INSTALLED_TESTS
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)/conform
insttestdir = $(libexecdir)/installed-tests/mutter-cogl/conform
insttest_PROGRAMS = test-conformance
insttest_DATA = unit-tests
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
testmetadir = $(datadir)/installed-tests/mutter-cogl
testmeta_DATA = conform.test
conform.test:
echo " GEN $@"; \
echo "[Test]" > $@.tmp; \
echo "Type=session" >> $@.tmp; \
echo "Exec=sh -c \"cd $(libexecdir)/installed-tests/$(PACKAGE)/conform; ../run-tests.sh ../config.env ./test-conformance\"" >> $@.tmp; \
echo "Exec=sh -c \"cd $(libexecdir)/installed-tests/mutter-cogl/conform; ../run-tests.sh ../config.env ./test-conformance\"" >> $@.tmp; \
mv $@.tmp $@
CLEANFILES = conform.test