1a4e54154Smrg# 2a4e54154Smrg# test/Makefile.am 3a4e54154Smrg# 4a4e54154Smrg# Copyright © 2003 Keith Packard 5a4e54154Smrg# 6a4e54154Smrg# Permission to use, copy, modify, distribute, and sell this software and its 7a4e54154Smrg# documentation for any purpose is hereby granted without fee, provided that 8a4e54154Smrg# the above copyright notice appear in all copies and that both that 9a4e54154Smrg# copyright notice and this permission notice appear in supporting 10a4e54154Smrg# documentation, and that the name of the author(s) not be used in 11a4e54154Smrg# advertising or publicity pertaining to distribution of the software without 12a4e54154Smrg# specific, written prior permission. The authors make no 13a4e54154Smrg# representations about the suitability of this software for any purpose. It 14a4e54154Smrg# is provided "as is" without express or implied warranty. 15a4e54154Smrg# 16a4e54154Smrg# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 17a4e54154Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 18a4e54154Smrg# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR 19a4e54154Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 20a4e54154Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 21a4e54154Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 22a4e54154Smrg# PERFORMANCE OF THIS SOFTWARE. 23a4e54154Smrg 242c393a42Smrgcheck_SCRIPTS=run-test.sh 25c9710b42SmrgTEST_EXTENSIONS = \ 26c9710b42Smrg .sh \ 27c9710b42Smrg $(NULL) 28c9710b42Smrg 29c9710b42SmrgAM_TESTS_ENVIRONMENT= \ 30c9710b42Smrg src=${srcdir}; export src; \ 31c9710b42Smrg EXEEXT=${EXEEXT}; export EXEEXT; \ 32a4e54154Smrg LOG_COMPILER=${LOG_COMPILER} ; export LOG_COMPILER; \ 33c9710b42Smrg $(NULL) 34c9710b42Smrg 35a32e9e42SmrgBUILT_SOURCES = $(builddir)/out.expected 36a32e9e42Smrg 37c9710b42SmrgSH_LOG_COMPILER = sh 38a4e54154Smrgif OS_WIN32 39a4e54154SmrgLOG_COMPILER = ${srcdir}/wrapper-script.sh 40a4e54154Smrgendif 41a32e9e42SmrgTESTS=run-test.sh 42a32e9e42Smrg 43a32e9e42SmrgTESTDATA = \ 44a32e9e42Smrg 4x6.pcf \ 45a32e9e42Smrg 8x16.pcf \ 46a32e9e42Smrg fonts.conf.in \ 47a4e54154Smrg test-45-generic.json \ 48a4e54154Smrg test-60-generic.json \ 49a32e9e42Smrg test-90-synthetic.json \ 50a4e54154Smrg test-issue-286.json \ 51a4e54154Smrg test-style-match.json \ 52a32e9e42Smrg $(NULL) 53c9710b42Smrg 54953daebaSmrgif FREETYPE_PCF_LONG_FAMILY_NAMES 55a32e9e42Smrg$(builddir)/out.expected: $(srcdir)/out.expected-long-family-names Makefile 56a32e9e42Smrg cp $(srcdir)/out.expected-long-family-names $(builddir)/out.expected 57953daebaSmrgelse 58a32e9e42Smrg$(builddir)/out.expected: $(srcdir)/out.expected-no-long-family-names Makefile 59a32e9e42Smrg cp $(srcdir)/out.expected-no-long-family-names $(builddir)/out.expected 60953daebaSmrgendif 612c393a42Smrg 62c9710b42SmrgAM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) 63c9710b42Smrg 64b09479dcSmrgcheck_PROGRAMS = 65c9710b42Smrgif HAVE_PTHREAD 666fc018e4Smrgcheck_PROGRAMS += test-pthread 67c9710b42Smrgtest_pthread_LDADD = $(top_builddir)/src/libfontconfig.la 68c9710b42Smrg# We don't enable this test by default because it will require config and fonts 69c9710b42Smrg# to meaningfully test anything, and we are not installed yet. 70c9710b42Smrg#TESTS += test-pthread 71a4e54154Smrg 72a4e54154Smrgcheck_PROGRAMS += test-crbug1004254 73a4e54154Smrgtest_crbug1004254_LDADD = $(top_builddir)/src/libfontconfig.la 74a4e54154Smrg# Disabling this for the same reason as above but trying to run in run-test.sh. 75a4e54154Smrg#TESTS += test-crbug1004254 76c9710b42Smrgendif 77953daebaSmrgcheck_PROGRAMS += test-bz89617 78953daebaSmrgtest_bz89617_CFLAGS = \ 79953daebaSmrg -DSRCDIR="\"$(abs_srcdir)\"" 80953daebaSmrg 81953daebaSmrgtest_bz89617_LDADD = $(top_builddir)/src/libfontconfig.la 82953daebaSmrgTESTS += test-bz89617 83953daebaSmrg 84953daebaSmrgcheck_PROGRAMS += test-bz131804 85953daebaSmrgtest_bz131804_LDADD = $(top_builddir)/src/libfontconfig.la 86953daebaSmrgTESTS += test-bz131804 87953daebaSmrg 886fc018e4Smrgnoinst_PROGRAMS = $(check_PROGRAMS) 896fc018e4Smrg 90b09479dcSmrgif !OS_WIN32 91b09479dcSmrgcheck_PROGRAMS += test-migration 926fc018e4Smrgtest_migration_LDADD = $(top_builddir)/src/libfontconfig.la 93b09479dcSmrgendif 94c9710b42Smrg 95953daebaSmrgcheck_PROGRAMS += test-bz96676 96953daebaSmrgtest_bz96676_LDADD = $(top_builddir)/src/libfontconfig.la 97953daebaSmrgTESTS += test-bz96676 98953daebaSmrg 99a32e9e42Smrgcheck_PROGRAMS += test-name-parse 100a32e9e42Smrgtest_name_parse_LDADD = $(top_builddir)/src/libfontconfig.la 101a32e9e42SmrgTESTS += test-name-parse 102a32e9e42Smrg 103a32e9e42Smrgif ENABLE_JSONC 104a32e9e42Smrgcheck_PROGRAMS += test-conf 105a32e9e42Smrgtest_conf_CFLAGS = $(JSONC_CFLAGS) 106a32e9e42Smrgtest_conf_LDADD = $(top_builddir)/src/libfontconfig.la $(JSONC_LIBS) 107a32e9e42Smrgendif 108a4e54154SmrgTESTS += run-test-conf.sh 109a32e9e42Smrg 110a32e9e42Smrgcheck_PROGRAMS += test-bz106618 111a32e9e42Smrgtest_bz106618_LDADD = $(top_builddir)/src/libfontconfig.la 112a32e9e42Smrg 113a4e54154Smrgif !OS_WIN32 114a32e9e42Smrgcheck_PROGRAMS += test-bz106632 115a32e9e42Smrgtest_bz106632_CFLAGS = \ 116a32e9e42Smrg -I$(top_builddir) \ 117a32e9e42Smrg -I$(top_builddir)/src \ 118a32e9e42Smrg -I$(top_srcdir) \ 119a32e9e42Smrg -I$(top_srcdir)/src \ 120a32e9e42Smrg -DFONTFILE='"$(abs_top_srcdir)/test/4x6.pcf"' \ 121a32e9e42Smrg -DHAVE_CONFIG_H \ 122a32e9e42Smrg $(NULL) 123a32e9e42Smrgtest_bz106632_LDADD = $(top_builddir)/src/libfontconfig.la 124a32e9e42SmrgTESTS += test-bz106632 125a4e54154Smrgendif 126a32e9e42Smrg 127a4e54154Smrgcheck_PROGRAMS += test-issue107 128a4e54154Smrgtest_issue107_LDADD = \ 129a4e54154Smrg $(top_builddir)/src/libfontconfig.la \ 130a4e54154Smrg $(NULL) 131a4e54154SmrgTESTS += test-issue107 1322c393a42Smrg 133a4e54154Smrgif !ENABLE_SHARED 134a4e54154Smrgif !OS_WIN32 135a4e54154Smrgcheck_PROGRAMS += test-issue110 136a4e54154Smrgtest_issue110_CFLAGS = \ 137a4e54154Smrg -I$(top_builddir) \ 138a4e54154Smrg -I$(top_builddir)/src \ 139a4e54154Smrg -I$(top_srcdir) \ 140a4e54154Smrg -I$(top_srcdir)/src \ 141a4e54154Smrg -DHAVE_CONFIG_H \ 142a4e54154Smrg -DFONTCONFIG_PATH='"$(BASECONFIGDIR)"' \ 143a4e54154Smrg $(NULL) 144a4e54154Smrgtest_issue110_LDADD = \ 145a4e54154Smrg $(top_builddir)/src/libfontconfig.la \ 146a4e54154Smrg $(NULL) 147a4e54154SmrgTESTS += test-issue110 148a4e54154Smrg 149a4e54154Smrgcheck_PROGRAMS += test-d1f48f11 150a4e54154Smrgtest_d1f48f11_CFLAGS = \ 151a4e54154Smrg -I$(top_builddir) \ 152a4e54154Smrg -I$(top_builddir)/src \ 153a4e54154Smrg -I$(top_srcdir) \ 154a4e54154Smrg -I$(top_srcdir)/src \ 155a4e54154Smrg -DHAVE_CONFIG_H \ 156a4e54154Smrg -DFONTCONFIG_PATH='"$(BASECONFIGDIR)"' \ 157a4e54154Smrg $(NULL) 158a4e54154Smrgtest_d1f48f11_LDADD = \ 159a4e54154Smrg $(top_builddir)/src/libfontconfig.la \ 160a4e54154Smrg $(NULL) 161a4e54154SmrgTESTS += test-d1f48f11 162a4e54154Smrgendif 163a4e54154Smrgendif 164a4e54154Smrg 165a4e54154Smrgcheck_PROGRAMS += test-bz1744377 166a4e54154Smrgtest_bz1744377_LDADD = $(top_builddir)/src/libfontconfig.la 167a4e54154SmrgTESTS += test-bz1744377 168a4e54154Smrg 169a4e54154Smrgcheck_PROGRAMS += test-issue180 170a4e54154Smrgtest_issue180_LDADD = $(top_builddir)/src/libfontconfig.la 171a4e54154SmrgTESTS += test-issue180 172a4e54154Smrg 173a4e54154Smrgcheck_PROGRAMS += test-family-matching 174a4e54154Smrgtest_family_matching_LDADD = $(top_builddir)/src/libfontconfig.la 175a4e54154SmrgTESTS += test-family-matching 176a4e54154Smrg 177a4e54154SmrgEXTRA_DIST=run-test.sh run-test-conf.sh wrapper-script.sh $(TESTDATA) out.expected-long-family-names out.expected-no-long-family-names 178a4e54154Smrg 179a4e54154SmrgCLEANFILES = \ 180a4e54154Smrg fonts.conf \ 181a4e54154Smrg out \ 182a4e54154Smrg out1 \ 183a4e54154Smrg out2 \ 184a4e54154Smrg out.expected \ 185a4e54154Smrg run*.log \ 186a4e54154Smrg run*.trs \ 187a4e54154Smrg test*.log \ 188a4e54154Smrg test*.trs \ 189a4e54154Smrg $(NULL) 190c9710b42Smrg 191c9710b42Smrg-include $(top_srcdir)/git.mk 192