Makefile.am 2.01 KB
Newer Older
Keith Packard's avatar
Keith Packard committed
1
check_SCRIPTS=run-test.sh
2 3 4 5 6 7 8 9 10
TEST_EXTENSIONS = \
	.sh \
	$(NULL)

AM_TESTS_ENVIRONMENT= \
	src=${srcdir}; export src; \
	EXEEXT=${EXEEXT}; export EXEEXT; \
	$(NULL)

11
BUILT_SOURCES = $(builddir)/out.expected
12

13
SH_LOG_COMPILER = sh
Keith Packard's avatar
Keith Packard committed
14 15
TESTS=run-test.sh

16 17 18 19 20 21
TESTDATA =			\
	4x6.pcf			\
	8x16.pcf		\
	fonts.conf.in		\
	test-90-synthetic.json	\
	$(NULL)
22

23
if FREETYPE_PCF_LONG_FAMILY_NAMES
24 25
$(builddir)/out.expected: $(srcdir)/out.expected-long-family-names Makefile
	cp $(srcdir)/out.expected-long-family-names $(builddir)/out.expected
26
else
27 28
$(builddir)/out.expected: $(srcdir)/out.expected-no-long-family-names Makefile
	cp $(srcdir)/out.expected-no-long-family-names $(builddir)/out.expected
29 30
endif

31 32
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)

33
check_PROGRAMS =
Behdad Esfahbod's avatar
Behdad Esfahbod committed
34
if HAVE_PTHREAD
35
check_PROGRAMS += test-pthread
Behdad Esfahbod's avatar
Behdad Esfahbod committed
36 37 38 39 40
test_pthread_LDADD = $(top_builddir)/src/libfontconfig.la
# We don't enable this test by default because it will require config and fonts
# to meaningfully test anything, and we are not installed yet.
#TESTS += test-pthread
endif
41 42 43 44 45 46 47
check_PROGRAMS += test-bz89617
test_bz89617_CFLAGS = \
	-DSRCDIR="\"$(abs_srcdir)\""

test_bz89617_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-bz89617

48 49 50 51
check_PROGRAMS += test-bz131804
test_bz131804_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-bz131804

52 53
noinst_PROGRAMS = $(check_PROGRAMS)

54 55
if !OS_WIN32
check_PROGRAMS += test-migration
56
test_migration_LDADD = $(top_builddir)/src/libfontconfig.la
57
endif
Behdad Esfahbod's avatar
Behdad Esfahbod committed
58

59 60 61 62
check_PROGRAMS += test-bz96676
test_bz96676_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-bz96676

63 64 65 66
check_PROGRAMS += test-name-parse
test_name_parse_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-name-parse

Akira TAGOH's avatar
Akira TAGOH committed
67 68 69 70
if ENABLE_JSONC
check_PROGRAMS += test-conf
test_conf_CFLAGS = $(JSONC_CFLAGS)
test_conf_LDADD = $(top_builddir)/src/libfontconfig.la $(JSONC_LIBS)
71
TESTS += run-test-conf.sh
Akira TAGOH's avatar
Akira TAGOH committed
72 73
endif

74
EXTRA_DIST=run-test.sh run-test-conf.sh $(TESTDATA) out.expected-long-family-names out.expected-no-long-family-names
75

76
CLEANFILES=out fonts.conf out.expected
77 78

-include $(top_srcdir)/git.mk