2014-09-11 13:43:32 -04:00
|
|
|
# A framework for running scripted tests
|
|
|
|
|
2014-09-15 11:11:28 -04:00
|
|
|
if HAVE_WAYLAND
|
|
|
|
|
2014-09-11 13:43:32 -04:00
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
|
|
stackingdir = $(pkgdatadir)/tests/stacking
|
|
|
|
dist_stacking_DATA = \
|
|
|
|
tests/stacking/basic-x11.metatest \
|
|
|
|
tests/stacking/basic-wayland.metatest \
|
2014-09-24 16:16:03 -04:00
|
|
|
tests/stacking/minimized.metatest \
|
2014-09-11 13:43:32 -04:00
|
|
|
tests/stacking/mixed-windows.metatest \
|
|
|
|
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 $@
|
|
|
|
|
|
|
|
installedtestsdir = $(datadir)/installed-tests/mutter
|
|
|
|
installedtests_DATA = mutter-all.test
|
|
|
|
|
|
|
|
installedtestsbindir = $(libexecdir)/installed-tests/mutter
|
|
|
|
installedtestsbin_PROGRAMS = mutter-test-client mutter-test-runner
|
|
|
|
else
|
|
|
|
noinst_PROGRAMS += mutter-test-client mutter-test-runner
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST += tests/mutter-all.test.in
|
|
|
|
|
|
|
|
mutter_test_client_SOURCES = tests/test-client.c
|
|
|
|
mutter_test_client_LDADD = $(MUTTER_LIBS) libmutter.la
|
|
|
|
|
|
|
|
mutter_test_runner_SOURCES = tests/test-runner.c
|
|
|
|
mutter_test_runner_LDADD = $(MUTTER_LIBS) libmutter.la
|
|
|
|
|
|
|
|
.PHONY: run-tests
|
|
|
|
|
|
|
|
run-tests: mutter-test-client mutter-test-runner
|
|
|
|
./mutter-test-runner $(dist_stacking_DATA)
|
|
|
|
|
2014-09-15 11:11:28 -04:00
|
|
|
endif
|
|
|
|
|
2014-09-11 13:43:32 -04:00
|
|
|
# Some random test programs for bits of the code
|
|
|
|
|
|
|
|
testboxes_SOURCES = core/testboxes.c
|
|
|
|
testasyncgetprop_SOURCES = x11/testasyncgetprop.c
|
|
|
|
|
2011-10-28 13:08:48 -04:00
|
|
|
noinst_PROGRAMS+=testboxes testasyncgetprop
|
2014-09-11 13:43:32 -04:00
|
|
|
|
|
|
|
testboxes_LDADD = $(MUTTER_LIBS) libmutter.la
|
|
|
|
testasyncgetprop_LDADD = $(MUTTER_LIBS) libmutter.la
|