未验证 提交 44f7dbec 编写于 作者: S sunpeng 提交者: GitHub

fix: fix for python connector testing (#21886)

上级 564653e3
......@@ -15,7 +15,10 @@ rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
nohup taosd -c /etc/taos/ > /dev/null 2>&1 &
sleep 10
cd ../../src/connector/python
pip3 install ./
pip3 install psutil pandas pytest-cov python-dotenv toml sqlalchemy
pip3 install pytest
pytest tests/
......@@ -26,5 +29,3 @@ python3 examples/insert-lines.py
python3 examples/pep-249.py
python3 examples/query-async.py
python3 examples/query-objectively.py
python3 examples/subscribe-sync.py
python3 examples/subscribe-async.py
#!/bin/bash
set -e
pgrep taosd || taosd >> /dev/null 2>&1 &
pgrep taosadapter || taosadapter >> /dev/null 2>&1 &
cd ../../docs/examples/node
npm install
cd restexample;
node connect.js
cd ../nativeexample
node connect.js
taos -s "drop database if exists power"
node insert_example.js
node query_example.js
taos -s "drop database if exists power"
node param_bind_example.js
taos -s "drop database if exists power"
node multi_bind_example.js
taos -s "drop database if exists test"
node influxdb_line_example.js
taos -s "drop database if exists test"
node opentsdb_telnet_example.js
taos -s "drop database if exists test"
node opentsdb_json_example.js
# set -e
#
# pgrep taosd || taosd >> /dev/null 2>&1 &
# pgrep taosadapter || taosadapter >> /dev/null 2>&1 &
#
# cd ../../docs/examples/node
#
# npm install
# cd restexample;
#
# node connect.js
#
# cd ../nativeexample
#
# node connect.js
#
# taos -s "drop database if exists power"
# node insert_example.js
#
# node query_example.js
#
# taos -s "drop database if exists power"
# node param_bind_example.js
#
# taos -s "drop database if exists power"
# node multi_bind_example.js
#
# taos -s "drop database if exists test"
# node influxdb_line_example.js
#
# taos -s "drop database if exists test"
# node opentsdb_telnet_example.js
#
# taos -s "drop database if exists test"
# node opentsdb_json_example.js
......@@ -15,8 +15,15 @@ rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
nohup taosd -c /etc/taos/ > /dev/null 2>&1 &
sleep 10
cd ../../src/connector/python
pip3 install ./
pip3 install psutil pandas pytest-cov python-dotenv toml sqlalchemy
pip3 install pytest
export TDENGINE_URL=localhost:6041
pytest tests/
python3 examples/bind-multi.py
......@@ -26,5 +33,3 @@ python3 examples/insert-lines.py
python3 examples/pep-249.py
python3 examples/query-async.py
python3 examples/query-objectively.py
python3 examples/subscribe-sync.py
python3 examples/subscribe-async.py
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册