test_node.sh 629 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
#!/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