tests: use abs_srcdir to refer to metatest files

These files are used to run mutter-test tools and using relative
paths won't work if the builddir doesn't match the srcdir.

This won't affect their installation (in case the build option is passed)
This commit is contained in:
Marco Trevisan (Treviño) 2018-06-29 22:14:06 +02:00
parent cbc783108e
commit 859bea629b

View File

@ -11,13 +11,13 @@ test_programs = \
if BUILDOPT_INSTALL_TESTS
stackingdir = $(pkgdatadir)/tests/stacking
dist_stacking_DATA = \
tests/stacking/basic-x11.metatest \
tests/stacking/basic-wayland.metatest \
tests/stacking/minimized.metatest \
tests/stacking/mixed-windows.metatest \
tests/stacking/set-parent.metatest \
tests/stacking/override-redirect.metatest
dist_stacking_DATA = \
$(abs_srcdir)/tests/stacking/basic-x11.metatest \
$(abs_srcdir)/tests/stacking/basic-wayland.metatest \
$(abs_srcdir)/tests/stacking/minimized.metatest \
$(abs_srcdir)/tests/stacking/mixed-windows.metatest \
$(abs_srcdir)/tests/stacking/set-parent.metatest \
$(abs_srcdir)/tests/stacking/override-redirect.metatest
mutter-all.test: tests/mutter-all.test.in
$(AM_V_GEN) sed -e "s|@libexecdir[@]|$(libexecdir)|g" $< > $@.tmp && mv $@.tmp $@