Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
0ce0f878
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看板
提交
0ce0f878
编写于
3月 15, 2018
作者:
G
Garret Rieger
提交者:
Behdad Esfahbod
3月 16, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[subset] Rename hb-fuzzer -> hb-shape-fuzzer.
上级
1e9bd6d5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
22 deletion
+22
-22
test/fuzzing/CMakeLists.txt
test/fuzzing/CMakeLists.txt
+8
-8
test/fuzzing/Makefile.am
test/fuzzing/Makefile.am
+8
-8
test/fuzzing/hb-shape-fuzzer.cc
test/fuzzing/hb-shape-fuzzer.cc
+0
-0
test/fuzzing/run-shape-fuzzer-tests.py
test/fuzzing/run-shape-fuzzer-tests.py
+6
-6
未找到文件。
test/fuzzing/CMakeLists.txt
浏览文件 @
0ce0f878
if
(
HB_CHECK
)
file
(
READ
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/Makefile.am"
MAKEFILEAM
)
extract_make_variable
(
hb_fuzzer_SOURCES
${
MAKEFILEAM
}
)
extract_make_variable
(
hb_
shape_
fuzzer_SOURCES
${
MAKEFILEAM
}
)
extract_make_variable
(
hb_subset_fuzzer_SOURCES
${
MAKEFILEAM
}
)
# TODO: enable these two
#extract_make_variable (FUZZING_CPPFLAGS ${MAKEFILEAM}) # extracting regex fail
#add_executable (hb-fuzzer # it should be run only after ragel execution
#add_executable (hb-
shape-
fuzzer # it should be run only after ragel execution
# ${project_sources} ${project_extra_sources} ${project_headers}
# ${hb_fuzzer_SOURCES})
# ${hb_
shape_
fuzzer_SOURCES})
add_executable
(
hb-
fuzzer
${
hb
_fuzzer_SOURCES
}
)
target_link_libraries
(
hb-fuzzer harfbuzz
)
add_executable
(
hb-
shape-fuzzer
${
hb_shape
_fuzzer_SOURCES
}
)
target_link_libraries
(
hb-
shape-
fuzzer harfbuzz
)
add_executable
(
hb-subset-fuzzer
${
hb_subset_fuzzer_SOURCES
}
)
target_link_libraries
(
hb-subset-fuzzer harfbuzz-subset
)
target_compile_definitions
(
hb-fuzzer PUBLIC
${
FUZZING_CPPFLAGS
}
)
target_compile_definitions
(
hb-
shape-
fuzzer PUBLIC
${
FUZZING_CPPFLAGS
}
)
target_compile_definitions
(
hb-subset-fuzzer PUBLIC
${
FUZZING_CPPFLAGS
}
)
add_test
(
NAME hb-fuzzer
COMMAND
"
${
PYTHON_EXECUTABLE
}
"
run-
fuzzer-tests.py $<TARGET_FILE:hb
-fuzzer>
add_test
(
NAME hb-
shape-
fuzzer
COMMAND
"
${
PYTHON_EXECUTABLE
}
"
run-
shape-fuzzer-tests.py $<TARGET_FILE:hb-shape
-fuzzer>
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
add_test
(
NAME hb-subset-fuzzer
COMMAND
"
${
PYTHON_EXECUTABLE
}
"
run-subset-fuzzer-tests.py $<TARGET_FILE:hb-subset-fuzzer>
...
...
test/fuzzing/Makefile.am
浏览文件 @
0ce0f878
...
...
@@ -14,13 +14,13 @@ $(top_builddir)/src/libharfbuzz-fuzzing.la: lib
EXTRA_DIST
+=
\
README
\
run-fuzzer-tests.py
\
run-
shape-
fuzzer-tests.py
\
run-subset-fuzzer-tests.py
\
CMakeLists.txt
\
$(NULL)
check_PROGRAMS
=
\
hb-fuzzer
\
hb-
shape-
fuzzer
\
hb-subset-fuzzer
\
$(NULL)
...
...
@@ -33,18 +33,18 @@ LDADD = \
$(top_builddir)
/src/libharfbuzz-fuzzing.la
\
$(NULL)
hb_fuzzer_SOURCES
=
\
hb_
shape_
fuzzer_SOURCES
=
\
hb-fuzzer.hh
\
hb-fuzzer.cc
\
hb-
shape-
fuzzer.cc
\
main.cc
\
$(NULL)
hb_fuzzer_LDADD
=
\
hb_
shape_
fuzzer_LDADD
=
\
$(LDADD)
\
$(NULL)
hb_fuzzer_CPPFLAGS
=
\
hb_
shape_
fuzzer_CPPFLAGS
=
\
$(AM_CPPFLAGS)
\
$(NULL)
hb_fuzzer_DEPENDENCIES
=
\
hb_
shape_
fuzzer_DEPENDENCIES
=
\
lib
\
$(NULL)
...
...
@@ -64,7 +64,7 @@ hb_subset_fuzzer_DEPENDENCIES = \
$(NULL)
check
:
EXEEXT
=
"
$(EXEEXT)
"
srcdir
=
"
$(srcdir)
"
builddir
=
"
$(builddir)
"
$(srcdir)
/run-fuzzer-tests.py
EXEEXT
=
"
$(EXEEXT)
"
srcdir
=
"
$(srcdir)
"
builddir
=
"
$(builddir)
"
$(srcdir)
/run-
shape-
fuzzer-tests.py
EXEEXT
=
"
$(EXEEXT)
"
srcdir
=
"
$(srcdir)
"
builddir
=
"
$(builddir)
"
$(srcdir)
/run-subset-fuzzer-tests.py
-include
$(top_srcdir)/git.mk
test/fuzzing/hb-fuzzer.cc
→
test/fuzzing/hb-
shape-
fuzzer.cc
浏览文件 @
0ce0f878
文件已移动
test/fuzzing/run-fuzzer-tests.py
→
test/fuzzing/run-
shape-
fuzzer-tests.py
浏览文件 @
0ce0f878
...
...
@@ -6,23 +6,23 @@ import sys, os, subprocess
srcdir
=
os
.
environ
.
get
(
"srcdir"
,
"."
)
EXEEXT
=
os
.
environ
.
get
(
"EXEEXT"
,
""
)
top_builddir
=
os
.
environ
.
get
(
"top_builddir"
,
"."
)
hb_
fuzzer
=
os
.
path
.
join
(
top_builddir
,
"hb
-fuzzer"
+
EXEEXT
)
hb_
shape_fuzzer
=
os
.
path
.
join
(
top_builddir
,
"hb-shape
-fuzzer"
+
EXEEXT
)
if
not
os
.
path
.
exists
(
hb_fuzzer
):
if
not
os
.
path
.
exists
(
hb_
shape_
fuzzer
):
if
len
(
sys
.
argv
)
==
1
or
not
os
.
path
.
exists
(
sys
.
argv
[
1
]):
print
(
"""Failed to find hb-fuzzer binary automatically,
print
(
"""Failed to find hb-
shape-
fuzzer binary automatically,
please provide it as the first argument to the tool"""
)
sys
.
exit
(
1
)
hb_fuzzer
=
sys
.
argv
[
1
]
hb_
shape_
fuzzer
=
sys
.
argv
[
1
]
print
(
'hb_
fuzzer:'
,
hb
_fuzzer
)
print
(
'hb_
shape_fuzzer:'
,
hb_shape
_fuzzer
)
fails
=
0
for
line
in
open
(
os
.
path
.
join
(
srcdir
,
".."
,
"shaping"
,
"data"
,
"in-house"
,
"tests"
,
"fuzzed.tests"
)):
font
=
line
.
split
(
":"
)[
0
]
p
=
subprocess
.
Popen
([
hb_fuzzer
,
os
.
path
.
join
(
srcdir
,
".."
,
"shaping"
,
font
)])
p
=
subprocess
.
Popen
([
hb_
shape_
fuzzer
,
os
.
path
.
join
(
srcdir
,
".."
,
"shaping"
,
font
)])
if
p
.
wait
()
!=
0
:
fails
=
fails
+
1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录