mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Make gobject tests installable
This makes the gobject tests run as part of the ostree integration tests.
This commit is contained in:
parent
6c3cf6dc18
commit
f66016261a
@ -45,3 +45,19 @@ CLEANFILES = marshalers.h marshalers.c
|
||||
ifaceproperties_SOURCES = ifaceproperties.c testcommon.h
|
||||
|
||||
EXTRA_DIST += marshalers.list
|
||||
|
||||
if BUILDOPT_INSTALL_TESTS
|
||||
insttestdir = $(pkglibexecdir)/installed-tests
|
||||
insttest_PROGRAMS = $(TEST_PROGS)
|
||||
|
||||
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
|
||||
testmeta_DATA = $(TEST_PROGS:=.test)
|
||||
|
||||
%.test: % Makefile
|
||||
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
|
||||
echo 'Type=session' >> $@.tmp; \
|
||||
echo 'Exec=env G_TEST_DATA=$(pkglibexecdir)/installed-tests $(pkglibexecdir)/installed-tests/$<' >> $@.tmp; \
|
||||
mv $@.tmp $@)
|
||||
|
||||
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user