Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
1752eab9
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22017
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1752eab9
编写于
2月 05, 2022
作者:
T
tangfangzhi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
optimize run container scripts
上级
e221d46c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
9 deletion
+24
-9
tests/parallel_test/run.sh
tests/parallel_test/run.sh
+8
-4
tests/parallel_test/run_case.sh
tests/parallel_test/run_case.sh
+8
-2
tests/parallel_test/run_container.sh
tests/parallel_test/run_container.sh
+8
-3
未找到文件。
tests/parallel_test/run.sh
浏览文件 @
1752eab9
...
...
@@ -140,7 +140,7 @@ function build_src() {
flock
-x
$lock_file
-c
"echo
\"
${
hosts
[index]
}
taos-tools build failed
\"
>>
$log_dir
/failed.log"
return
fi
script
=
"cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/bin/*
${
workdirs
[index]
}
/TDinternal/debug/build/bin/;cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/lib/*
${
workdirs
[index]
}
/TDinternal/debug/build/lib/;cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/lib64/*
${
workdirs
[index]
}
/TDinternal/debug/build/lib/;cp -rf
${
workdirs
[index]
}
/TDinternal/debug/build/bin/
demo
${
workdirs
[index]
}
/TDinternal/debug/build/bin/taosdemo"
script
=
"cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/bin/*
${
workdirs
[index]
}
/TDinternal/debug/build/bin/;cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/lib/*
${
workdirs
[index]
}
/TDinternal/debug/build/lib/;cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/lib64/*
${
workdirs
[index]
}
/TDinternal/debug/build/lib/;cp -rf
${
workdirs
[index]
}
/TDinternal/debug/build/bin/
taosBenchmark
${
workdirs
[index]
}
/TDinternal/debug/build/bin/taosdemo"
cmd
=
"
${
ssh_script
}
sh -c
\"
$script
\"
"
${
cmd
}
}
...
...
@@ -150,7 +150,7 @@ function rename_taosdemo() {
if
[
-z
${
passwords
[index]
}
]
;
then
ssh_script
=
"ssh -o StrictHostKeyChecking=no
${
usernames
[index]
}
@
${
hosts
[index]
}
"
fi
local
script
=
"cp -rf
${
workdirs
[index]
}
/TDinternal/debug/build/bin/
demo
${
workdirs
[index]
}
/TDinternal/debug/build/bin/taosdemo
"
local
script
=
"cp -rf
${
workdirs
[index]
}
/TDinternal/debug/build/bin/
taosBenchmark
${
workdirs
[index]
}
/TDinternal/debug/build/bin/taosdemo 2>/dev/null
"
cmd
=
"
${
ssh_script
}
sh -c
\"
$script
\"
"
${
cmd
}
}
...
...
@@ -182,7 +182,7 @@ function run_thread() {
fi
local
case_redo_time
=
`
echo
"
$line
"
|cut
-d
,
-f2
`
if
[
-z
"
$case_redo_time
"
]
;
then
case_redo_time
=
1
case_redo_time
=
${
DEFAULT_RETRY_TIME
:-
2
}
fi
local
exec_dir
=
`
echo
"
$line
"
|cut
-d
,
-f3
`
local
case_cmd
=
`
echo
"
$line
"
|cut
-d
,
-f4
`
...
...
@@ -232,6 +232,10 @@ function run_thread() {
if
[
$?
-eq
0
]
;
then
redo
=
1
fi
grep
-q
"ssh_exchange_identification: Connection closed by remote host"
$log_dir
/
$case_file
.log
if
[
$?
-eq
0
]
;
then
redo
=
1
fi
grep
-q
"kex_exchange_identification: read: Connection reset by peer"
$log_dir
/
$case_file
.log
if
[
$?
-eq
0
]
;
then
redo
=
1
...
...
@@ -273,7 +277,7 @@ function run_thread() {
cat
$log_dir
/
$case_file
.log
echo
"====================================================="
echo
-e
"
\e
[34m log file:
$log_dir
/
$case_file
.log
\e
[0m"
if
[
!
-z
$corefile
]
;
then
if
[
!
-z
"
$corefile
"
]
;
then
echo
-e
"
\e
[34m corefiles:
$corefile
\e
[0m"
fi
fi
...
...
tests/parallel_test/run_case.sh
浏览文件 @
1752eab9
...
...
@@ -43,11 +43,17 @@ fi
go
env
-w
GOPROXY
=
https://goproxy.cn
echo
"StrictHostKeyChecking no"
>>
/etc/ssh/ssh_config
ln
-s
$CONTAINER_TESTDIR
/debug/build/lib/libtaos.so /usr/lib/libtaos.so
ln
-s
/home/debug/build/lib/libtaos.so /usr/lib/libtaos.so 2>/dev/null
npm config
-g
set
unsafe-perm
npm config
-g
set
registry https://registry.npm.taobao.org
mkdir
-p
/home/sim/tsim
mkdir
-p
/var/lib/taos/subscribe
rm
-rf
${
CONTAINER_TESTDIR
}
/src/connector/nodejs/node_modules
rm
-rf
${
CONTAINER_TESTDIR
}
/tests/examples/nodejs/node_modules
rm
-rf
${
CONTAINER_TESTDIR
}
/tests/connectorTest/nodejsTest/nanosupport/node_modules
# ln -s /home/node_modules ${CONTAINER_TESTDIR}/src/connector/nodejs/
# ln -s /home/node_modules ${CONTAINER_TESTDIR}/tests/examples/nodejs/
# ln -s /home/node_modules ${CONTAINER_TESTDIR}/tests/connectorTest/nodejsTest/nanosupport/
# echo "$cmd"|grep -q "nodejs"
# if [ $? -eq 0 ]; then
# cd $CONTAINER_TESTDIR/src/connector/nodejs
...
...
tests/parallel_test/run_container.sh
浏览文件 @
1752eab9
...
...
@@ -77,24 +77,29 @@ if [ $? -eq 0 ]; then
-v
$TMP_DIR
/thread_volume/
$thread_no
/node_modules:
${
CONTAINER_TESTDIR
}
/tests/examples/nodejs/node_modules
\
-v
$TMP_DIR
/thread_volume/
$thread_no
/node_modules:
${
CONTAINER_TESTDIR
}
/tests/connectorTest/nodejsTest/nanosupport/node_modules"
fi
if
[
-f
"
$REPDIR
/src/plugins/taosadapter/example/config/taosadapter.toml"
]
;
then
TAOSADAPTER_TOML
=
"-v
$REPDIR
/src/plugins/taosadapter/example/config/taosadapter.toml:/etc/taos/taosadapter.toml:ro"
fi
docker run
\
-v
$REPDIR
/tests:
$CONTAINER_TESTDIR
/tests
\
-v
$MOUNT_DIR
\
-v
"
$TMP_DIR
/thread_volume/
$thread_no
/sim:
${
CONTAINER_TESTDIR
}
/sim"
\
-v
${
TMP_DIR
}
/thread_volume/
$thread_no
/coredump:/home/coredump
\
-v
$INTERNAL_REPDIR
/debug:
$CONTAINER_TESTDIR
/debug:ro
\
-v
$INTERNAL_REPDIR
/debug:
/home
/debug:ro
\
-v
$REPDIR
/deps:
$CONTAINER_TESTDIR
/deps:ro
\
-v
$REPDIR
/src:
$CONTAINER_TESTDIR
/src
\
-v
$REPDIR
/src/inc/taos.h:/usr/include/taos.h:ro
\
$TAOSADAPTER_TOML
\
-v
$REPDIR
/tests/examples:
$CONTAINER_TESTDIR
/tests/examples
\
-v
$REPDIR
/snap:
$CONTAINER_TESTDIR
/snap:ro
\
-v
$REPDIR
/alert:
$CONTAINER_TESTDIR
/alert:ro
\
-v
$REPDIR
/packaging/cfg/taos.cfg:/etc/taos/taos.cfg:ro
\
-v
$REPDIR
/packaging:
$CONTAINER_TESTDIR
/packaging:ro
\
-v
$REPDIR
/README.md:
$CONTAINER_TESTDIR
/README.md:ro
\
-v
$REPDIR
/src/connector/python/taos:/usr/local/lib/python3.8/site-packages/taos:ro
\
-e
LD_LIBRARY_PATH
=
$CONTAINER_TESTDIR
/debug/build/lib:
$CONTAINER_TESTDIR
/debug/build/lib64
\
-e
PATH
=
/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
$CONTAINER_TESTDIR
/debug/build/bin:/usr/local/go/bin:/usr/local/node-v12.20.0-linux-x64/bin:/usr/local/apache-maven-3.8.4/bin:/usr/local/jdk1.8.0_144/bin
\
-e
LD_LIBRARY_PATH
=
/home/debug/build/lib:/home
/debug/build/lib64
\
-e
PATH
=
/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
/home
/debug/build/bin:/usr/local/go/bin:/usr/local/node-v12.20.0-linux-x64/bin:/usr/local/apache-maven-3.8.4/bin:/usr/local/jdk1.8.0_144/bin
\
-e
JAVA_HOME
=
/usr/local/jdk1.8.0_144
\
--rm
--ulimit
core
=
-1
taos_test:v1.0
$CONTAINER_TESTDIR
/tests/parallel_test/run_case.sh
-d
"
$exec_dir
"
-c
"
$cmd
"
ret
=
$?
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录