mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* 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>
34 lines
629 B
Bash
Executable file
34 lines
629 B
Bash
Executable file
#!/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 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
|