TDengine/tests/docs-examples-test/test_csharp.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

26 lines
651 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/csharp
dotnet run --project connect.csproj
taos -s "drop database if exists power"
dotnet run --project sqlinsert.csproj
dotnet run --project query.csproj
dotnet run --project asyncquery.csproj
taos -s "drop database if exists power"
dotnet run --project stmtinsert.csproj
taos -s "drop database if exists test"
dotnet run --project influxdbline.csproj
taos -s "drop database if exists test"
dotnet run --project optstelnet.csproj
taos -s "drop database if exists test"
dotnet run --project optsjson.csproj