Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
f2fc2fe8
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f2fc2fe8
编写于
2月 19, 2021
作者:
sangshuduo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-2984] <fix>: combine taosdemo and taosdemox.
上级
03e1664d
变更
26
展开全部
隐藏空白更改
内联
并排
Showing
26 changed file
with
4740 addition
and
6364 deletion
+4740
-6364
packaging/deb/DEBIAN/prerm
packaging/deb/DEBIAN/prerm
+0
-1
packaging/deb/makedeb.sh
packaging/deb/makedeb.sh
+0
-1
packaging/rpm/tdengine.spec
packaging/rpm/tdengine.spec
+0
-2
packaging/tools/install.sh
packaging/tools/install.sh
+0
-2
packaging/tools/install_client.sh
packaging/tools/install_client.sh
+0
-2
packaging/tools/install_client_power.sh
packaging/tools/install_client_power.sh
+0
-2
packaging/tools/install_power.sh
packaging/tools/install_power.sh
+0
-2
packaging/tools/makeclient.sh
packaging/tools/makeclient.sh
+1
-1
packaging/tools/makeclient_power.sh
packaging/tools/makeclient_power.sh
+0
-1
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+1
-1
packaging/tools/makepkg_power.sh
packaging/tools/makepkg_power.sh
+0
-1
packaging/tools/post.sh
packaging/tools/post.sh
+0
-2
packaging/tools/remove.sh
packaging/tools/remove.sh
+0
-1
packaging/tools/remove_client.sh
packaging/tools/remove_client.sh
+0
-1
packaging/tools/remove_client_power.sh
packaging/tools/remove_client_power.sh
+0
-1
packaging/tools/remove_power.sh
packaging/tools/remove_power.sh
+0
-1
src/kit/CMakeLists.txt
src/kit/CMakeLists.txt
+0
-1
src/kit/taosdemo/CMakeLists.txt
src/kit/taosdemo/CMakeLists.txt
+32
-14
src/kit/taosdemo/insert.json
src/kit/taosdemo/insert.json
+0
-0
src/kit/taosdemo/query.json
src/kit/taosdemo/query.json
+0
-0
src/kit/taosdemo/subscribe.json
src/kit/taosdemo/subscribe.json
+0
-0
src/kit/taosdemo/taosdemo.c
src/kit/taosdemo/taosdemo.c
+4700
-1142
src/kit/taosdemox/CMakeLists.txt
src/kit/taosdemox/CMakeLists.txt
+0
-47
src/kit/taosdemox/taosdemox.c
src/kit/taosdemox/taosdemox.c
+0
-5132
tests/pytest/cluster/clusterEnvSetup/taosdemoWrapper.py
tests/pytest/cluster/clusterEnvSetup/taosdemoWrapper.py
+5
-5
tests/pytest/tools/lowaTest.py
tests/pytest/tools/lowaTest.py
+1
-1
未找到文件。
packaging/deb/DEBIAN/prerm
浏览文件 @
f2fc2fe8
...
...
@@ -26,7 +26,6 @@ else
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
${
csudo
}
rm
-f
${
cfg_link_dir
}
/
*
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
...
...
packaging/deb/makedeb.sh
浏览文件 @
f2fc2fe8
...
...
@@ -51,7 +51,6 @@ cp ${compile_dir}/../packaging/tools/startPre.sh ${pkg_dir}${install_home_pat
cp
${
compile_dir
}
/../packaging/tools/set_core.sh
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/../packaging/tools/taosd-dump-cfg.gdb
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosdemo
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosdemox
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosdump
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosd
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taos
${
pkg_dir
}${
install_home_path
}
/bin
...
...
packaging/rpm/tdengine.spec
浏览文件 @
f2fc2fe8
...
...
@@ -61,7 +61,6 @@ cp %{_compiledir}/../packaging/tools/taosd-dump-cfg.gdb %{buildroot}%{homepat
cp %{_compiledir}/build/bin/taos %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosd %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosdemo %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosdemox %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosdump %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/lib/${libfile} %{buildroot}%{homepath}/driver
cp %{_compiledir}/../src/inc/taos.h %{buildroot}%{homepath}/include
...
...
@@ -139,7 +138,6 @@ if [ $1 -eq 0 ];then
${csudo} rm -f ${bin_link_dir}/taos || :
${csudo} rm -f ${bin_link_dir}/taosd || :
${csudo} rm -f ${bin_link_dir}/taosdemo || :
${csudo} rm -f ${bin_link_dir}/taosdemox || :
${csudo} rm -f ${bin_link_dir}/taosdump || :
${csudo} rm -f ${cfg_link_dir}/* || :
${csudo} rm -f ${inc_link_dir}/taos.h || :
...
...
packaging/tools/install.sh
浏览文件 @
f2fc2fe8
...
...
@@ -179,7 +179,6 @@ function install_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmtaos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/tarbitrator
||
:
...
...
@@ -191,7 +190,6 @@ function install_bin() {
[
-x
${
install_main_dir
}
/bin/taos
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taos
${
bin_link_dir
}
/taos
||
:
[
-x
${
install_main_dir
}
/bin/taosd
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosd
${
bin_link_dir
}
/taosd
||
:
[
-x
${
install_main_dir
}
/bin/taosdemo
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdemo
${
bin_link_dir
}
/taosdemo
||
:
[
-x
${
install_main_dir
}
/bin/taosdemox
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdemox
${
bin_link_dir
}
/taosdemox
||
:
[
-x
${
install_main_dir
}
/bin/taosdump
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdump
${
bin_link_dir
}
/taosdump
||
:
[
-x
${
install_main_dir
}
/bin/remove.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove.sh
${
bin_link_dir
}
/rmtaos
||
:
[
-x
${
install_main_dir
}
/bin/set_core.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/set_core.sh
${
bin_link_dir
}
/set_core
||
:
...
...
packaging/tools/install_client.sh
浏览文件 @
f2fc2fe8
...
...
@@ -86,7 +86,6 @@ function install_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
fi
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmtaos
||
:
...
...
@@ -98,7 +97,6 @@ function install_bin() {
[
-x
${
install_main_dir
}
/bin/taos
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taos
${
bin_link_dir
}
/taos
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
[
-x
${
install_main_dir
}
/bin/taosdemo
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdemo
${
bin_link_dir
}
/taosdemo
||
:
[
-x
${
install_main_dir
}
/bin/taosdemox
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdemox
${
bin_link_dir
}
/taosdemox
||
:
[
-x
${
install_main_dir
}
/bin/taosdump
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdump
${
bin_link_dir
}
/taosdump
||
:
fi
[
-x
${
install_main_dir
}
/bin/remove_client.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove_client.sh
${
bin_link_dir
}
/rmtaos
||
:
...
...
packaging/tools/install_client_power.sh
浏览文件 @
f2fc2fe8
...
...
@@ -86,7 +86,6 @@ function install_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/power
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdump
||
:
fi
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmpower
||
:
...
...
@@ -98,7 +97,6 @@ function install_bin() {
[
-x
${
install_main_dir
}
/bin/power
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/power
${
bin_link_dir
}
/power
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
[
-x
${
install_main_dir
}
/bin/powerdemo
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/powerdemo
${
bin_link_dir
}
/powerdemo
||
:
[
-x
${
install_main_dir
}
/bin/powerdemox
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/powerdemox
${
bin_link_dir
}
/powerdemox
||
:
[
-x
${
install_main_dir
}
/bin/powerdump
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/powerdump
${
bin_link_dir
}
/powerdump
||
:
fi
[
-x
${
install_main_dir
}
/bin/remove_client_power.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove_client_power.sh
${
bin_link_dir
}
/rmpower
||
:
...
...
packaging/tools/install_power.sh
浏览文件 @
f2fc2fe8
...
...
@@ -174,7 +174,6 @@ function install_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/power
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmpower
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/tarbitrator
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
...
...
@@ -185,7 +184,6 @@ function install_bin() {
[
-x
${
install_main_dir
}
/bin/power
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/power
${
bin_link_dir
}
/power
||
:
[
-x
${
install_main_dir
}
/bin/powerd
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/powerd
${
bin_link_dir
}
/powerd
||
:
[
-x
${
install_main_dir
}
/bin/powerdemo
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/powerdemo
${
bin_link_dir
}
/powerdemo
||
:
[
-x
${
install_main_dir
}
/bin/powerdemox
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/powerdemox
${
bin_link_dir
}
/powerdemox
||
:
[
-x
${
install_main_dir
}
/bin/remove_power.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove_power.sh
${
bin_link_dir
}
/rmpower
||
:
[
-x
${
install_main_dir
}
/bin/set_core.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/set_core.sh
${
bin_link_dir
}
/set_core
||
:
[
-x
${
install_main_dir
}
/bin/tarbitrator
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/tarbitrator
${
bin_link_dir
}
/tarbitrator
||
:
...
...
packaging/tools/makeclient.sh
浏览文件 @
f2fc2fe8
...
...
@@ -45,7 +45,7 @@ if [ "$osType" != "Darwin" ]; then
strip
${
build_dir
}
/bin/taos
bin_files
=
"
${
build_dir
}
/bin/taos
${
script_dir
}
/remove_client.sh"
else
bin_files
=
"
${
build_dir
}
/bin/taos
${
build_dir
}
/bin/taosdump
${
build_dir
}
/bin/taosdemo
${
build_dir
}
/bin/taosdemox
\
bin_files
=
"
${
build_dir
}
/bin/taos
${
build_dir
}
/bin/taosdump
${
build_dir
}
/bin/taosdemo
\
${
script_dir
}
/remove_client.sh
${
script_dir
}
/set_core.sh
${
script_dir
}
/get_client.sh
${
script_dir
}
/taosd-dump-cfg.gdb"
fi
lib_files
=
"
${
build_dir
}
/lib/libtaos.so.
${
version
}
"
...
...
packaging/tools/makeclient_power.sh
浏览文件 @
f2fc2fe8
...
...
@@ -77,7 +77,6 @@ if [ "$osType" != "Darwin" ]; then
cp
${
build_dir
}
/bin/taos
${
install_dir
}
/bin/power
cp
${
script_dir
}
/remove_power.sh
${
install_dir
}
/bin
cp
${
build_dir
}
/bin/taosdemo
${
install_dir
}
/bin/powerdemo
cp
${
build_dir
}
/bin/taosdemox
${
install_dir
}
/bin/powerdemox
cp
${
build_dir
}
/bin/taosdump
${
install_dir
}
/bin/powerdump
cp
${
script_dir
}
/set_core.sh
${
install_dir
}
/bin
cp
${
script_dir
}
/get_client.sh
${
install_dir
}
/bin
...
...
packaging/tools/makepkg.sh
浏览文件 @
f2fc2fe8
...
...
@@ -36,7 +36,7 @@ if [ "$pagMode" == "lite" ]; then
strip
${
build_dir
}
/bin/taos
bin_files
=
"
${
build_dir
}
/bin/taosd
${
build_dir
}
/bin/taos
${
script_dir
}
/remove.sh"
else
bin_files
=
"
${
build_dir
}
/bin/taosd
${
build_dir
}
/bin/taos
${
build_dir
}
/bin/taosdump
${
build_dir
}
/bin/taosdemo
${
build_dir
}
/bin/ta
osdemox
${
build_dir
}
/bin/ta
rbitrator
\
bin_files
=
"
${
build_dir
}
/bin/taosd
${
build_dir
}
/bin/taos
${
build_dir
}
/bin/taosdump
${
build_dir
}
/bin/taosdemo
${
build_dir
}
/bin/tarbitrator
\
${
script_dir
}
/remove.sh
${
script_dir
}
/set_core.sh
${
script_dir
}
/startPre.sh
${
script_dir
}
/taosd-dump-cfg.gdb"
fi
...
...
packaging/tools/makepkg_power.sh
浏览文件 @
f2fc2fe8
...
...
@@ -78,7 +78,6 @@ else
cp
${
build_dir
}
/bin/taosd
${
install_dir
}
/bin/powerd
cp
${
script_dir
}
/remove_power.sh
${
install_dir
}
/bin
cp
${
build_dir
}
/bin/taosdemo
${
install_dir
}
/bin/powerdemo
cp
${
build_dir
}
/bin/taosdemox
${
install_dir
}
/bin/powerdemox
cp
${
build_dir
}
/bin/taosdump
${
install_dir
}
/bin/powerdump
cp
${
build_dir
}
/bin/tarbitrator
${
install_dir
}
/bin
cp
${
script_dir
}
/set_core.sh
${
install_dir
}
/bin
...
...
packaging/tools/post.sh
浏览文件 @
f2fc2fe8
...
...
@@ -96,7 +96,6 @@ function install_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmtaos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
...
...
@@ -107,7 +106,6 @@ function install_bin() {
[
-x
${
bin_dir
}
/taos
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taos
${
bin_link_dir
}
/taos
||
:
[
-x
${
bin_dir
}
/taosd
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taosd
${
bin_link_dir
}
/taosd
||
:
[
-x
${
bin_dir
}
/taosdemo
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taosdemo
${
bin_link_dir
}
/taosdemo
||
:
[
-x
${
bin_dir
}
/taosdemox
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taosdemox
${
bin_link_dir
}
/taosdemox
||
:
[
-x
${
bin_dir
}
/taosdump
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taosdump
${
bin_link_dir
}
/taosdump
||
:
[
-x
${
bin_dir
}
/set_core.sh
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/set_core.sh
${
bin_link_dir
}
/set_core
||
:
}
...
...
packaging/tools/remove.sh
浏览文件 @
f2fc2fe8
...
...
@@ -72,7 +72,6 @@ function clean_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmtaos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/tarbitrator
||
:
...
...
packaging/tools/remove_client.sh
浏览文件 @
f2fc2fe8
...
...
@@ -38,7 +38,6 @@ function clean_bin() {
# Remove link
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmtaos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
...
...
packaging/tools/remove_client_power.sh
浏览文件 @
f2fc2fe8
...
...
@@ -38,7 +38,6 @@ function clean_bin() {
# Remove link
${
csudo
}
rm
-f
${
bin_link_dir
}
/power
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmpower
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
...
...
packaging/tools/remove_power.sh
浏览文件 @
f2fc2fe8
...
...
@@ -72,7 +72,6 @@ function clean_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/power
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdemox
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/powerdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/rmpower
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/tarbitrator
||
:
...
...
src/kit/CMakeLists.txt
浏览文件 @
f2fc2fe8
...
...
@@ -3,5 +3,4 @@ PROJECT(TDengine)
ADD_SUBDIRECTORY
(
shell
)
ADD_SUBDIRECTORY
(
taosdemo
)
ADD_SUBDIRECTORY
(
taosdemox
)
ADD_SUBDIRECTORY
(
taosdump
)
src/kit/taosdemo/CMakeLists.txt
浏览文件 @
f2fc2fe8
...
...
@@ -2,28 +2,46 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT
(
TDengine
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/src/client/inc
)
INCLUDE_DIRECTORIES
(
inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/libcurl/include
)
IF
(
TD_LINUX
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_EXECUTABLE
(
taosdemo
${
SRC
}
)
IF
(
TD_SOMODE_STATIC
)
TARGET_LINK_LIBRARIES
(
taosdemo taos_static
)
ELSE
()
TARGET_LINK_LIBRARIES
(
taosdemo taos
)
#find_program(HAVE_CURL NAMES curl)
IF
((
NOT TD_ARM_64
)
AND
(
NOT TD_ARM_32
))
ADD_DEFINITIONS
(
-DTD_LOWA_CURL
)
LINK_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/libcurl/lib
)
ADD_LIBRARY
(
curl STATIC IMPORTED
)
SET_PROPERTY
(
TARGET curl PROPERTY IMPORTED_LOCATION
${
TD_COMMUNITY_DIR
}
/deps/libcurl/lib/libcurl.a
)
TARGET_LINK_LIBRARIES
(
taosdemo curl
)
ENDIF
()
ELSEIF
(
TD_WINDOWS
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_EXECUTABLE
(
taosdemo
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
taosdemo taos_static
)
ELSEIF
(
TD_DARWIN
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_EXECUTABLE
(
taosdemo
${
SRC
}
)
IF
(
TD_SOMODE_STATIC
)
TARGET_LINK_LIBRARIES
(
taosdemo taos_static
)
TARGET_LINK_LIBRARIES
(
taosdemo taos_static
cJson
)
ELSE
()
TARGET_LINK_LIBRARIES
(
taosdemo taos
)
TARGET_LINK_LIBRARIES
(
taosdemo taos
cJson
)
ENDIF
()
ENDIF
()
IF
(
TD_DARWIN
)
# missing a few dependencies, such as <argp.h>
# AUX_SOURCE_DIRECTORY(. SRC)
# ADD_EXECUTABLE(taosdemo ${SRC})
#
# #find_program(HAVE_CURL NAMES curl)
# IF ((NOT TD_ARM_64) AND (NOT TD_ARM_32))
# ADD_DEFINITIONS(-DTD_LOWA_CURL)
# LINK_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/libcurl/lib)
# ADD_LIBRARY(curl STATIC IMPORTED)
# SET_PROPERTY(TARGET curl PROPERTY IMPORTED_LOCATION ${TD_COMMUNITY_DIR}/deps/libcurl/lib/libcurl.a)
# TARGET_LINK_LIBRARIES(taosdemo curl)
# ENDIF ()
#
# IF (TD_SOMODE_STATIC)
# TARGET_LINK_LIBRARIES(taosdemo taos_static cJson)
# ELSE ()
# TARGET_LINK_LIBRARIES(taosdemo taos cJson)
# ENDIF ()
ENDIF
()
src/kit/taosdemo
x
/insert.json
→
src/kit/taosdemo/insert.json
浏览文件 @
f2fc2fe8
文件已移动
src/kit/taosdemo
x
/query.json
→
src/kit/taosdemo/query.json
浏览文件 @
f2fc2fe8
文件已移动
src/kit/taosdemo
x
/subscribe.json
→
src/kit/taosdemo/subscribe.json
浏览文件 @
f2fc2fe8
文件已移动
src/kit/taosdemo/taosdemo.c
浏览文件 @
f2fc2fe8
此差异已折叠。
点击以展开。
src/kit/taosdemox/CMakeLists.txt
已删除
100644 → 0
浏览文件 @
03e1664d
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
TDengine
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/src/client/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/libcurl/include
)
IF
(
TD_LINUX
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_EXECUTABLE
(
taosdemox
${
SRC
}
)
#find_program(HAVE_CURL NAMES curl)
IF
((
NOT TD_ARM_64
)
AND
(
NOT TD_ARM_32
))
ADD_DEFINITIONS
(
-DTD_LOWA_CURL
)
LINK_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/libcurl/lib
)
ADD_LIBRARY
(
curl STATIC IMPORTED
)
SET_PROPERTY
(
TARGET curl PROPERTY IMPORTED_LOCATION
${
TD_COMMUNITY_DIR
}
/deps/libcurl/lib/libcurl.a
)
TARGET_LINK_LIBRARIES
(
taosdemox curl
)
ENDIF
()
IF
(
TD_SOMODE_STATIC
)
TARGET_LINK_LIBRARIES
(
taosdemox taos_static cJson
)
ELSE
()
TARGET_LINK_LIBRARIES
(
taosdemox taos cJson
)
ENDIF
()
ENDIF
()
IF
(
TD_DARWIN
)
# missing a few dependencies, such as <argp.h>
# AUX_SOURCE_DIRECTORY(. SRC)
# ADD_EXECUTABLE(taosdemox ${SRC})
#
# #find_program(HAVE_CURL NAMES curl)
# IF ((NOT TD_ARM_64) AND (NOT TD_ARM_32))
# ADD_DEFINITIONS(-DTD_LOWA_CURL)
# LINK_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/libcurl/lib)
# ADD_LIBRARY(curl STATIC IMPORTED)
# SET_PROPERTY(TARGET curl PROPERTY IMPORTED_LOCATION ${TD_COMMUNITY_DIR}/deps/libcurl/lib/libcurl.a)
# TARGET_LINK_LIBRARIES(taosdemox curl)
# ENDIF ()
#
# IF (TD_SOMODE_STATIC)
# TARGET_LINK_LIBRARIES(taosdemox taos_static cJson)
# ELSE ()
# TARGET_LINK_LIBRARIES(taosdemox taos cJson)
# ENDIF ()
ENDIF
()
src/kit/taosdemox/taosdemox.c
已删除
100644 → 0
浏览文件 @
03e1664d
此差异已折叠。
点击以展开。
tests/pytest/cluster/clusterEnvSetup/taosdemo
x
Wrapper.py
→
tests/pytest/cluster/clusterEnvSetup/taosdemoWrapper.py
浏览文件 @
f2fc2fe8
...
...
@@ -15,7 +15,7 @@ import os
import
random
import
argparse
class
taosdemo
x
Wrapper
:
class
taosdemoWrapper
:
def
__init__
(
self
,
host
,
metadata
,
database
,
tables
,
threads
,
configDir
,
replica
,
columnType
,
columnsPerTable
,
rowsPerTable
,
disorderRatio
,
disorderRange
,
charTypeLen
):
...
...
@@ -35,11 +35,11 @@ class taosdemoxWrapper:
def
run
(
self
):
if
self
.
metadata
is
None
:
os
.
system
(
"taosdemo
x
-h %s -d %s -t %d -T %d -c %s -a %d -b %s -n %d -t %d -O %d -R %d -w %d -x -y"
os
.
system
(
"taosdemo -h %s -d %s -t %d -T %d -c %s -a %d -b %s -n %d -t %d -O %d -R %d -w %d -x -y"
%
(
self
.
host
,
self
.
database
,
self
.
tables
,
self
.
threads
,
self
.
configDir
,
self
.
replica
,
self
.
columnType
,
self
.
rowsPerTable
,
self
.
disorderRatio
,
self
.
disorderRange
,
self
.
charTypeLen
))
else
:
os
.
system
(
"taosdemo
x
-f %s"
%
self
.
metadata
)
os
.
system
(
"taosdemo -f %s"
%
self
.
metadata
)
parser
=
argparse
.
ArgumentParser
()
...
...
@@ -136,7 +136,7 @@ parser.add_argument(
help
=
'Out of order datas range, ms (default: 16)'
)
args
=
parser
.
parse_args
()
taosdemo
x
=
taosdemox
Wrapper
(
args
.
host_name
,
args
.
metadata
,
args
.
db_name
,
args
.
num_of_tables
,
taosdemo
=
taosdemo
Wrapper
(
args
.
host_name
,
args
.
metadata
,
args
.
db_name
,
args
.
num_of_tables
,
args
.
num_of_threads
,
args
.
config_dir
,
args
.
replica
,
args
.
column_type
,
args
.
num_of_cols
,
args
.
num_of_rows
,
args
.
disorder_ratio
,
args
.
disorder_range
,
args
.
char_type_length
)
taosdemox
.
run
()
\ No newline at end of file
taosdemo
.
run
()
tests/pytest/tools/lowaTest.py
浏览文件 @
f2fc2fe8
...
...
@@ -51,7 +51,7 @@ class TDTestCase:
else
:
tdLog
.
info
(
"taosd found in %s"
%
buildPath
)
binPath
=
buildPath
+
"/build/bin/"
os
.
system
(
"yes | %staosdemo
x
-f tools/insert.json"
%
binPath
)
os
.
system
(
"yes | %staosdemo -f tools/insert.json"
%
binPath
)
tdSql
.
execute
(
"use db01"
)
tdSql
.
query
(
"select count(*) from stb01"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录