[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.
This commit is contained in:
parent
8fdba506f0
commit
a346e923a9
|
@ -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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue