2014-09-11 17:43:32 +00:00
|
|
|
# A framework for running scripted tests
|
|
|
|
|
2014-09-15 15:11:28 +00:00
|
|
|
if HAVE_WAYLAND
|
|
|
|
|
2014-09-11 17:43:32 +00: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 20:16:03 +00:00
|
|
|
tests/stacking/minimized.metatest \
|
2014-09-11 17:43:32 +00:00
|
|
|
tests/stacking/mixed-windows.metatest \
|
2015-09-24 05:39:58 +00:00
|
|
|
tests/stacking/set-parent.metatest \
|
2014-09-11 17:43:32 +00:00
|
|
|
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
|
2015-09-22 07:13:31 +00:00
|
|
|
installedtestsbin_PROGRAMS = mutter-test-client mutter-test-runner mutter-test-unit-tests
|
2014-09-11 17:43:32 +00:00
|
|
|
else
|
2015-09-22 07:13:31 +00:00
|
|
|
noinst_PROGRAMS += mutter-test-client mutter-test-runner mutter-test-unit-tests
|
2014-09-11 17:43:32 +00:00
|
|
|
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
|
|
|
|
|
2015-09-22 07:13:31 +00:00
|
|
|
mutter_test_unit_tests_SOURCES = tests/unit-tests.c
|
|
|
|
mutter_test_unit_tests_LDADD = $(MUTTER_LIBS) libmutter.la
|
2014-09-11 17:43:32 +00:00
|
|
|
|
2015-09-22 07:13:31 +00:00
|
|
|
.PHONY: run-tests run-test-runner-tests run-unit-tests
|
|
|
|
|
|
|
|
run-test-runner-tests: mutter-test-client mutter-test-runner
|
2014-09-11 17:43:32 +00:00
|
|
|
./mutter-test-runner $(dist_stacking_DATA)
|
|
|
|
|
2015-09-22 07:13:31 +00:00
|
|
|
run-unit-tests: mutter-test-unit-tests
|
|
|
|
./mutter-test-unit-tests
|
|
|
|
|
|
|
|
run-tests: run-test-runner-tests run-unit-tests
|
|
|
|
|
2014-09-15 15:11:28 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-11 17:43:32 +00:00
|
|
|
# Some random test programs for bits of the code
|
|
|
|
|
|
|
|
testboxes_SOURCES = core/testboxes.c
|
|
|
|
testboxes_LDADD = $(MUTTER_LIBS) libmutter.la
|
2015-06-18 00:43:04 +00:00
|
|
|
|
|
|
|
noinst_PROGRAMS += testboxes
|