Merge pull request #3041 from taosdata/update_client_test_case
update client test case
This commit is contained in:
commit
7038b423ff
|
@ -27,13 +27,7 @@ class TDTestCase:
|
|||
|
||||
ret = tdSql.query('select database()')
|
||||
tdSql.checkData(0, 0, "db")
|
||||
|
||||
ret = tdSql.query('select server_version()')
|
||||
tdSql.checkData(0, 0, "2.0.0.0")
|
||||
|
||||
ret = tdSql.query('select client_version()')
|
||||
tdSql.checkData(0, 0, "2.0.0.0")
|
||||
|
||||
|
||||
ret = tdSql.query('select server_status()')
|
||||
tdSql.checkData(0, 0, 1)
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
###################################################################
|
||||
# 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 -*-
|
||||
|
||||
import sys
|
||||
from util.log import *
|
||||
from util.cases import *
|
||||
from util.sql import *
|
||||
|
||||
|
||||
class TDTestCase:
|
||||
def init(self, conn, logSql):
|
||||
tdLog.debug("start to execute %s" % __file__)
|
||||
tdSql.init(conn.cursor(), logSql)
|
||||
|
||||
def run(self):
|
||||
tdSql.prepare()
|
||||
|
||||
ret = tdSql.query('select server_version()')
|
||||
tdSql.checkData(0, 0, "2.0.0.6")
|
||||
|
||||
ret = tdSql.query('select client_version()')
|
||||
tdSql.checkData(0, 0, "2.0.0.6")
|
||||
|
||||
|
||||
def stop(self):
|
||||
tdSql.close()
|
||||
tdLog.success("%s successfully executed" % __file__)
|
||||
|
||||
|
||||
tdCases.addWindows(__file__, TDTestCase())
|
||||
tdCases.addLinux(__file__, TDTestCase())
|
|
@ -158,6 +158,7 @@ python3 ./test.py -f alter/alter_table_crash.py
|
|||
|
||||
# client
|
||||
python3 ./test.py -f client/client.py
|
||||
python3 ./test.py -f client/version.py
|
||||
|
||||
# Misc
|
||||
python3 testCompress.py
|
||||
|
|
|
@ -152,6 +152,7 @@ python3 ./test.py -f alter/alter_table_crash.py
|
|||
|
||||
# client
|
||||
python3 ./test.py -f client/client.py
|
||||
python3 ./test.py -f client/version.py
|
||||
|
||||
# Misc
|
||||
python3 testCompress.py
|
||||
|
|
Loading…
Reference in New Issue