Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Incubator Pegasus
提交
3a8035c6
Incubator Pegasus
项目概览
apache
/
Incubator Pegasus
通知
9
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Incubator Pegasus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3a8035c6
编写于
10月 17, 2018
作者:
W
Wu Tao
提交者:
QinZuoyan
10月 17, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scripts: add shell option --disable_gperf and install tests in builder/bin (#188)
上级
ee7e730e
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
29 addition
and
10 deletion
+29
-10
rdsn
rdsn
+1
-1
run.sh
run.sh
+10
-1
src/base/test/CMakeLists.txt
src/base/test/CMakeLists.txt
+1
-1
src/build.sh
src/build.sh
+9
-0
src/geo/test/CMakeLists.txt
src/geo/test/CMakeLists.txt
+1
-1
src/redis_protocol/proxy_ut/CMakeLists.txt
src/redis_protocol/proxy_ut/CMakeLists.txt
+1
-1
src/server/test/CMakeLists.txt
src/server/test/CMakeLists.txt
+1
-1
src/test/bench_test/CMakeLists.txt
src/test/bench_test/CMakeLists.txt
+1
-0
src/test/function_test/CMakeLists.txt
src/test/function_test/CMakeLists.txt
+1
-1
src/test/kill_test/CMakeLists.txt
src/test/kill_test/CMakeLists.txt
+1
-1
src/test/pressure_test/CMakeLists.txt
src/test/pressure_test/CMakeLists.txt
+1
-1
src/test/upgrade_test/CMakeLists.txt
src/test/upgrade_test/CMakeLists.txt
+1
-1
未找到文件。
rdsn
@
9fdc118c
比较
0b6b42d0
...
9fdc118c
Subproject commit
0b6b42d045ce34db7159af77fc9defc16323514
f
Subproject commit
9fdc118cd0b8bc7abd1a2a6d9426c846f71481e
f
run.sh
浏览文件 @
3a8035c6
...
...
@@ -69,6 +69,8 @@ function usage_build()
echo
" -w|--warning_all open all warnings when building, default no"
echo
" --enable_gcov generate gcov code coverage report, default no"
echo
" -v|--verbose build in verbose mode, default no"
echo
" --disable_gperf build without gperftools, this flag is mainly used"
echo
" to enable valgrind memcheck, default no"
}
function
run_build
()
{
...
...
@@ -132,6 +134,10 @@ function run_build()
-v
|
--verbose
)
RUN_VERBOSE
=
YES
;;
--disable_gperf
)
DISABLE_GPERF
=
YES
shift
;;
*
)
echo
"ERROR: unknown option
\"
$key
\"
"
echo
...
...
@@ -183,6 +189,9 @@ function run_build()
if
[
"
$ENABLE_GCOV
"
==
"YES"
]
;
then
OPT
=
"
$OPT
--enable_gcov"
fi
if
[
"
$DISABLE_GPERF
"
==
"YES"
]
;
then
OPT
=
"
$OPT
--disable_gperf"
fi
./run.sh build
$OPT
--notest
if
[
$?
-ne
0
]
;
then
echo
"ERROR: build rdsn failed"
...
...
@@ -266,7 +275,7 @@ function run_build()
C_COMPILER
=
"
$C_COMPILER
"
CXX_COMPILER
=
"
$CXX_COMPILER
"
BUILD_TYPE
=
"
$BUILD_TYPE
"
\
CLEAR
=
"
$CLEAR
"
PART_CLEAR
=
"
$PART_CLEAR
"
JOB_NUM
=
"
$JOB_NUM
"
\
BOOST_DIR
=
"
$BOOST_DIR
"
WARNING_ALL
=
"
$WARNING_ALL
"
ENABLE_GCOV
=
"
$ENABLE_GCOV
"
\
RUN_VERBOSE
=
"
$RUN_VERBOSE
"
TEST_MODULE
=
"
$TEST_MODULE
"
./build.sh
RUN_VERBOSE
=
"
$RUN_VERBOSE
"
TEST_MODULE
=
"
$TEST_MODULE
"
DISABLE_GPERF
=
"
$DISABLE_GPERF
"
./build.sh
if
[
$?
-ne
0
]
;
then
echo
"ERROR: build pegasus failed"
exit
1
...
...
src/base/test/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -17,4 +17,4 @@ set(MY_BOOST_PACKAGES system filesystem)
set
(
MY_BINPLACES
"config.ini"
)
dsn_add_
executable
()
dsn_add_
test
()
src/build.sh
浏览文件 @
3a8035c6
...
...
@@ -79,6 +79,15 @@ else
echo
"ENABLE_GCOV=NO"
fi
# valgrind can not work together with gpertools
# you may want to use this option when you want to run valgrind
if
[
"
$DISABLE_GPERF
"
==
"YES"
]
echo
"DISABLE_GPERF=YES"
CMAKE_OPTIONS
=
"
$CMAKE_OPTIONS
-DENABLE_GPERF=Off"
then
echo
"DISABLE_GPERF=NO"
fi
# You can specify customized boost by defining BOOST_DIR.
# Install boost like this:
# wget http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.zip?r=&ts=1442891144&use_mirror=jaist
...
...
src/geo/test/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -24,4 +24,4 @@ add_definitions(-Wno-attributes)
set
(
MY_BINPLACES
"config.ini"
)
dsn_add_
executable
()
dsn_add_
test
()
src/redis_protocol/proxy_ut/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -32,4 +32,4 @@ set(MY_BINPLACES "config.ini" "run.sh")
add_compile_options
(
"-Wno-dangling-else"
)
add_definitions
(
-Wno-attributes
)
dsn_add_
executable
()
dsn_add_
test
()
src/server/test/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -44,4 +44,4 @@ set(MY_BOOST_PACKAGES system filesystem regex)
set
(
MY_BINPLACES config.ini run.sh
)
dsn_add_
executable
()
dsn_add_
test
()
src/test/bench_test/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -27,3 +27,4 @@ set(MY_BOOST_PACKAGES system filesystem)
set
(
MY_BINPLACES
"config.ini"
)
dsn_add_executable
()
dsn_install_executable
()
src/test/function_test/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -32,4 +32,4 @@ set(MY_PROJ_LIB_PATH "../..")
set
(
MY_BINPLACES
"config.ini"
"run.sh"
)
dsn_add_
executable
()
dsn_add_
test
()
src/test/kill_test/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -27,4 +27,4 @@ if (UNIX)
SET
(
CMAKE_BUILD_WITH_INSTALL_RPATH TRUE
)
endif
()
dsn_add_
executable
()
dsn_add_
test
()
src/test/pressure_test/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -25,4 +25,4 @@ if (UNIX)
SET
(
CMAKE_BUILD_WITH_INSTALL_RPATH TRUE
)
endif
()
dsn_add_
executable
()
dsn_add_
test
()
src/test/upgrade_test/CMakeLists.txt
浏览文件 @
3a8035c6
...
...
@@ -26,4 +26,4 @@ if (UNIX)
SET
(
CMAKE_BUILD_WITH_INSTALL_RPATH TRUE
)
endif
()
dsn_add_
executable
()
dsn_add_
test
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录