提交 2b250ed6 编写于 作者: haoranc's avatar haoranc

[TD-11399]<test>(tools): add test case of taosdemo supporting chinese unicode in all interface

上级 4df5a0c2
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"databases": [{ "databases": [{
"dbinfo": { "dbinfo": {
"name": "db", "name": "db",
"drop": "yes", "drop": "no",
"replica": 1, "replica": 1,
"days": 10, "days": 10,
"cache": 50, "cache": 50,
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"name": "stb3", "name": "stb3",
"child_table_exists":"no", "child_table_exists":"no",
"childtable_count": 40, "childtable_count": 40,
"childtable_prefix": "stb00_", "childtable_prefix": "stb03_",
"auto_create_table": "no", "auto_create_table": "no",
"batch_create_tbl_num": 20, "batch_create_tbl_num": 20,
"data_source": "rand", "data_source": "rand",
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
"name": "stb4", "name": "stb4",
"child_table_exists":"no", "child_table_exists":"no",
"childtable_count": 50, "childtable_count": 50,
"childtable_prefix": "stb00_", "childtable_prefix": "stb04_",
"auto_create_table": "no", "auto_create_table": "no",
"batch_create_tbl_num": 20, "batch_create_tbl_num": 20,
"data_source": "rand", "data_source": "rand",
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
"name": "stb5", "name": "stb5",
"child_table_exists":"no", "child_table_exists":"no",
"childtable_count": 60, "childtable_count": 60,
"childtable_prefix": "stb00_", "childtable_prefix": "stb05_",
"auto_create_table": "no", "auto_create_table": "no",
"batch_create_tbl_num": 20, "batch_create_tbl_num": 20,
"data_source": "rand", "data_source": "rand",
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
"name": "stb1", "name": "stb1",
"child_table_exists":"no", "child_table_exists":"no",
"childtable_count": 20, "childtable_count": 20,
"childtable_prefix": "stb00_", "childtable_prefix": "stb01_",
"auto_create_table": "no", "auto_create_table": "no",
"batch_create_tbl_num": 20, "batch_create_tbl_num": 20,
"data_source": "rand", "data_source": "rand",
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
"name": "stb2", "name": "stb2",
"child_table_exists":"no", "child_table_exists":"no",
"childtable_count": 30, "childtable_count": 30,
"childtable_prefix": "stb00_", "childtable_prefix": "stb02_",
"auto_create_table": "no", "auto_create_table": "no",
"batch_create_tbl_num": 20, "batch_create_tbl_num": 20,
"data_source": "rand", "data_source": "rand",
......
...@@ -358,20 +358,20 @@ class TDTestCase: ...@@ -358,20 +358,20 @@ class TDTestCase:
tdSql.checkRows(20) tdSql.checkRows(20)
# # insert: test chinese encoding # insert: test chinese encoding
# # TD-11399、TD-10819 # TD-11399、TD-10819
# os.system("%staosBenchmark -f tools/taosdemoAllTest/insert-chinese.json -y " % binPath) os.system("%staosBenchmark -f tools/taosdemoAllTest/insert-chinese.json -y " % binPath)
# os.system("%staosBenchmark -f tools/taosdemoAllTest/insert-chinese-sml.json -y " % binPath) os.system("%staosBenchmark -f tools/taosdemoAllTest/insert-chinese-sml.json -y " % binPath)
# tdSql.execute("use db") tdSql.execute("use db")
# tdSql.query("show stables") tdSql.query("show stables")
# for i in range(6): for i in range(6):
# for j in range(6): for j in range(6):
# if tdSql.queryResult[i][0] == 'stb%d'%j: if tdSql.queryResult[i][0] == 'stb%d'%j:
# # print(i,"stb%d"%j) # print(i,"stb%d"%j)
# tdSql.checkData(i, 4, (j+1)*10) tdSql.checkData(i, 4, (j+1)*10)
# for i in range(13): for i in range(6):
# tdSql.query("select count(*) from stb%d"%i) tdSql.query("select count(*) from stb%d"%i)
# tdSql.checkData(0, 0, (i+1)*100) tdSql.checkData(0, 0, (i+1)*1000)
# rm useless files # rm useless files
os.system("rm -rf ./insert*_res.txt*") os.system("rm -rf ./insert*_res.txt*")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册