mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* test: add python test to 3.0 ci and run it * ci: put taos.h in /usr/include directory * fix: python test case * fix: exit 0 with test success Co-authored-by: tangfangzhi <fztang@taosdata.com>
31 lines
721 B
Bash
31 lines
721 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
taosd >>/dev/null 2>&1 &
|
|
taosadapter >>/dev/null 2>&1 &
|
|
sleep 10
|
|
cd ../../docs/examples/go
|
|
|
|
go mod tidy
|
|
|
|
go run ./connect/afconn/main.go
|
|
go run ./connect/cgoexample/main.go
|
|
go run ./connect/restexample/main.go
|
|
|
|
taos -s "drop database if exists test"
|
|
go run ./insert/json/main.go
|
|
taos -s "drop database if exists test"
|
|
go run ./insert/line/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/telnet/main.go
|
|
|
|
go run ./query/sync/main.go
|
|
|
|
taos -s "drop topic if exists example_tmq_topic"
|
|
taos -s "drop database if exists example_tmq"
|
|
go run ./sub/main.go
|