fontconfig/test/Makefile.am

136 lines
3.4 KiB
Makefile

check_SCRIPTS=run-test.sh
TEST_EXTENSIONS = \
.sh \
$(NULL)
AM_TESTS_ENVIRONMENT= \
src=${srcdir}; export src; \
EXEEXT=${EXEEXT}; export EXEEXT; \
$(NULL)
BUILT_SOURCES = $(builddir)/out.expected
SH_LOG_COMPILER = sh
LOG_COMPILER = ${srcdir}/wrapper-script.sh
TESTS=run-test.sh
TESTDATA = \
4x6.pcf \
8x16.pcf \
fonts.conf.in \
test-60-generic.json \
test-90-synthetic.json \
$(NULL)
if FREETYPE_PCF_LONG_FAMILY_NAMES
$(builddir)/out.expected: $(srcdir)/out.expected-long-family-names Makefile
cp $(srcdir)/out.expected-long-family-names $(builddir)/out.expected
else
$(builddir)/out.expected: $(srcdir)/out.expected-no-long-family-names Makefile
cp $(srcdir)/out.expected-no-long-family-names $(builddir)/out.expected
endif
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
check_PROGRAMS =
if HAVE_PTHREAD
check_PROGRAMS += test-pthread
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
check_PROGRAMS += test-bz89617
test_bz89617_CFLAGS = \
-DSRCDIR="\"$(abs_srcdir)\""
test_bz89617_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-bz89617
check_PROGRAMS += test-bz131804
test_bz131804_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-bz131804
noinst_PROGRAMS = $(check_PROGRAMS)
if !OS_WIN32
check_PROGRAMS += test-migration
test_migration_LDADD = $(top_builddir)/src/libfontconfig.la
endif
check_PROGRAMS += test-bz96676
test_bz96676_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-bz96676
check_PROGRAMS += test-name-parse
test_name_parse_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-name-parse
if ENABLE_JSONC
check_PROGRAMS += test-conf
test_conf_CFLAGS = $(JSONC_CFLAGS)
test_conf_LDADD = $(top_builddir)/src/libfontconfig.la $(JSONC_LIBS)
TESTS += run-test-conf.sh
endif
check_PROGRAMS += test-bz106618
test_bz106618_LDADD = $(top_builddir)/src/libfontconfig.la
if !OS_WIN32
check_PROGRAMS += test-bz106632
test_bz106632_CFLAGS = \
-I$(top_builddir) \
-I$(top_builddir)/src \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-DFONTFILE='"$(abs_top_srcdir)/test/4x6.pcf"' \
-DHAVE_CONFIG_H \
$(NULL)
test_bz106632_LDADD = $(top_builddir)/src/libfontconfig.la
TESTS += test-bz106632
endif
check_PROGRAMS += test-issue107
test_issue107_LDADD = \
$(top_builddir)/src/libfontconfig.la \
$(NULL)
TESTS += test-issue107
if !ENABLE_SHARED
if !OS_WIN32
check_PROGRAMS += test-issue110
test_issue110_CFLAGS = \
-I$(top_builddir) \
-I$(top_builddir)/src \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-DHAVE_CONFIG_H \
-DFONTCONFIG_PATH='"$(BASECONFIGDIR)"' \
$(NULL)
test_issue110_LDADD = \
$(top_builddir)/src/libfontconfig.la \
$(NULL)
TESTS += test-issue110
check_PROGRAMS += test-d1f48f11
test_d1f48f11_CFLAGS = \
-I$(top_builddir) \
-I$(top_builddir)/src \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-DHAVE_CONFIG_H \
-DFONTCONFIG_PATH='"$(BASECONFIGDIR)"' \
$(NULL)
test_d1f48f11_LDADD = \
$(top_builddir)/src/libfontconfig.la \
$(NULL)
TESTS += test-d1f48f11
endif
endif
EXTRA_DIST=run-test.sh run-test-conf.sh $(LOG_COMPILER) $(TESTDATA) out.expected-long-family-names out.expected-no-long-family-names
CLEANFILES=out out1 out2 fonts.conf out.expected
-include $(top_srcdir)/git.mk