TDengine/tests/docs-examples-test/test_go.sh
Bo Ding 800b878f99
test: add test scripts for document sample code to CI task (#11482)
* docs: add R example source code

* test: check if RJDBC was installed

* test: add R test scripts

* test: chmod of test_R.sh

* test: fix test_go.sh; add R sample to document

* test: add test scripts to cases.task

* test: fix errors caused by  tset_python.sh and test_java.sh

* test: fix  test_python.sh

* test: modify java test case and improve opentsdb-json.mdx

* test: fix test_R.sh
2022-04-14 19:36:21 +08:00

29 lines
535 B
Bash
Executable file

#!/bin/bash
set -e
taosd >> /dev/null 2>&1 &
taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/go
go mod tidy
go run ./connect/restexample/main.go
taos -s "drop database if exists power"
go run ./insert/sql/main.go
taos -s "drop database if exists power"
go run ./insert/stmt/main.go
taos -s "drop database if exists test"
go run ./insert/line/main.go
taos -s "drop database if exists test"
go run ./insert/telnet/main.go
taos -s "drop database if exists test"
go run ./insert/json/main.go
go run ./query/sync/main.go