summaryrefslogtreecommitdiff
path: root/testsuite/gdk/Makefile.am
blob: 63b7f8b6a9c09933118afb3ed02b8a283541555a (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
include $(top_srcdir)/Makefile.decl

NULL=

noinst_PROGRAMS = $(TEST_PROGS)

AM_CPPFLAGS = 				\
	$(GDK_DEP_CFLAGS) 		\
	-I$(top_srcdir) 		\
	-I$(top_builddir)/gdk 		\
	$(NULL)

LDADD = 				\
	$(GDK_DEP_LIBS) 		\
	$(top_builddir)/gdk/libgdk-3.la \
	$(NULL)

#TEST_PROGS              += check-gdk-cairo

TEST_PROGS += 				\
	cairo				\
	display				\
	encoding			\
	keysyms				\
	rgba				\
	visual				\
	$(NULL)

CLEANFILES = 			\
	cairosurface.png	\
	gdksurface.png		\
	$(NULL)

if BUILDOPT_INSTALL_TESTS
insttestdir=$(libexecdir)/installed-tests/$(PACKAGE)
insttest_PROGRAMS = $(TEST_PROGS)

%.test: %$(EXEEXT) Makefile
	$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
	echo 'Type=session' >> $@.tmp; \
	echo 'Output=TAP' >> $@.tmp; \
	echo 'Exec=$(insttestdir)/$< --tap' >> $@.tmp; \
	mv $@.tmp $@)

test_files = $(TEST_PROGRS:=.test)

DISTCLEANFILES = $(test_files)

testmetadir = $(datadir)/installed-tests/$(PACKAGE)
testmeta_DATA = $(test_files)
endif

-include $(top_srcdir)/git.mk