Commit Graph

360 Commits

Author SHA1 Message Date
jiajingbin 91269075c7 test: add stream cases 2023-09-01 20:43:43 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
chenhaoran a0c5d130ae test:repire test case for windows 2023-08-07 18:32:58 +08:00
Hui Li 1bc8c751a5
Merge pull request #22064 from taosdata/test/TD-24996
test:add testcase of rolling upgdade
2023-07-17 10:49:37 +08:00
Alex Duan 9085dac1a2 add create sma index case 2023-07-14 16:31:37 +08:00
chenhaoran f5e3e574ae test:add testcase of rolling upgdade 2023-07-07 16:19:39 +08:00
dmchen 0e41f82bb7 test case parameter 2023-05-25 11:26:11 +08:00
Dingle Zhang 984211f3b4
Feature/3.0 geometry (#21037)
* Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far.

* add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling

* change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh

* Add a function MakePoint() and introduce a lib geometry

* implement sql functions GeomFromText() and AsText()

* Use GEOS *_r funcions instead for thread safety

* Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT.
Add geosWrapper to wrap the basic GEOS functions for TDEngine.

* refactor AsText and MakePoint functions to be like GeomFromText

* Show WKT when print geometry data in screen
Dump hex data when dump geometry data in a file

* define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues.

* set number of decimals of WKT to 6

* Implement SQL function Intersects()

* refactor geometry sql functions

* Add geosErrMsgeHandler() to get the GEOS error detail

* use threadlocal to instantiate SGeosContext
call destroyGeosContext() only if the thread exists

* remove SGeosContext *context param for all geometry functions since we use thread local one,
so that all caller do not need to know the context.

* Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance.

* rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn

* Add prefix "ST_" for all geometry functions

* move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util,
so that all unit test tools can compile

* Add unit test for geometry lib, only test MakePoint so far

* refactor and enhance existing cases in geomFuncTest

* implement NULL type and NULL value test for geomFuncTest

* add test on geomFromText()

* add unit test on AsText() in geomFuncTest

* combine some makePointFunction test items

* add intersectsFunctionTwoColumns test
refactor on callGeomFromTextWrapper functions

* enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content

* add more cases into intersectsFunction test

* Add basic test on geometry in system test

* Add ST_GeomFromText and ST_AsText function test in system test on geometry

* add ST_Intersects function test in system test on geometry

* support to check expectedErrno in system test on geometry

* adjust geomTest unit test and geometry system test

* add geometry data type and functions in doc english version

* implement touchesFunction() in geometry lib
refactor geometry relation functions model

* separate gemFuncTest into several src files

* add unit test on touchesFunction

* support sql function ST_Touches()
add system test on ST_Touches

* add docs for ST_Touches()

* Add ST_Contains()

* Add ST_Covers()

* Add ST_Equals()

* add swapAllowed param for geomRelationFunction()
read geom2 earlier intead of at doGeosRelation()

* Add ST_ContainsProperly()

* build on windows

* Merge from 3.0 to 3.0_geometry

* change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility

* change '\\NULL' to 'NULL' back in shellDumpFieldToFile()

* add /usr/local/include into include directory

* add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 15:36:46 +08:00
wade zhang 1ade314043
Merge pull request #21325 from taosdata/feat/force-drop-dnode
Feat/force drop dnode
2023-05-19 09:23:54 +08:00
dmchen 32c6ef4b6e fix ci 2023-05-17 23:09:16 +08:00
Alex Duan 89be6dbdeb test: reset dnodes modify and add test case 2023-05-16 19:07:16 +08:00
Alex Duan 1ccf9ed4ff test: add cluster global tdDnodes 2023-05-16 10:03:18 +08:00
chenhaoran 2abb14a080 test:add testcases of learner in election 2023-05-11 10:33:49 +08:00
Haojun Liao 72ddd1676d refactor: do some internal refactor. 2023-04-23 13:31:41 +08:00
Alex Duan e03a6c2f35 test: autogen.py remove radom select 2023-04-10 16:45:59 +08:00
Alex Duan 927390f38e test: change random to fixed 2023-04-07 11:00:53 +08:00
Alex Duan 1f953a422d Merge branch '3.0' into test/TD-22889-3.0 2023-03-29 09:32:32 +08:00
Xuefeng Tan cebe53a483
fix: fix test `cast.py` for windows (#20676) 2023-03-28 19:08:43 +08:00
Alex Duan 1434fea2de Merge branch '3.0' into test/TD-22889-3.0 2023-03-24 10:18:14 +08:00
t_max d4a81c11d2 fix: fix check timestamp data 2023-03-23 14:07:43 +08:00
t_max 6e66b74b38 fix: fix check timestamp data 2023-03-23 14:00:48 +08:00
Alex Duan 6345952f88 test: debug python file 2023-03-22 20:30:25 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
Xuefeng Tan 449f7115e4
fix: windows test (#20256)
* fix: windows sim test

* fix: windows sim test

* fix: random on windows

* fix: taosd online check

* fix: windows path in python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: make_install.bat

* fix: python test

* fix: jdbc test

* fix: develop test

* fix: develop test

* fix:add log

* test:add win case file

* test:add win case file

* test:add win case file

* fix: python test get taosBenchmark path

* test:add win case file

* test:comment some failed cases in win

* test:add win case file

* test:add win case file

* test:comment some win case file

* test:add some win case file

---------

Co-authored-by: wangmm0220 <wangmm0220@gmail.com>
Co-authored-by: chenhaoran <haoran920c@163.com>
2023-03-16 10:18:06 +08:00
Haojun Liao 3730ea4b57 test: update the sim to speedup this case and set the tqdebugflag to be 135. 2023-03-02 10:00:00 +08:00
Shuduo Sang ea5d925c50
fix: alpine support (#19353)
* fix: alpine support

* fix: ostimer thread_id

* fix: taosPrintTrace and tsStreamMax

* fix: make_install.sh and dnodes.py for alpine

* fix: cmake.platform and cut option for alpine

* fix: timer sigev and string convert

* fix: test case for alpine

* fix: fix test script for alpine

* fix: fix test script for alpine

* fix: fix taosLogTrace for Alpine

* fix: fix taosSort

* fix: vnode and mnode compare functions and test cases

* fix: sorting algorithms and unit tests

* fix: libtaosws.so build error on Alpine

* fix: libtaosws.so build error on Alpine

---------

Co-authored-by: t_max <1172915550@qq.com>
2023-02-10 13:00:55 +08:00
wangmm0220 b493b8d2e1 fix:cols error because delete json cols value 2023-01-28 10:33:00 +08:00
Alex Duan 6eeddb4b53 add case feature function with loop check data 2022-12-30 15:19:44 +08:00
Shengliang Guan 664dcb6b4e Merge branch 'main' into merge/mainto3.0_1226 2022-12-26 09:26:54 +08:00
Ping Xiao 3c5f07f70b test: add test cases 2022-12-23 18:39:21 +08:00
Ping Xiao 889872c24d test: update script to stop taosadapter service 2022-12-21 19:31:28 +08:00
chenhaoran a1415183b5 test:modify default vnodes numbers in create clusters 2022-12-16 15:11:02 +08:00
Benguang Zhao f1991ac882 enh: improve runOneLinux and TDTestCase of python test scripts 2022-11-29 17:19:47 +08:00
Shengliang Guan 099b80906f test: adjust cluster case for asan mode 2022-11-28 11:19:02 +08:00
Shengliang Guan 2dc23cdfe5 test: adjust tmqCommon cases 2022-11-27 17:49:23 +08:00
Shengliang Guan 991795ca6e test: add asan case 2022-11-24 13:52:09 +08:00
Shengliang Guan 15c0bb9446 test: python asan 2022-11-20 21:26:54 +08:00
Shengliang Guan 40b2d3673b test: python asan 2022-11-20 15:04:44 +08:00
Shengliang Guan 5831efd379 test: adjust asan dir 2022-11-20 12:23:59 +08:00
Shengliang Guan 0464a21d0e test: adjust pytest frame 2022-11-19 22:57:38 +08:00
jiacy-jcy 0d7787387b test:add test case for boundary check 2022-11-17 16:58:04 +08:00
Shuduo Sang fd7d0f5928 test: enable telnet_tcp.py case 2022-11-09 14:51:14 +08:00
chenhaoran f995723f20 test:add compatibility cases: 4096 columns of table data and tests that need to recover data from wal files 2022-11-04 16:17:05 +08:00
chenhaoran 32cbaa25a8 test:add parameter for mixed deployed mnodes in testcase framework 2022-11-03 17:48:16 +08:00
chenhaoran 691b9ac54b Merge branch '3.0' of https://github.com/taosdata/TDengine into test/TD-19790 2022-10-31 14:42:26 +08:00
chenhaoran 851f34ff36 test:add replica 3 for all testcases and frameworks 2022-10-31 14:41:59 +08:00
Hui Li 8f9c2904ab
Update dnodes.py 2022-10-27 19:22:42 +08:00
Shengliang Guan 7f9548ac46 test: comment out unstable case 2022-10-22 10:42:13 +08:00
afwerar 15f8b60cdb os: mac test error 2022-09-26 14:49:19 +08:00
afwerar 00a9491a97 os: fix Mac test error 2022-09-23 17:50:43 +08:00
cpwu 2fc2000c7a fix case 2022-08-31 11:00:25 +08:00
cpwu f3d5ac49b1 fix dnodes cfg 2022-08-30 11:16:27 +08:00
cpwu bea875aea7 add case to support rest API 2022-08-19 17:46:24 +08:00
cpwu 8ae2907dcb fix sql 2022-08-18 11:14:20 +08:00
cpwu 53e3b2e5f5 fix case, add case support rest api 2022-08-18 11:14:05 +08:00
cpwu 3a5f3203a0 fix case 2022-08-17 16:11:37 +08:00
cpwu 8922b48b11 add case to rest API CI 2022-08-12 18:00:11 +08:00
Xiaoyu Wang 4155a3bef4 enh: show command optimize 2022-08-11 21:55:20 +08:00
Shengliang Guan 01b4e8bb97 test: set default supportVnodes value 2022-08-09 13:35:01 +08:00
tomchon 9e32cd4fca test: modify testcases of muti-mnodes 2022-08-06 21:30:38 +08:00
gccgdb1234 77d8657e69 fix: correct wrong parameter thread_count_create_tbl 2022-08-06 10:48:50 +08:00
cpwu 737f623d81 fix case 2022-07-30 17:38:46 +08:00
tomchon c2e4807a93 test: modify testcases of muti-mnodes 2022-07-29 09:51:35 +08:00
haoranchen b7de929d85
Merge branch '3.0' into test/chr/TD-14699 2022-07-28 14:42:19 +08:00
tomchon e44593414d test:modify the way to stop taosd from "SIGINT" to "SIGILL" in test framework 2022-07-27 17:08:28 +08:00
cpwu cfb71e15c9 Merge branch '3.0' into cpwu/3.0 2022-07-26 15:57:51 +08:00
cpwu c71b1440cf fix case 2022-07-26 15:38:54 +08:00
cpwu 2cb144664e fix case 2022-07-26 15:15:54 +08:00
cpwu 5b06d8dff6 fix case 2022-07-26 14:31:36 +08:00
afwerar 8b42d73742 test: fix win test stop taosd error 2022-07-25 20:31:21 +08:00
Hui Li c57a04a6c1
Merge pull request #15325 from taosdata/test/cluster_vnode_case
test : cluster test case about vnode
2022-07-23 12:45:49 +08:00
wenzhouwww@live.cn ce900e4835 add case of stop follow of vnode 2022-07-21 19:58:28 +08:00
plum-lihui 55c3f8f87f test: add test cases for tmq 2022-07-21 17:45:25 +08:00
Hui Li 74edf683dd
Merge pull request #15126 from taosdata/cpwu/3.0
Test: fix case support rest API
2022-07-21 11:50:53 +08:00
afwerar 3b8669a50d test: fix win test stop taosd error 2022-07-20 20:57:48 +08:00
cpwu 7c0cbeb90a fix common 2022-07-20 20:02:16 +08:00
cpwu 308e68972d fix socket assert 2022-07-20 14:30:37 +08:00
cpwu 1919988413 fix assert taosadapter 2022-07-20 14:24:24 +08:00
cpwu 79cd884865 fix case again 2022-07-20 10:54:42 +08:00
cpwu 38d1233ce0 fix adapter 2022-07-20 10:53:31 +08:00
cpwu 84a198d4da fix case 2022-07-20 10:02:19 +08:00
Hui Li 5d774c0a83
Merge pull request #15150 from taosdata/test/chr/TD-14699
test:add testcase of muti-mnode
2022-07-20 09:46:05 +08:00
tomchon 5ca7dd62db test:modify testcase of muti-mnode 2022-07-19 21:25:17 +08:00
afwerar 8c01f5e8ad test: only stop taosd once win test 2022-07-19 17:15:36 +08:00
cpwu 83fe51f6d9 fix case 2022-07-19 16:39:50 +08:00
cpwu 349cb292fa Merge branch '3.0' into cpwu/3.0 2022-07-18 09:45:31 +08:00
Hui Li cfe07e61f1
Merge pull request #14920 from taosdata/test/chr/TD-14699
test:modify test frame that add multiple retries for sql execution and query
2022-07-16 16:48:39 +08:00
cpwu dadf3fd027 Merge branch '3.0' into cpwu/3.0 2022-07-16 15:59:24 +08:00
cpwu 935535b087 fix case 2022-07-16 15:58:23 +08:00
Xiaoyu Wang 299e117d38 fix: database options 'strict' and 'cachelast' syntax adjustments 2022-07-16 14:22:30 +08:00
Xiaoyu Wang 7c585d8ed9 fix: database options 'strict' and 'cachelast' syntax adjustments 2022-07-16 11:47:26 +08:00
cpwu 028dba3c46 fix case 2022-07-16 11:45:43 +08:00
cpwu acc27d46e9 fix case 2022-07-15 15:06:38 +08:00
tomchon d554bf6588 test:modify test frame that add multiple retries for sql execution and query 2022-07-14 21:22:43 +08:00
tomchon e8a0cf5b75 test:add test case of tsbs query 2022-07-14 21:11:39 +08:00
cpwu 4ec50d141a Merge branch '3.0' into cpwu/3.0 2022-07-14 19:02:29 +08:00
afwerar 4849b0cb78 test: fix win test error 2022-07-14 13:58:23 +08:00
cpwu 4a6f707702 Merge branch '3.0' into cpwu/3.0 2022-07-14 11:36:31 +08:00
jiacy-jcy 15ea5e84ed update 2022-07-13 11:17:35 +08:00
cpwu e34e96eb06 Merge branch '3.0' into cpwu/3.0 2022-07-12 16:00:52 +08:00