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 \
|
2015-09-24 01:39:58 -04:00
|
|
|
tests/stacking/set-parent.metatest \
|
2014-09-11 13:43:32 -04: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 03:13:31 -04:00
|
|
|
installedtestsbin_PROGRAMS = mutter-test-client mutter-test-runner mutter-test-unit-tests
|
2014-09-11 13:43:32 -04:00
|
|
|
else
|
2015-09-22 03:13:31 -04:00
|
|
|
noinst_PROGRAMS += mutter-test-client mutter-test-runner mutter-test-unit-tests
|
2014-09-11 13:43:32 -04: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
|
|
|
|
|
2016-12-05 05:38:43 -05:00
|
|
|
mutter_test_unit_tests_SOURCES = \
|
|
|
|
tests/unit-tests.c \
|
|
|
|
tests/meta-backend-test.c \
|
|
|
|
tests/meta-backend-test.h \
|
|
|
|
tests/meta-monitor-manager-test.c \
|
|
|
|
tests/meta-monitor-manager-test.h \
|
2017-01-12 03:20:04 -05:00
|
|
|
tests/monitor-store-unit-tests.c \
|
|
|
|
tests/monitor-store-unit-tests.h \
|
2016-12-05 05:40:44 -05:00
|
|
|
tests/monitor-unit-tests.c \
|
|
|
|
tests/monitor-unit-tests.h \
|
2016-12-05 05:38:43 -05:00
|
|
|
$(NULL)
|
2015-09-22 03:13:31 -04:00
|
|
|
mutter_test_unit_tests_LDADD = $(MUTTER_LIBS) libmutter.la
|
2014-09-11 13:43:32 -04:00
|
|
|
|
2015-09-22 03:13:31 -04:00
|
|
|
.PHONY: run-tests run-test-runner-tests run-unit-tests
|
|
|
|
|
|
|
|
run-test-runner-tests: mutter-test-client mutter-test-runner
|
2014-09-11 13:43:32 -04:00
|
|
|
./mutter-test-runner $(dist_stacking_DATA)
|
|
|
|
|
2015-09-22 03:13:31 -04:00
|
|
|
run-unit-tests: mutter-test-unit-tests
|
|
|
|
./mutter-test-unit-tests
|
|
|
|
|
|
|
|
run-tests: run-test-runner-tests run-unit-tests
|
|
|
|
|
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
|
|
|
|
testboxes_LDADD = $(MUTTER_LIBS) libmutter.la
|
2015-06-17 20:43:04 -04:00
|
|
|
|
|
|
|
noinst_PROGRAMS += testboxes
|