Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
4d6dafd4
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4d6dafd4
编写于
1月 19, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename test/ to test/api/
上级
3b5c22c3
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
133 addition
and
127 deletion
+133
-127
configure.ac
configure.ac
+1
-0
test/Makefile.am
test/Makefile.am
+1
-127
test/api/Makefile.am
test/api/Makefile.am
+131
-0
test/api/hb-test.h
test/api/hb-test.h
+0
-0
test/api/test-blob.c
test/api/test-blob.c
+0
-0
test/api/test-buffer.c
test/api/test-buffer.c
+0
-0
test/api/test-c.c
test/api/test-c.c
+0
-0
test/api/test-common.c
test/api/test-common.c
+0
-0
test/api/test-cplusplus.cc
test/api/test-cplusplus.cc
+0
-0
test/api/test-font.c
test/api/test-font.c
+0
-0
test/api/test-object.c
test/api/test-object.c
+0
-0
test/api/test-ot-tag.c
test/api/test-ot-tag.c
+0
-0
test/api/test-shape-complex.c
test/api/test-shape-complex.c
+0
-0
test/api/test-shape.c
test/api/test-shape.c
+0
-0
test/api/test-unicode.c
test/api/test-unicode.c
+0
-0
test/api/test-version.c
test/api/test-version.c
+0
-0
未找到文件。
configure.ac
浏览文件 @
4d6dafd4
...
...
@@ -184,6 +184,7 @@ src/Makefile
src/hb-version.h
util/Makefile
test/Makefile
test/api/Makefile
])
AC_OUTPUT
test/Makefile.am
浏览文件 @
4d6dafd4
# Process this file with automake to produce Makefile.in
NULL
=
EXTRA_DIST
=
CLEANFILES
=
DISTCLEANFILES
=
MAINTAINERCLEANFILES
=
if
HAVE_GLIB
AM_CPPFLAGS
=
-DSRCDIR
=
"
\"
$(srcdir)
\"
"
-I
$(top_srcdir)
/src/
-I
$(top_builddir)
/src/
$(GLIB_CFLAGS)
$(GTHREAD_CFLAGS)
LDADD
=
$(top_builddir)
/src/libharfbuzz.la
$(GLIB_LIBS)
$(GTHREAD_LIBS)
EXTRA_DIST
+=
hb-test.h
check_PROGRAMS
=
$(TEST_PROGS)
noinst_PROGRAMS
=
$(TEST_PROGS)
TEST_PROGS
=
\
test-blob
\
test-buffer
\
test-common
\
test-font
\
test-object
\
test-shape
\
test-unicode
\
test-version
\
$(NULL)
if
HAVE_OT
TEST_PROGS
+=
\
test-ot-tag
\
$(NULL)
endif
# Tests for header compilation
TEST_PROGS
+=
\
test-c
\
test-cplusplus
\
$(NULL)
test_cplusplus_SOURCES
=
test-cplusplus.cc
test_c_CPPFLAGS
=
$(AM_CPPFLAGS)
test_cplusplus_CPPFLAGS
=
$(AM_CPPFLAGS)
if
HAVE_ICU
test_c_CPPFLAGS
+=
$(ICU_CFLAGS)
test_cplusplus_CPPFLAGS
+=
$(ICU_CFLAGS)
endif
if
HAVE_FREETYPE
test_c_CPPFLAGS
+=
$(FREETYPE_CFLAGS)
test_cplusplus_CPPFLAGS
+=
$(FREETYPE_CFLAGS)
endif
if
HAVE_FREETYPE
TEST_PROGS
+=
test-shape-complex
test_shape_complex_CPPFLAGS
=
$(AM_CPPFLAGS)
$(FREETYPE_CFLAGS)
test_shape_complex_LDADD
=
$(LDADD)
$(FREETYPE_LIBS)
endif
# Default test running environment
TESTS
=
$(TEST_PROGS)
TESTS_ENVIRONMENT
=
\
MALLOC_CHECK_
=
2
\
MALLOC_PERTURB_
=
$$
((
$
${
RANDOM
:-
256
}
% 256
))
\
G_DEBUG
=
gc-friendly
\
G_SLICE
=
always-malloc
\
srcdir
=
$(srcdir)
\
$(ENV)
# check-tool: Run tests under $(TOOL)
check-tool
:
$(AM_V_at)$(MAKE)
$(AM_MAKEFLAGS)
check
\
TESTS_ENVIRONMENT
=
'
$(TESTS_ENVIRONMENT)
$(top_builddir)
/libtool --mode=execute \
env
$(TOOL)
'
# check-tool-raw: Run tests under $(TOOL), but don't run under libtool
check-tool-raw
:
$(AM_V_at)$(MAKE)
$(AM_MAKEFLAGS)
check
\
TESTS_ENVIRONMENT
=
'
$(TESTS_ENVIRONMENT)
\
env
$(TOOL)
'
# check-gtester: Run tests under gtester
GTESTER
=
gtester
check-gtester
:
$(AM_V_at)$(MAKE)
$(AM_MAKEFLGS)
check-tool-raw
TOOL
=
"
$(GTESTER)
--verbose --keep-going"
# Check tests under valgrind. Saves log to log-valgrind.txt
VALGRIND_FLAGS
=
\
--tool
=
memcheck
--suppressions
=
$(srcdir)
/.valgrind-suppressions
\
--track-origins
=
yes
\
--leak-check
=
yes
$(EXTRA_VALGRIND_FLAGS)
# Can't do for now: --show-reachable=yes
CLEANFILES
+=
log-valgrind.txt
valgrind_verbose
=
$
(
valgrind_verbose_
$(V)
)
valgrind_verbose_
=
$
(
valgrind_verbose_
$(AM_DEFAULT_VERBOSITY)
)
valgrind_verbose_0
=
|
\
grep
'\(^[^=]\|ERROR SUMMARY\|definitely lost\|indirectly lost\)'
|
grep
-v
': 0'
# TODO: The following check does not fail if valgrind finds error. It should.
check-valgrind
:
$(AM_V_at)$(MAKE)
$(AM_MAKEFLGS)
check-tool
TOOL
=
"valgrind
$(VALGRIND_FLAGS)
"
\
2>&1 |
tee
log-valgrind.txt
$(valgrind_verbose)
# check-symbols: Finds untested API symbols
symbols-tested.txt
:
$(TEST_PROGS)
$(AM_V_GEN)$(top_builddir)
/libtool
--mode
=
execute nm
$^
\
|
grep
' U hb_'
|
sed
's/.* U hb_/hb_/'
\
|
sort
|
uniq
>
$@
.tmp
&&
mv
$@
.tmp
$@
symbols-exported.txt
:
$(top_builddir)/src/.libs/libharfbuzz.so
$(AM_V_GEN)$(top_builddir)
/libtool
--mode
=
execute nm
$^
\
|
grep
' T '
|
sed
's/.* T //'
|
grep
-v
'^\(_init\|_fini\)$$'
\
|
sort
|
uniq
>
$@
.tmp
&&
mv
$@
.tmp
$@
symbols-untested.txt
:
symbols-tested.txt symbols-exported.txt
$(AM_V_GEN)
diff
$^
>
$@
.tmp
;
mv
$@
.tmp
$@
CLEANFILES
+=
symbols-tested.txt symbols-exported.txt symbols-untested.txt
check-symbols
:
symbols-untested.txt
@
!
cat
$^
|
grep
.
else
check-am
:
err-glib
err-glib
:
@
echo
"You need to have glib support enabled to run the tests"
@
exit
77
endif
.PHONY
:
check-symbols check-tool check-valgrind
SUBDIRS
=
api
-include
$(top_srcdir)/git.mk
test/api/Makefile.am
0 → 100644
浏览文件 @
4d6dafd4
# Process this file with automake to produce Makefile.in
NULL
=
EXTRA_DIST
=
CLEANFILES
=
DISTCLEANFILES
=
MAINTAINERCLEANFILES
=
if
HAVE_GLIB
AM_CPPFLAGS
=
-DSRCDIR
=
"
\"
$(srcdir)
\"
"
-I
$(top_srcdir)
/src/
-I
$(top_builddir)
/src/
$(GLIB_CFLAGS)
$(GTHREAD_CFLAGS)
LDADD
=
$(top_builddir)
/src/libharfbuzz.la
$(GLIB_LIBS)
$(GTHREAD_LIBS)
EXTRA_DIST
+=
hb-test.h
check_PROGRAMS
=
$(TEST_PROGS)
noinst_PROGRAMS
=
$(TEST_PROGS)
TEST_PROGS
=
\
test-blob
\
test-buffer
\
test-common
\
test-font
\
test-object
\
test-shape
\
test-unicode
\
test-version
\
$(NULL)
if
HAVE_OT
TEST_PROGS
+=
\
test-ot-tag
\
$(NULL)
endif
# Tests for header compilation
TEST_PROGS
+=
\
test-c
\
test-cplusplus
\
$(NULL)
test_cplusplus_SOURCES
=
test-cplusplus.cc
test_c_CPPFLAGS
=
$(AM_CPPFLAGS)
test_cplusplus_CPPFLAGS
=
$(AM_CPPFLAGS)
if
HAVE_ICU
test_c_CPPFLAGS
+=
$(ICU_CFLAGS)
test_cplusplus_CPPFLAGS
+=
$(ICU_CFLAGS)
endif
if
HAVE_FREETYPE
test_c_CPPFLAGS
+=
$(FREETYPE_CFLAGS)
test_cplusplus_CPPFLAGS
+=
$(FREETYPE_CFLAGS)
endif
if
HAVE_FREETYPE
TEST_PROGS
+=
test-shape-complex
test_shape_complex_CPPFLAGS
=
$(AM_CPPFLAGS)
$(FREETYPE_CFLAGS)
test_shape_complex_LDADD
=
$(LDADD)
$(FREETYPE_LIBS)
endif
# Default test running environment
TESTS
=
$(TEST_PROGS)
TESTS_ENVIRONMENT
=
\
MALLOC_CHECK_
=
2
\
MALLOC_PERTURB_
=
$$
((
$
${
RANDOM
:-
256
}
% 256
))
\
G_DEBUG
=
gc-friendly
\
G_SLICE
=
always-malloc
\
srcdir
=
$(srcdir)
\
$(ENV)
# check-tool: Run tests under $(TOOL)
check-tool
:
$(AM_V_at)$(MAKE)
$(AM_MAKEFLAGS)
check
\
TESTS_ENVIRONMENT
=
'
$(TESTS_ENVIRONMENT)
$(top_builddir)
/libtool --mode=execute \
env
$(TOOL)
'
# check-tool-raw: Run tests under $(TOOL), but don't run under libtool
check-tool-raw
:
$(AM_V_at)$(MAKE)
$(AM_MAKEFLAGS)
check
\
TESTS_ENVIRONMENT
=
'
$(TESTS_ENVIRONMENT)
\
env
$(TOOL)
'
# check-gtester: Run tests under gtester
GTESTER
=
gtester
check-gtester
:
$(AM_V_at)$(MAKE)
$(AM_MAKEFLGS)
check-tool-raw
TOOL
=
"
$(GTESTER)
--verbose --keep-going"
# Check tests under valgrind. Saves log to log-valgrind.txt
VALGRIND_FLAGS
=
\
--tool
=
memcheck
--suppressions
=
$(srcdir)
/.valgrind-suppressions
\
--track-origins
=
yes
\
--leak-check
=
yes
$(EXTRA_VALGRIND_FLAGS)
# Can't do for now: --show-reachable=yes
CLEANFILES
+=
log-valgrind.txt
valgrind_verbose
=
$
(
valgrind_verbose_
$(V)
)
valgrind_verbose_
=
$
(
valgrind_verbose_
$(AM_DEFAULT_VERBOSITY)
)
valgrind_verbose_0
=
|
\
grep
'\(^[^=]\|ERROR SUMMARY\|definitely lost\|indirectly lost\)'
|
grep
-v
': 0'
# TODO: The following check does not fail if valgrind finds error. It should.
check-valgrind
:
$(AM_V_at)$(MAKE)
$(AM_MAKEFLGS)
check-tool
TOOL
=
"valgrind
$(VALGRIND_FLAGS)
"
\
2>&1 |
tee
log-valgrind.txt
$(valgrind_verbose)
# check-symbols: Finds untested API symbols
symbols-tested.txt
:
$(TEST_PROGS)
$(AM_V_GEN)$(top_builddir)
/libtool
--mode
=
execute nm
$^
\
|
grep
' U hb_'
|
sed
's/.* U hb_/hb_/'
\
|
sort
|
uniq
>
$@
.tmp
&&
mv
$@
.tmp
$@
symbols-exported.txt
:
$(top_builddir)/src/.libs/libharfbuzz.so
$(AM_V_GEN)$(top_builddir)
/libtool
--mode
=
execute nm
$^
\
|
grep
' T '
|
sed
's/.* T //'
|
grep
-v
'^\(_init\|_fini\)$$'
\
|
sort
|
uniq
>
$@
.tmp
&&
mv
$@
.tmp
$@
symbols-untested.txt
:
symbols-tested.txt symbols-exported.txt
$(AM_V_GEN)
diff
$^
>
$@
.tmp
;
mv
$@
.tmp
$@
CLEANFILES
+=
symbols-tested.txt symbols-exported.txt symbols-untested.txt
check-symbols
:
symbols-untested.txt
@
!
cat
$^
|
grep
.
else
check-am
:
err-glib
err-glib
:
@
echo
"You need to have glib support enabled to run the tests"
@
exit
77
endif
.PHONY
:
check-symbols check-tool check-valgrind
-include
$(top_srcdir)/git.mk
test/hb-test.h
→
test/
api/
hb-test.h
浏览文件 @
4d6dafd4
文件已移动
test/test-blob.c
→
test/
api/
test-blob.c
浏览文件 @
4d6dafd4
文件已移动
test/test-buffer.c
→
test/
api/
test-buffer.c
浏览文件 @
4d6dafd4
文件已移动
test/test-c.c
→
test/
api/
test-c.c
浏览文件 @
4d6dafd4
文件已移动
test/test-common.c
→
test/
api/
test-common.c
浏览文件 @
4d6dafd4
文件已移动
test/test-cplusplus.cc
→
test/
api/
test-cplusplus.cc
浏览文件 @
4d6dafd4
文件已移动
test/test-font.c
→
test/
api/
test-font.c
浏览文件 @
4d6dafd4
文件已移动
test/test-object.c
→
test/
api/
test-object.c
浏览文件 @
4d6dafd4
文件已移动
test/test-ot-tag.c
→
test/
api/
test-ot-tag.c
浏览文件 @
4d6dafd4
文件已移动
test/test-shape-complex.c
→
test/
api/
test-shape-complex.c
浏览文件 @
4d6dafd4
文件已移动
test/test-shape.c
→
test/
api/
test-shape.c
浏览文件 @
4d6dafd4
文件已移动
test/test-unicode.c
→
test/
api/
test-unicode.c
浏览文件 @
4d6dafd4
文件已移动
test/test-version.c
→
test/
api/
test-version.c
浏览文件 @
4d6dafd4
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录