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

fix: fix for python connector testing (#21886)

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