-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathkvdbTest.py
31 lines (22 loc) · 952 Bytes
/
kvdbTest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
#Copyright (C) 2006-2012 by Benedict Paten ([email protected])
#
#Released under the MIT license, see LICENSE.txt
import unittest
import os
import sys
import socket
from sonLib.bioio import system
class TestCase(unittest.TestCase):
def testSonLibKVTokyoCabinet(self):
system("sonLib_kvDatabaseTest --type=tokyocabinet")
def testSonLibKVKyotoTycoon(self):
#Needs a ktserver process running on the local machine, we need to add a check for this condition to stop the test failing
return #Disabled for now
system("sonLib_kvDatabaseTest --type=kyototycoon --host=localhost --port=1978 --maxKTRecordSize=6500000")
def testSonLibKVMySQLTest(self):
return
if socket.gethostname() == "hgwdev":
system("sonLib_kvDatabaseTest --type=mysql --host=kolossus-10 --user=cactus --pass=cactus --db=cactus")
if __name__ == '__main__':
unittest.main()