mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 20:22:23 +00:00
859bea629b
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)
97 lines
2.9 KiB
Plaintext
97 lines
2.9 KiB
Plaintext
# A framework for running scripted tests
|
|
|
|
if HAVE_WAYLAND
|
|
|
|
test_programs = \
|
|
mutter-test-client \
|
|
mutter-test-runner \
|
|
mutter-test-unit-tests \
|
|
mutter-test-headless-start-test \
|
|
$(NULL)
|
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
stackingdir = $(pkgdatadir)/tests/stacking
|
|
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 $@
|
|
|
|
installedtestsdir = $(datadir)/installed-tests/mutter
|
|
installedtests_DATA = mutter-all.test
|
|
|
|
installedtestsbindir = $(libexecdir)/installed-tests/mutter
|
|
installedtestsbin_PROGRAMS = $(test_programs)
|
|
else
|
|
noinst_PROGRAMS += $(test_programs)
|
|
endif
|
|
|
|
EXTRA_DIST += tests/mutter-all.test.in
|
|
|
|
mutter_test_client_SOURCES = tests/test-client.c
|
|
mutter_test_client_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
|
|
|
mutter_test_runner_SOURCES = \
|
|
tests/test-utils.c \
|
|
tests/test-utils.h \
|
|
tests/test-runner.c
|
|
mutter_test_runner_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
|
|
|
mutter_test_unit_tests_SOURCES = \
|
|
tests/test-utils.c \
|
|
tests/test-utils.h \
|
|
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 \
|
|
tests/monitor-config-migration-unit-tests.c \
|
|
tests/monitor-config-migration-unit-tests.h \
|
|
tests/monitor-store-unit-tests.c \
|
|
tests/monitor-store-unit-tests.h \
|
|
tests/monitor-test-utils.c \
|
|
tests/monitor-test-utils.h \
|
|
tests/monitor-unit-tests.c \
|
|
tests/monitor-unit-tests.h \
|
|
$(NULL)
|
|
mutter_test_unit_tests_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
|
|
|
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
|
|
|
|
export G_TEST_SRCDIR = $(abs_srcdir)
|
|
export G_TEST_BUILDDIR = $(abs_builddir)
|
|
|
|
run-test-runner-tests: mutter-test-client mutter-test-runner
|
|
./mutter-test-runner $(dist_stacking_DATA)
|
|
|
|
run-unit-tests: mutter-test-unit-tests
|
|
./mutter-test-unit-tests
|
|
|
|
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
|
|
|
|
endif
|
|
|
|
# Some random test programs for bits of the code
|
|
|
|
testboxes_SOURCES = core/testboxes.c
|
|
testboxes_LDADD = $(MUTTER_LIBS) libmutter-$(LIBMUTTER_API_VERSION).la
|
|
|
|
noinst_PROGRAMS += testboxes
|