提交 a346e923 编写于 作者: B Behdad Esfahbod

[test] Add Indic tests from harfbuzz.old

Needs fonts to be put in test/fonts.  Tests are skipped otherwise.
Run with --verbose for details.  Working on improving the test runner
to make it easier to make sense of what's going on.
上级 8fdba506
......@@ -7,7 +7,7 @@ DISTCLEANFILES =
MAINTAINERCLEANFILES =
if HAVE_GLIB
AM_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(GTHREAD_CFLAGS)
AM_CPPFLAGS = -DSRCDIR="\"$(srcdir)\"" -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(GTHREAD_CFLAGS)
LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS) $(GTHREAD_LIBS)
EXTRA_DIST += hb-test.h
......@@ -47,7 +47,13 @@ test_c_CPPFLAGS += $(FREETYPE_CFLAGS)
test_cplusplus_CPPFLAGS += $(FREETYPE_CFLAGS)
# TODO replace freetype with other stuff in the following test
test_object_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
test_object_LIBS = $(LDADD) $(FREETYPE_LIBS)
test_object_LDADD = $(LDADD) $(FREETYPE_LIBS)
TEST_PROGS += \
test-shape-complex \
$(NULL)
test_shape_complex_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
test_shape_complex_LDADD = $(LDADD) $(FREETYPE_LIBS)
endif
......@@ -58,6 +64,7 @@ TESTS_ENVIRONMENT = \
MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256)) \
G_DEBUG=gc-friendly \
G_SLICE=always-malloc \
srcdir=$(srcdir) \
$(ENV)
......
......@@ -49,6 +49,27 @@ HB_BEGIN_DECLS
((const char *) s)[3]))
static inline const char *
srcdir (void)
{
static const char *s;
if (!s) {
s = getenv ("srcdir");
#ifdef SRCDIR
if (!s || !s[0])
s = SRCDIR;
#endif
if (!s || !s[0])
s = ".";
}
return s;
}
/* Helpers */
static inline void
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册