summaryrefslogtreecommitdiff
path: root/testsuite/a11y/state/Makefile.am
blob: 87b69d6462882b567c1a2830deb78ed2749c68b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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)/gtk/libgtk-4.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)

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