From 954c465949d7bbd771bfd9cfd7bee29cfabbb0d2 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 10 Sep 2024 10:15:32 +0800 Subject: [PATCH] feat : first test data is ok --- .../system-test/eco-system/manager/testCompress.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/system-test/eco-system/manager/testCompress.py b/tests/system-test/eco-system/manager/testCompress.py index b23d2cbe58..2d24d30c60 100644 --- a/tests/system-test/eco-system/manager/testCompress.py +++ b/tests/system-test/eco-system/manager/testCompress.py @@ -243,8 +243,15 @@ def doTest(dataType, typeName, algo, resultFile): def main(): # test types dataTypes = [ - '{"type": "bool", "name": "bc", "max": 1, "min": 0, "count":10, "compress":"@COMPRESS"}', - '{"type": "tinyint", "name": "ti", "max": 100, "min": 0, "count":10, "compress":"@COMPRESS"}' + '{"type": "bool", "count":100, "min": 0, "max": 1, "compress":"@COMPRESS"}', + '{"type": "tinyint", "count":100, "min": 0, "max": 100, "compress":"@COMPRESS"}', + '{"type": "smallint", "count":100, "min": 0, "max": 1000, "compress":"@COMPRESS"}', + '{"type": "int", "count":100, "min": 0, "max": 100000, "compress":"@COMPRESS"}', + '{"type": "bigint", "count":100, "min": 0, "max": 1000000, "compress":"@COMPRESS"}', + '{"type": "float", "count":100, "min": 0, "max": 1000, "compress":"@COMPRESS"}', + '{"type": "double", "count":100, "min": 0, "max": 1000, "compress":"@COMPRESS"}', + '{"type": "binary", "count":100, "len": 64, "compress":"@COMPRESS"}', + '{"type": "nchar", "count":100, "len": 64, "compress":"@COMPRESS"}' ] # test compress method @@ -273,7 +280,7 @@ def main(): continue # do test doTest(dataType, typeName, algo, resultFile) - + appendFileContext(resultFile, " \n") if __name__ == "__main__": print("welcome use TDengine compress rate test tools.\n")