From 3a162be310b3548843a249a08f68c85c95c24696 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Thu, 5 May 2022 21:04:24 +0800 Subject: [PATCH] add test to jenkins --- tests/script/jenkins/basic.txt | 1 + tests/script/sh/copy_udf.sh | 2 +- tests/script/tsim/query/udf.sim | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/script/jenkins/basic.txt b/tests/script/jenkins/basic.txt index d1c5e83975..b95e822df3 100644 --- a/tests/script/jenkins/basic.txt +++ b/tests/script/jenkins/basic.txt @@ -39,6 +39,7 @@ ./test.sh -f tsim/query/explain.sim ./test.sh -f tsim/query/session.sim ./test.sh -f tsim/query/scalarNull.sim +./test.sh -f tsim/query/udf.sim # ---- qnode ./test.sh -f tsim/qnode/basic1.sim diff --git a/tests/script/sh/copy_udf.sh b/tests/script/sh/copy_udf.sh index e4bc9adf82..e1d9ff53d2 100755 --- a/tests/script/sh/copy_udf.sh +++ b/tests/script/sh/copy_udf.sh @@ -3,7 +3,7 @@ set +e #set -x -echo "Executing gen_udf.sh" +echo "Executing copy_udf.sh" SCRIPT_DIR=`dirname $0` cd $SCRIPT_DIR/../ diff --git a/tests/script/tsim/query/udf.sim b/tests/script/tsim/query/udf.sim index a2684153df..8acd07cfe4 100644 --- a/tests/script/tsim/query/udf.sim +++ b/tests/script/tsim/query/udf.sim @@ -21,6 +21,9 @@ sql insert into t values(now, 1)(now+1s, 2); sql create function udf1 as '/tmp/udf/libudf1.so' outputtype int bufSize 8; sql create aggregate function udf2 as '/tmp/udf/libudf2.so' outputtype double bufSize 8; sql show functions; +if $rows != 2 then + return -1 +endi sql select udf1(f) from t; if $rows != 2 then return -1 -- GitLab