Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
25a23bae
E
engine
项目概览
weixin_43355755
/
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,发现更多精彩内容 >>
未验证
提交
25a23bae
编写于
8月 27, 2020
作者:
C
Casey Hillers
提交者:
GitHub
8月 27, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[fuchsia] Add fuchsia_ctl func to test script (#20827)
上级
195b1480
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
29 addition
and
21 deletion
+29
-21
testing/fuchsia/run_tests.sh
testing/fuchsia/run_tests.sh
+29
-21
未找到文件。
testing/fuchsia/run_tests.sh
浏览文件 @
25a23bae
...
...
@@ -17,7 +17,7 @@
# This script also expects a private key available at:
# "/etc/botanist/keys/id_rsa_infra".
set
-Ee
set
-Ee
x
test_timeout_seconds
=
300
...
...
@@ -39,24 +39,31 @@ else
echo
"Connecting to device
$device_name
"
fi
# Wrapper function to pass common args to fuchsia_ctl.
fuchsia_ctl
()
{
./fuchsia_ctl
-d
$device_name
"
$@
"
}
reboot
()
{
./fuchsia_ctl
-d
$device_name
ssh
\
-c
"log_listener --dump_logs yes --file /tmp/log.txt"
\
fuchsia_ctl ssh
\
--timeout-seconds
$ssh_timeout_seconds
\
--identity-file
$pkey
--identity-file
$pkey
\
-c
"log_listener --dump_logs yes --file /tmp/log.txt"
# As we are not using recipes we don't have a way to know the location
# to upload the log to isolated. We are saving the log to a file to avoid dart
# hanging when running the process and then just using printing the content to
# the console.
./fuchsia_ctl
-d
$device_name
ssh
\
-c
"cat /tmp/log.txt"
\
fuchsia_ctl ssh
\
--timeout-seconds
$ssh_timeout_seconds
\
--identity-file
$pkey
--identity-file
$pkey
\
-c
"cat /tmp/log.txt"
echo
"
$(
date
)
START:REBOOT ----------------------------------------"
# note: this will set an exit code of 255, which we can ignore.
./fuchsia_ctl
-d
$device_name
ssh
-c
"dm reboot-recovery"
\
--identity-file
$pkey
||
true
fuchsia_ctl ssh
\
--identity-file
$pkey
\
-c
"dm reboot-recovery"
||
true
echo
"
$(
date
)
END:REBOOT ------------------------------------------"
}
...
...
@@ -64,13 +71,14 @@ trap reboot EXIT
echo
"
$(
date
)
START:PAVING ------------------------------------------"
ssh-keygen
-y
-f
$pkey
>
key.pub
./fuchsia_ctl
-d
$device_name
pave
-i
$1
\
fuchsia_ctl pave
\
-i
$1
\
--public-key
"key.pub"
echo
"
$(
date
)
END:PAVING --------------------------------------------"
echo
"
$(
date
)
START:WAIT_DEVICE_READY -------------------------------"
for
i
in
{
1..10
}
;
do
./fuchsia_ctl
-d
$device_name
ssh
\
fuchsia_ctl
ssh
\
--identity-file
$pkey
\
-c
"echo up"
&&
break
||
sleep
15
;
done
...
...
@@ -82,7 +90,7 @@ tar -xvzf $2 -C packages 1> /dev/null
echo
"
$(
date
)
END:EXTRACT_PACKAGES ---------------------------------"
echo
"
$(
date
)
START:testing_tests -----------------------------------"
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
testing_tests-0.far
\
-t
testing_tests
\
--identity-file
$pkey
\
...
...
@@ -93,7 +101,7 @@ echo "$(date) DONE:testing_tests ------------------------------------"
# TODO(https://github.com/flutter/flutter/issues/61212): Re-enable ParagraphTest
# once it passes on Fuchsia.
echo
"
$(
date
)
START:txt_tests ---------------------------------------"
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
txt_tests-0.far
\
-t
txt_tests
\
-a
"--gtest_filter=-ParagraphTest.*"
\
...
...
@@ -107,7 +115,7 @@ echo "$(date) DONE:txt_tests ----------------------------------------"
# TODO(https://github.com/flutter/flutter/issues/58211): Re-enable MessageLoop
# test once it passes on Fuchsia.
echo
"
$(
date
)
START:fml_tests ---------------------------------------"
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
fml_tests-0.far
\
-t
fml_tests
\
-a
"--gtest_filter=-MessageLoop.TimeSensistiveTest_*:FileTest.CanTruncateAndWrite:FileTest.CreateDirectoryStructure"
\
...
...
@@ -118,7 +126,7 @@ echo "$(date) DONE:fml_tests ----------------------------------------"
echo
"
$(
date
)
START:flow_tests --------------------------------------"
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
flow_tests-0.far
\
-t
flow_tests
\
--identity-file
$pkey
\
...
...
@@ -128,7 +136,7 @@ echo "$(date) DONE:flow_tests ---------------------------------------"
echo
"
$(
date
)
START:runtime_tests -----------------------------------"
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
runtime_tests-0.far
\
-t
runtime_tests
\
--identity-file
$pkey
\
...
...
@@ -137,7 +145,7 @@ echo "$(date) START:runtime_tests -----------------------------------"
echo
"
$(
date
)
DONE:runtime_tests ------------------------------------"
echo
"
$(
date
)
START:ui_tests ----------------------------------------"
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
ui_tests-0.far
\
-t
ui_tests
\
--identity-file
$pkey
\
...
...
@@ -146,7 +154,7 @@ echo "$(date) START:ui_tests ----------------------------------------"
echo
"
$(
date
)
DONE:ui_tests -----------------------------------------"
echo
"
$(
date
)
START:shell_tests -------------------------------------"
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
shell_tests-0.far
\
-t
shell_tests
\
--identity-file
$pkey
\
...
...
@@ -156,7 +164,7 @@ echo "$(date) DONE:shell_tests --------------------------------------"
# TODO(gw280): Enable tests using JIT runner
echo
"
$(
date
)
START:flutter_runner_tests ----------------------------"
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
flutter_aot_runner-0.far
\
-f
flutter_runner_tests-0.far
\
-t
flutter_runner_tests
\
...
...
@@ -165,7 +173,7 @@ echo "$(date) START:flutter_runner_tests ----------------------------"
--packages-directory
packages
# TODO(https://github.com/flutter/flutter/issues/61768): De-flake and re-enable
#
./fuchsia_ctl -d $device_name
test \
#
fuchsia_ctl
test \
# -f flutter_aot_runner-0.far \
# -f flutter_runner_scenic_tests-0.far \
# -t flutter_runner_scenic_tests \
...
...
@@ -173,7 +181,7 @@ echo "$(date) START:flutter_runner_tests ----------------------------"
# --timeout-seconds $test_timeout_seconds \
# --packages-directory packages
./fuchsia_ctl
-d
$device_name
test
\
fuchsia_ctl
test
\
-f
flutter_aot_runner-0.far
\
-f
flutter_runner_tzdata_tests-0.far
\
-t
flutter_runner_tzdata_tests
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录