75e326cfcab48176d8652d940a8eb5d98170e143
[platform/upstream/fontconfig.git] / test / Makefile.am
1 check_SCRIPTS=run-test.sh
2 TEST_EXTENSIONS = \
3         .sh \
4         $(NULL)
5
6 AM_TESTS_ENVIRONMENT= \
7         src=${srcdir}; export src; \
8         EXEEXT=${EXEEXT}; export EXEEXT; \
9         $(NULL)
10
11 BUILT_SOURCES = out.expected
12
13 SH_LOG_COMPILER = sh
14 TESTS=run-test.sh
15
16 TESTDATA=4x6.pcf 8x16.pcf out.expected fonts.conf.in
17
18 if FREETYPE_PCF_LONG_FAMILY_NAMES
19 $(srcdir)/out.expected: $(srcdir)/out.expected-long-family-names
20         cp $(srcdir)/out.expected-long-family-names $(srcdir)/out.expected
21 else
22 $(srcdir)/out.expected: $(srcdir)/out.expected-no-long-family-names
23         cp $(srcdir)/out.expected-no-long-family-names $(srcdir)/out.expected
24 endif
25
26 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
27
28 check_PROGRAMS =
29 if HAVE_PTHREAD
30 check_PROGRAMS += test-pthread
31 test_pthread_LDADD = $(top_builddir)/src/libfontconfig.la
32 # We don't enable this test by default because it will require config and fonts
33 # to meaningfully test anything, and we are not installed yet.
34 #TESTS += test-pthread
35 endif
36 check_PROGRAMS += test-bz89617
37 test_bz89617_CFLAGS = \
38         -DSRCDIR="\"$(abs_srcdir)\""
39
40 test_bz89617_LDADD = $(top_builddir)/src/libfontconfig.la
41 TESTS += test-bz89617
42
43 check_PROGRAMS += test-bz131804
44 test_bz131804_LDADD = $(top_builddir)/src/libfontconfig.la
45 TESTS += test-bz131804
46
47 noinst_PROGRAMS = $(check_PROGRAMS)
48
49 if !OS_WIN32
50 check_PROGRAMS += test-migration
51 test_migration_LDADD = $(top_builddir)/src/libfontconfig.la
52 endif
53
54 check_PROGRAMS += test-bz96676
55 test_bz96676_LDADD = $(top_builddir)/src/libfontconfig.la
56 TESTS += test-bz96676
57
58 EXTRA_DIST=run-test.sh $(TESTDATA) out.expected-long-family-names out.expected-no-long-family-names
59
60 CLEANFILES=out fonts.conf
61
62 MAINTAINERCLEANFILES=out.expected
63
64 -include $(top_srcdir)/git.mk