Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_34031325
engine
提交
a82343be
E
engine
项目概览
qq_34031325
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
a82343be
编写于
4月 01, 2020
作者:
L
liyuqian
提交者:
GitHub
4月 01, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add build_and_test_linux_release presubmit test (#17073)
上级
9eacd028
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
9 deletion
+21
-9
.cirrus.yml
.cirrus.yml
+10
-0
flutter_frontend_server/test/to_string_test.dart
flutter_frontend_server/test/to_string_test.dart
+5
-1
shell/common/shell_unittests.cc
shell/common/shell_unittests.cc
+5
-7
testing/run_tests.py
testing/run_tests.py
+1
-1
未找到文件。
.cirrus.yml
浏览文件 @
a82343be
...
...
@@ -60,10 +60,20 @@ task:
cd $ENGINE_PATH/src/out/host_release/
./txt_benchmarks --benchmark_format=json > txt_benchmarks.json
./fml_benchmarks --benchmark_format=json > fml_benchmarks.json
./fml_benchmarks --benchmark_format=json > shell_benchmarks.json
cd $ENGINE_PATH/src/flutter/testing/benchmark
pub get
dart bin/parse_and_send.dart ../../../out/host_release/txt_benchmarks.json
dart bin/parse_and_send.dart ../../../out/host_release/fml_benchmarks.json
dart bin/parse_and_send.dart ../../../out/host_release/shell_benchmarks.json
-
name
:
build_and_test_linux_release
compile_host_script
:
|
cd $ENGINE_PATH/src
./flutter/tools/gn --runtime-mode=release
ninja -C out/host_release
test_host_script
:
|
cd $ENGINE_PATH/src
./flutter/testing/run_tests.sh host_release
-
name
:
build_and_test_linux_unopt_debug
compile_host_script
:
|
cd $ENGINE_PATH/src
...
...
flutter_frontend_server/test/to_string_test.dart
浏览文件 @
a82343be
...
...
@@ -270,9 +270,13 @@ void main(List<String> args) async {
]));
final
ProcessResult
runResult
=
Process
.
runSync
(
dart
,
<
String
>[
regularDill
]);
_checkProcessResult
(
runResult
);
String
paintString
=
'"Paint.toString":"Paint(Color(0xffffffff))"'
;
if
(
const
bool
.
fromEnvironment
(
'dart.vm.product'
,
defaultValue:
false
))
{
paintString
=
'"Paint.toString":"Instance of
\'
Paint
\'
"'
;
}
expect
(
runResult
.
stdout
.
trim
(),
'{
"Paint.toString":"Paint(Color(0xffffffff))"
,'
'{
$paintString
,'
'"Brightness.toString":"Brightness.dark",'
'"Foo.toString":"I am a Foo",'
'"Keep.toString":"I am a Keep"}'
,
...
...
shell/common/shell_unittests.cc
浏览文件 @
a82343be
...
...
@@ -270,21 +270,19 @@ TEST_F(ShellTest, BlacklistedDartVMFlag) {
fml
::
CommandLine
::
Option
(
"dart-flags"
,
"--verify_after_gc"
)};
fml
::
CommandLine
command_line
(
""
,
options
,
std
::
vector
<
std
::
string
>
());
#if !FLUTTER_RELEASE
// Upon encountering a non-whitelisted Dart flag the process terminates.
const
char
*
expected
=
"Encountered blacklisted Dart VM flag: --verify_after_gc"
;
ASSERT_DEATH
(
flutter
::
SettingsFromCommandLine
(
command_line
),
expected
);
#else
flutter
::
Settings
settings
=
flutter
::
SettingsFromCommandLine
(
command_line
);
EXPECT_EQ
(
settings
.
dart_flags
.
size
(),
0u
);
#endif
}
TEST_F
(
ShellTest
,
WhitelistedDartVMFlag
)
{
const
std
::
vector
<
fml
::
CommandLine
::
Option
>
options
=
{
fml
::
CommandLine
::
Option
(
"dart-flags"
,
"--max_profile_depth 1,--random_seed 42"
)};
#if !FLUTTER_RELEASE
fml
::
CommandLine
::
Option
(
"dart-flags"
,
"--max_profile_depth 1,--random_seed 42"
)
#endif
};
fml
::
CommandLine
command_line
(
""
,
options
,
std
::
vector
<
std
::
string
>
());
flutter
::
Settings
settings
=
flutter
::
SettingsFromCommandLine
(
command_line
);
...
...
testing/run_tests.py
浏览文件 @
a82343be
...
...
@@ -409,7 +409,7 @@ def main():
if
'benchmarks'
in
types
and
not
IsWindows
():
RunEngineBenchmarks
(
build_dir
,
engine_filter
)
if
'engine'
in
types
or
'font-subset'
in
types
:
if
(
'engine'
in
types
or
'font-subset'
in
types
)
and
args
.
variant
!=
'host_release'
:
RunCmd
([
'python'
,
'test.py'
],
cwd
=
font_subset_dir
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录