未验证 提交 2e8a6b65 编写于 作者: H huili 提交者: GitHub

Merge pull request #4890 from taosdata/feature/sangshuduo/TD-2598-ci-integration

[TD-2598] feature: C# taosdemo, CI integration.
...@@ -34,6 +34,7 @@ matrix: ...@@ -34,6 +34,7 @@ matrix:
- psmisc - psmisc
- unixodbc - unixodbc
- unixodbc-dev - unixodbc-dev
- mono-complete
before_script: before_script:
- export TZ=Asia/Harbin - export TZ=Asia/Harbin
...@@ -59,6 +60,18 @@ matrix: ...@@ -59,6 +60,18 @@ matrix:
pip3 install guppy3 pip3 install guppy3
pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/ pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/
cd ${TRAVIS_BUILD_DIR}/tests/examples/C#/taosdemo
mcs -out:taosdemo *.cs || travis_terminate $?
pkill -TERM -x taosd
fuser -k -n tcp 6030
sleep 1
${TRAVIS_BUILD_DIR}/debug/build/bin/taosd -c ${TRAVIS_BUILD_DIR}/debug/test/cfg > /dev/null &
sleep 5
mono taosdemo -Q DEFAULT -y || travis_terminate $?
pkill -KILL -x taosd
fuser -k -n tcp 6030
sleep 1
cd ${TRAVIS_BUILD_DIR}/tests cd ${TRAVIS_BUILD_DIR}/tests
./test-all.sh smoke || travis_terminate $? ./test-all.sh smoke || travis_terminate $?
sleep 1 sleep 1
...@@ -74,6 +87,7 @@ matrix: ...@@ -74,6 +87,7 @@ matrix:
./valgrind-test.sh 2>&1 > mem-error-out.log ./valgrind-test.sh 2>&1 > mem-error-out.log
sleep 1 sleep 1
# Color setting # Color setting
RED='\033[0;31m' RED='\033[0;31m'
GREEN='\033[1;32m' GREEN='\033[1;32m'
......
...@@ -10,30 +10,27 @@ run C# version taosdemo ...@@ -10,30 +10,27 @@ run C# version taosdemo
=== ===
Usage: mono taosdemo.exe [OPTION...] Usage: mono taosdemo.exe [OPTION...]
--help Show usage. --help Show usage.
-h host, The host to connect to TDengine. Default is localhost. -h <hostname> host, The host to connect to TDengine. Default is localhost.
-p port, The TCP/IP port number to use for the connection. Default is 0. -p <port> port, The TCP/IP port number to use for the connection. Default is 0.
-u user, The user name to use when connecting to the server. Default is 'root'. -u <username> user, The user name to use when connecting to the server. Default is 'root'.
-P password, The password to use when connecting to the server. Default is 'taosdata'. -P <password> password, The password to use when connecting to the server. Default is 'taosdata'.
-d database, Destination database. Default is 'test'. -d <dbname> database, Destination database. Default is 'test'.
-a replica, Set the replica parameters of the database, Default 1, min: 1, max: 5. -a <replications> replica, Set the replica parameters of the database, Default 1, min: 1, max: 5.
-m table_prefix, Table prefix name. Default is 't'. -m <table prefix> table_prefix, Table prefix name. Default is 't'.
-s sql file, The select sql file. -M stable, Use super table.
-M stable, Use super table. -s <stable prefix> stable_prefix, STable prefix name. Default is 'st'
-o outputfile, Direct output to the named file. Default is './output.txt'. -Q <DEFAULT | command> query, Execute query command. set 'DEFAULT' means select * from each table
-q query_mode, Query mode--0: SYNC, 1: ASYNC. Default is SYNC. -T <number> num_of_threads, The number of threads. Default is 10.
-b type_of_cols, data_type of columns: 'INT', 'TINYINT', 'SMALLINT', 'BIGINT', 'FLOAT', 'DOUBLE', 'BINARY'. Default is 'INT'. -r <number> num_of_records_per_req, The number of records per request. Default is 1000.
-w length_of_binary, The length of data_type 'BINARY'. Only applicable when type of cols is 'BINARY'. Default is 8 -t <number> num_of_tables, The number of tables. Default is 1.
-l num_of_cols_per_record, The number of columns per record. Default is 3. -n <number> num_of_records_per_table, The number of records per table. Default is 1.
-T num_of_threads, The number of threads. Default is 10. -c <path> config_directory, Configuration directory. Default is '/etc/taos/'.
-r num_of_records_per_req, The number of records per request. Default is 1000. -x flag, Insert only flag.
-t num_of_tables, The number of tables. Default is 1. -O order, Insert mode--0: In order, 1: Out of order. Default is in order.
-n num_of_records_per_table, The number of records per table. Default is 1. -R <number> rate, Out of order data's rate--if order=1 Default 10, min: 0, max: 50.
-c config_directory, Configuration directory. Default is '/etc/taos/'. -D <number> Delete data methods 0: don't delete, 1: delete by table, 2: delete by stable, 3: delete by database.
-x flag, Insert only flag. -v Print verbose output
-O order, Insert mode--0: In order, 1: Out of order. Default is in order. -g Print debug output
-R rate, Out of order data's rate--if order=1 Default 10, min: 0, max: 50. -y Skip read key for continous test, default is not skip
-D Delete data methods 0: don't delete, 1: delete by table, 2: delete by stable, 3: delete by database.
-v Print verbose output
-y Skip read key for continous test, default is not skip
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册