gtk3/testsuite/a11y/state/Makefile.am
Christoph Reiter 3c2b5cda74 meson: port installed tests and reftests
I couldn't get all reftests to work reliably, so the tests failing
on either CI or on my machine are skipped for now.

Installed tests are disabled by default and can be enabled with "-Dinstalled_tests=true"
2019-11-15 12:52:03 +01:00

59 lines
1.5 KiB
Makefile

include $(top_srcdir)/Makefile.decl
check_PROGRAMS = $(TEST_PROGS)
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir)/gdk \
-I$(top_srcdir)/gdk \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DGTK_VERSION=\"$(GTK_VERSION)\"\
$(GTK_DEBUG_FLAGS) \
$(GTK_DEP_CFLAGS)
LDADD = \
$(top_builddir)/gdk/libgdk-3.la \
$(top_builddir)/gtk/libgtk-3.la \
$(GTK_DEP_LIBS)
TESTS_ENVIRONMENT = \
GIO_USE_VOLUME_MONITOR=unix \
GSETTINGS_BACKEND=memory \
G_ENABLE_DIAGNOSTIC=0
test_programs = state-record
testdata = \
focus1.ui focus1.in focus1.out \
focus2.ui focus2.in focus2.out
EXTRA_DIST += $(testdata) \
meson.build \
a11ystate.test.in
if BUILDOPT_INSTALL_TESTS
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
insttest_PROGRAMS = $(test_programs)
statetestdir = $(insttestdir)/state
statetest_DATA = $(testdata)
a11ystate.test: Makefile
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
echo 'Type=session-exclusive' >> $@.tmp; \
echo 'Output=TAP' >> $@.tmp; \
echo 'Exec=env G_ENABLE_DIAGNOSTIC=0 $(insttestdir)/state-record --tap --directory $(statetestdir)' >> $@.tmp; \
mv $@.tmp $@)
testfiles = a11ystate.test
DISTCLEANFILES = \
$(testfiles)
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
testmeta_DATA = $(testfiles)
endif
-include $(top_srcdir)/git.mk