From 68a9a2ae442f1e87b5770c7b023642f2d66cd796 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 12 Jan 2021 19:14:01 +0800 Subject: [PATCH] [TD-2598] feature: C# taosdemo, CI integration. --- .travis.yml | 10 ++++++++++ tests/examples/C#/taosdemo/taosdemo.cs | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8c57085296..f389d9472b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,6 +34,7 @@ matrix: - psmisc - unixodbc - unixodbc-dev + - mono-complete before_script: - export TZ=Asia/Harbin @@ -74,6 +75,15 @@ matrix: ./valgrind-test.sh 2>&1 > mem-error-out.log sleep 1 + cd ${TRAVIS_BUILD_DIR}/tests/examples/C#/taosdemo + mcs -output:taosdemo *.cs || travis_terminate $? + pkill -TERM -x taosd + fuser -k -n tcp 6030 + sleep 1 + taosd > /dev/null & + sleep 1 + mono taosdemo -Q -y || travis_terminate $? + # Color setting RED='\033[0;31m' GREEN='\033[1;32m' diff --git a/tests/examples/C#/taosdemo/taosdemo.cs b/tests/examples/C#/taosdemo/taosdemo.cs index 6e1cbd2088..1d8daac9b9 100644 --- a/tests/examples/C#/taosdemo/taosdemo.cs +++ b/tests/examples/C#/taosdemo/taosdemo.cs @@ -204,7 +204,7 @@ namespace TDengineDriver String tmp = argv[i + 1]; if (tmp[0] == '-') { - Console.WriteLine("option {0:G} requires an argument", tmp); + Console.WriteLine("option {0:G} requires an argument", argName); ExitProgram(); } @@ -236,7 +236,7 @@ namespace TDengineDriver String tmp = argv[i + 1]; if (tmp[0] == '-') { - Console.WriteLine("option {0:G} requires an argument", tmp); + Console.WriteLine("option {0:G} requires an argument", argName); ExitProgram(); } return tmp; -- GitLab