Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
liujiuri
engine
提交
e9c99846
E
engine
项目概览
liujiuri
/
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,发现更多精彩内容 >>
未验证
提交
e9c99846
编写于
9月 10, 2019
作者:
Y
Yegor
提交者:
GitHub
9月 10, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add a convenience CLI tool for building and testing web engine (#12197)
上级
bfa43e17
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
52 addition
and
4 deletion
+52
-4
.cirrus.yml
.cirrus.yml
+1
-1
lib/web_ui/dev/felt
lib/web_ui/dev/felt
+47
-0
lib/web_ui/dev/felt.dart
lib/web_ui/dev/felt.dart
+0
-0
lib/web_ui/dev/test_runner.dart
lib/web_ui/dev/test_runner.dart
+4
-3
未找到文件。
.cirrus.yml
浏览文件 @
e9c99846
...
...
@@ -41,7 +41,7 @@ task:
$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
cd $ENGINE_PATH/src/flutter/lib/web_ui
$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
CHROME_NO_SANDBOX=true $ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/dart dev/
tes
t.dart
CHROME_NO_SANDBOX=true $ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/dart dev/
fel
t.dart
fetch_framework_script
:
|
mkdir -p $FRAMEWORK_PATH
cd $FRAMEWORK_PATH
...
...
lib/web_ui/dev/felt
0 → 100755
浏览文件 @
e9c99846
#!/bin/bash
# felt: a command-line utility for building and testing Flutter web engine.
# It stands for Flutter Engine Local Tester.
FELT_PATH
=
`
which felt
`
if
[
-z
"
$FELT_PATH
"
]
then
echo
"ERROR: felt is not in your PATH"
echo
"Fix: add lib/web_ui/dev to your PATH"
exit
1
fi
GCLIENT_PATH
=
`
which gclient
`
if
[
-z
"
$GCLIENT_PATH
"
]
then
echo
"ERROR: gclient is not in your PATH"
echo
"Fix: add the path to your installation of depot_tools to your PATH"
exit
1
fi
NINJA_PATH
=
`
which ninja
`
if
[
-z
"
$NINJA_PATH
"
]
then
echo
"ERROR: ninja is not in your PATH"
echo
"Fix: add the path to your installation of depot_tools to your PATH"
exit
1
fi
ENGINE_SRC_DIR
=
"
$(
dirname
$(
dirname
$(
dirname
$(
dirname
$(
dirname
${
FELT_PATH
}
)))))
"
FLUTTER_DIR
=
"
${
ENGINE_SRC_DIR
}
/flutter"
WEB_UI_DIR
=
"
${
FLUTTER_DIR
}
/lib/web_ui"
DEV_DIR
=
"
${
WEB_UI_DIR
}
/dev"
OUT_DIR
=
"
${
ENGINE_SRC_DIR
}
/out"
HOST_DEBUG_UNOPT_DIR
=
"
${
ENGINE_SRC_DIR
}
/out/host_debug_unopt"
DART_SDK_DIR
=
"
${
ENGINE_SRC_DIR
}
/out/host_debug_unopt/dart-sdk"
GN
=
"
${
FLUTTER_DIR
}
/tools/gn"
if
[
!
-d
"
${
OUT_DIR
}
"
]
||
[
!
-d
"
${
HOST_DEBUG_UNOPT_DIR
}
"
]
then
echo
"Compiling the Dart SDK."
gclient
sync
$GN
--unoptimized
--full-dart-sdk
ninja
-C
$HOST_DEBUG_UNOPT_DIR
fi
(
cd
$WEB_UI_DIR
&&
$DART_SDK_DIR
/bin/dart dev/felt.dart
$@
)
lib/web_ui/dev/
tes
t.dart
→
lib/web_ui/dev/
fel
t.dart
浏览文件 @
e9c99846
文件已移动
lib/web_ui/dev/test_runner.dart
浏览文件 @
e9c99846
...
...
@@ -138,7 +138,10 @@ Future<void> _buildTests() async {
}
}
Future
<
int
>
_runTestBatch
(
/// Runs a batch of tests.
///
/// Unless [expectFailure] is set to false, sets [io.exitCode] to a non-zero value if any tests fail.
Future
<
void
>
_runTestBatch
(
List
<
String
>
testFiles
,
{
@required
int
concurrency
,
@required
bool
expectFailure
,
...
...
@@ -174,6 +177,4 @@ Future<int> _runTestBatch(
io
.
exitCode
=
1
;
}
}
return
io
.
exitCode
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录