Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
16128aca
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
16128aca
编写于
8月 26, 2020
作者:
S
storypku
提交者:
Liu Jiaming
8月 26, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Script: variable renaming for readability
上级
7c0bc5e8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
40 addition
and
40 deletion
+40
-40
scripts/apollo_build.sh
scripts/apollo_build.sh
+10
-10
scripts/apollo_coverage.sh
scripts/apollo_coverage.sh
+8
-8
scripts/apollo_test.sh
scripts/apollo_test.sh
+22
-22
未找到文件。
scripts/apollo_build.sh
浏览文件 @
16128aca
...
...
@@ -68,15 +68,15 @@ function _determine_map_disabled() {
function
determine_disabled_build_targets
()
{
DISABLED_TARGETS
=
""
local
compo
=
"
$1
"
if
[
-z
"
${
compo
}
"
]
;
then
local
compo
nent
=
"
$1
"
if
[
-z
"
${
compo
nent
}
"
]
;
then
_determine_drivers_disabled
_determine_localization_disabled
_determine_perception_disabled
_determine_planning_disabled
_determine_map_disabled
else
case
"
${
compo
}
"
in
case
"
${
compo
nent
}
"
in
drivers
)
_determine_drivers_disabled
;;
...
...
@@ -112,20 +112,20 @@ function determine_build_targets() {
return
fi
for
compo
in
$@
;
do
for
compo
nent
in
$@
;
do
local
build_targets
local
exceptions
if
[[
"
${
compo
}
"
==
"cyber"
]]
;
then
if
[[
"
${
compo
nent
}
"
==
"cyber"
]]
;
then
if
[[
"
${
ARCH
}
"
==
"x86_64"
]]
;
then
build_targets
=
"//cyber/... union //modules/tools/visualizer/..."
else
build_targets
=
"//cyber/..."
fi
elif
[[
-d
"
${
APOLLO_ROOT_DIR
}
/modules/
${
compo
}
"
]]
;
then
exceptions
=
"
$(
determine_disabled_build_targets
${
compo
}
)
"
build_targets
=
"//modules/
${
compo
}
/...
${
exceptions
}
"
elif
[[
-d
"
${
APOLLO_ROOT_DIR
}
/modules/
${
compo
nent
}
"
]]
;
then
exceptions
=
"
$(
determine_disabled_build_targets
${
compo
nent
}
)
"
build_targets
=
"//modules/
${
compo
nent
}
/...
${
exceptions
}
"
else
error
"Oops, no such component '
${
compo
}
' under <APOLLO_ROOT_DIR>/modules/ . Exiting ..."
error
"Oops, no such component '
${
compo
nent
}
' under <APOLLO_ROOT_DIR>/modules/ . Exiting ..."
exit
1
fi
if
[
-z
"
${
targets_all
}
"
]
;
then
...
...
@@ -207,7 +207,7 @@ function build_simulator() {
else
fail
"Building Apollo simulator failed."
fi
popd
>
/dev/null
popd
>
/dev/null
fi
}
...
...
scripts/apollo_coverage.sh
浏览文件 @
16128aca
...
...
@@ -76,15 +76,15 @@ function determine_disabled_targets() {
fi
local
disabled
=
for
compo
in
$@
;
do
if
[[
"
${
compo
}
"
==
"drivers"
]]
;
then
for
compo
nent
in
$@
;
do
if
[[
"
${
compo
nent
}
"
==
"drivers"
]]
;
then
if
!
${
USE_ESD_CAN
}
;
then
warning
"ESD CAN library supplied by ESD Electronics doesn't exist."
warning
"If you need ESD CAN, please refer to:"
warning
" third_party/can_card_library/esd_can/README.md"
disabled
=
"
${
disabled
}
except //modules/drivers/canbus/can_client/esd/..."
fi
elif
[[
"
${
compo
}
"
==
"localization"
]]
;
then
elif
[[
"
${
compo
nent
}
"
==
"localization"
]]
;
then
if
[[
"
${
ARCH
}
"
!=
"x86_64"
]]
;
then
disabled
=
"
${
disabled
}
except //modules/localization/msf/..."
fi
...
...
@@ -103,14 +103,14 @@ function determine_test_targets() {
return
fi
for
compo
in
$@
;
do
for
compo
nent
in
$@
;
do
local
test_targets
if
[[
"
${
compo
}
"
==
"cyber"
]]
;
then
if
[[
"
${
compo
nent
}
"
==
"cyber"
]]
;
then
test_targets
=
"//cyber/..."
elif
[[
-d
"
${
APOLLO_ROOT_DIR
}
/modules/
${
compo
}
"
]]
;
then
test_targets
=
"//modules/
${
compo
}
/..."
elif
[[
-d
"
${
APOLLO_ROOT_DIR
}
/modules/
${
compo
nent
}
"
]]
;
then
test_targets
=
"//modules/
${
compo
nent
}
/..."
else
error
"Oops, no such component '
${
compo
}
' under <APOLLO_ROOT_DIR>/modules/ . Exiting ..."
error
"Oops, no such component '
${
compo
nent
}
' under <APOLLO_ROOT_DIR>/modules/ . Exiting ..."
exit
1
fi
if
[
-z
"
${
targets_all
}
"
]
;
then
...
...
scripts/apollo_test.sh
浏览文件 @
16128aca
...
...
@@ -87,23 +87,23 @@ function determine_disabled_targets() {
return
fi
for
compo
in
$@
;
do
case
"
${
compo
}
"
in
drivers
)
_determine_drivers_disabled
;;
localization
)
_determine_localization_disabled
;;
perception
)
_determine_perception_disabled
;;
planning
)
_determine_planning_disabled
;;
map
)
_determine_map_disabled
;;
for
compo
nent
in
$@
;
do
case
"
${
compo
nent
}
"
in
drivers
)
_determine_drivers_disabled
;;
localization
)
_determine_localization_disabled
;;
perception
)
_determine_perception_disabled
;;
planning
)
_determine_planning_disabled
;;
map
)
_determine_map_disabled
;;
esac
done
...
...
@@ -118,14 +118,14 @@ function determine_test_targets() {
return
fi
for
compo
in
$@
;
do
for
compo
nent
in
$@
;
do
local
test_targets
if
[[
"
${
compo
}
"
==
"cyber"
]]
;
then
if
[[
"
${
compo
nent
}
"
==
"cyber"
]]
;
then
test_targets
=
"//cyber/..."
elif
[[
-d
"
${
APOLLO_ROOT_DIR
}
/modules/
${
compo
}
"
]]
;
then
test_targets
=
"//modules/
${
compo
}
/..."
elif
[[
-d
"
${
APOLLO_ROOT_DIR
}
/modules/
${
compo
nent
}
"
]]
;
then
test_targets
=
"//modules/
${
compo
nent
}
/..."
else
error
"Oops, no such component '
${
compo
}
' under <APOLLO_ROOT_DIR>/modules/ . Exiting ..."
error
"Oops, no such component '
${
compo
nent
}
' under <APOLLO_ROOT_DIR>/modules/ . Exiting ..."
exit
1
fi
if
[
-z
"
${
targets_all
}
"
]
;
then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录