TDengine/tests/docs-examples-test/test_python.sh
Bo Ding 4eba506ff4
test scripts for all connector's sample codes (#11354)
* test: add test scripts

* test: change mod of test scripts to 755

* map docs-examples to container

* test: add test_python.sh

* test: add test_c.sh

* test: add test_go.sh

* test: fix test_go.sh

* test: add test_node.sh

* test: fix test_node.sh

* test: add test_rust.sh

* test: fix connect.rs

* test: fix csharp demo program

* test: add test_csharp.sh

* typo

* test: add java sample code to test

Co-authored-by: tangfangzhi <fztang@taosdata.com>
2022-04-10 00:02:45 +08:00

46 lines
669 B
Bash
Executable file

#!/bin/bash
set -e
taosd >> /dev/null 2>&1 &
taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/python
# 1
python3 connect_exmaple.py
# 2
taos -s "drop database if exists power"
python3 native_insert_example.py
# 3
taos -s "drop database power"
python3 bind_param_example.py
# 4
taos -s "drop database power"
python3 multi_bind_example.py
# 5
python3 query_example.py
# 6
python3 async_query_example.py
# 7
taos -s "drop database if exists test"
python3 line_protocol_example.py
# 8
taos -s "drop database test"
python3 telnet_line_protocol_example.py
# 9
taos -s "drop database test"
python3 json_protocol_example.py
# 10
python3 subscribe_demo.py