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
|
|
|
|
|
2017-08-18 06:27:42 +00:00
|
|
|
test_programs = \
|
|
|
|
mutter-test-client \
|
|
|
|
mutter-test-runner \
|
|
|
|
mutter-test-unit-tests \
|
|
|
|
mutter-test-headless-start-test \
|
|
|
|
$(NULL)
|
|
|
|
|
2014-09-11 17:43:32 +00:00
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
|
|
stackingdir = $(pkgdatadir)/tests/stacking
|
2018-06-29 20:14:06 +00:00
|
|
|
dist_stacking_DATA = \
|
2018-07-09 14:09:25 +00:00
|
|
|
$(srcdir)/tests/stacking/basic-x11.metatest \
|
|
|
|
$(srcdir)/tests/stacking/basic-wayland.metatest \
|
2018-07-19 09:47:12 +00:00
|
|
|
$(srcdir)/tests/stacking/closed-transient.metatest \
|
2018-07-09 14:09:25 +00:00
|
|
|
$(srcdir)/tests/stacking/minimized.metatest \
|
|
|
|
$(srcdir)/tests/stacking/mixed-windows.metatest \
|
|
|
|
$(srcdir)/tests/stacking/set-parent.metatest \
|
2018-07-13 14:44:25 +00:00
|
|
|
$(srcdir)/tests/stacking/set-parent-exported.metatest \
|
2018-07-09 14:09:25 +00:00
|
|
|
$(srcdir)/tests/stacking/override-redirect.metatest
|
2014-09-11 17:43:32 +00:00
|
|
|
|
|
|
|
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
|
2017-08-18 06:27:42 +00:00
|
|
|
installedtestsbin_PROGRAMS = $(test_programs)
|
2014-09-11 17:43:32 +00:00
|
|
|
else
|
2017-08-18 06:27:42 +00:00
|
|
|
noinst_PROGRAMS += $(test_programs)
|
2014-09-11 17:43:32 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST += tests/mutter-all.test.in
|
|
|
|
|
|
|
|
mutter_test_client_SOURCES = tests/test-client.c
|
2016-11-25 16:16:07 +00:00
|
|
|
mutter_test_client_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
2014-09-11 17:43:32 +00:00
|
|
|
|
2017-06-26 08:31:48 +00:00
|
|
|
mutter_test_runner_SOURCES = \
|
|
|
|
tests/test-utils.c \
|
|
|
|
tests/test-utils.h \
|
|
|
|
tests/test-runner.c
|
2016-11-25 16:16:07 +00:00
|
|
|
mutter_test_runner_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
2014-09-11 17:43:32 +00:00
|
|
|
|
2016-12-05 10:38:43 +00:00
|
|
|
mutter_test_unit_tests_SOURCES = \
|
2017-08-18 06:37:53 +00:00
|
|
|
tests/test-utils.c \
|
|
|
|
tests/test-utils.h \
|
2016-12-05 10:38:43 +00:00
|
|
|
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-08-10 09:12:39 +00:00
|
|
|
tests/monitor-config-migration-unit-tests.c \
|
|
|
|
tests/monitor-config-migration-unit-tests.h \
|
2017-01-12 08:20:04 +00:00
|
|
|
tests/monitor-store-unit-tests.c \
|
|
|
|
tests/monitor-store-unit-tests.h \
|
2017-01-13 03:41:05 +00:00
|
|
|
tests/monitor-test-utils.c \
|
|
|
|
tests/monitor-test-utils.h \
|
2016-12-05 10:40:44 +00:00
|
|
|
tests/monitor-unit-tests.c \
|
|
|
|
tests/monitor-unit-tests.h \
|
2016-12-05 10:38:43 +00:00
|
|
|
$(NULL)
|
2016-11-25 16:16:07 +00:00
|
|
|
mutter_test_unit_tests_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
2014-09-11 17:43:32 +00:00
|
|
|
|
2017-08-18 06:27:42 +00:00
|
|
|
mutter_test_headless_start_test_SOURCES = \
|
|
|
|
tests/headless-start-test.c \
|
|
|
|
tests/meta-backend-test.c \
|
|
|
|
tests/meta-backend-test.h \
|
|
|
|
tests/meta-monitor-manager-test.c \
|
|
|
|
tests/meta-monitor-manager-test.h \
|
|
|
|
$(NULL)
|
|
|
|
mutter_test_headless_start_test_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
|
|
|
|
|
|
|
.PHONY: run-tests run-test-runner-tests run-unit-tests run-headless-start-test
|
2015-09-22 07:13:31 +00:00
|
|
|
|
2018-06-29 20:16:40 +00:00
|
|
|
export G_TEST_SRCDIR = $(abs_srcdir)
|
|
|
|
export G_TEST_BUILDDIR = $(abs_builddir)
|
|
|
|
|
2015-09-22 07:13:31 +00:00
|
|
|
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
|
|
|
|
|
2017-08-18 06:27:42 +00:00
|
|
|
run-headless-start-test: mutter-test-headless-start-test
|
|
|
|
./mutter-test-headless-start-test
|
|
|
|
|
|
|
|
run-tests: run-test-runner-tests run-unit-tests run-headless-start-test
|
2015-09-22 07:13:31 +00:00
|
|
|
|
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
|
2016-11-25 16:16:07 +00:00
|
|
|
testboxes_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
2015-06-18 00:43:04 +00:00
|
|
|
|
|
|
|
noinst_PROGRAMS += testboxes
|