提交 9245ba07 编写于 作者: A Alex Duan

test: rename filename

上级 2d514e49
###################################################################
# Copyright (c) 2016 by TAOS Technologies, Inc.
# All rights reserved.
#
# This file is proprietary and confidential to TAOS Technologies.
# No part of this file may be reproduced, stored, transmitted,
# disclosed or used in any form or by any means other than as
# expressly provided by the written permission from Jianhui Tao
#
###################################################################
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
...@@ -11,23 +22,10 @@ from util.cases import * ...@@ -11,23 +22,10 @@ from util.cases import *
from util.sql import * from util.sql import *
class TDTestCase:
def init(self, conn, logSql, replicaVar=1):
tdSql.init(conn.cursor(), logSql)
def run(self):
tdLog.info("hello world.")
def stop(self):
tdSql.close()
tdLog.success("%s successfully executed" % __file__)
# #
# Test Main class # Test Main class
# #
'''
class TDTestCase: class TDTestCase:
def init(self, conn, logSql, replicaVar=1): def init(self, conn, logSql, replicaVar=1):
self.replicaVar = int(replicaVar) self.replicaVar = int(replicaVar)
...@@ -79,12 +77,10 @@ class TDTestCase: ...@@ -79,12 +77,10 @@ class TDTestCase:
column_cnt = 4096 - tag_cnt column_cnt = 4096 - tag_cnt
self.autoGen.set_batch_size(1) self.autoGen.set_batch_size(1)
self.test_db(dbname, stbname, childname, tag_cnt, column_cnt, child_cnt, insert_rows, binary_len, nchar_len) self.test_db(dbname, stbname, childname, tag_cnt, column_cnt, child_cnt, insert_rows, binary_len, nchar_len)
def stop(self): def stop(self):
tdSql.close() tdSql.close()
tdLog.success("%s successfully executed" % __file__) tdLog.success("%s successfully executed" % __file__)
'''
tdCases.addWindows(__file__, TDTestCase()) tdCases.addWindows(__file__, TDTestCase())
tdCases.addLinux(__file__, TDTestCase()) tdCases.addLinux(__file__, TDTestCase())
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册