if HAVE_OT
+
TEST_PROGS += \
test-ot-tag \
$(NULL)
-endif
+
+if HAVE_FREETYPE
+TEST_PROGS += \
+ test-ot-math \
+ $(NULL)
+test_ot_math_LDADD = $(LDADD) $(FREETYPE_LIBS)
+test_ot_math_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
+EXTRA_DIST += \
+ fonts/MathTestFontEmpty.otf \
+ fonts/MathTestFontFull.otf \
+ fonts/MathTestFontNone.otf \
+ fonts/MathTestFontPartial1.otf \
+ fonts/MathTestFontPartial2.otf \
+ fonts/MathTestFontPartial3.otf \
+ fonts/MathTestFontPartial4.otf \
+ $(NULL)
+endif # HAVE_FREETYPE
+
+endif # HAVE_OT
# Tests for header compilation
TEST_PROGS += \
G_DEBUG=gc-friendly \
G_SLICE=always-malloc \
srcdir=$(srcdir) \
+ G_TEST_SRCDIR=$(abs_srcdir) \
+ G_TEST_BUILDDIR=$(abs_builddir) \
$(NULL)