3 ############################################################################
4 # Joshua R. Boverhof, David W. Robertson, LBNL
5 # See LBNLCopyright for copyright notice!
6 ###########################################################################
8 import unittest, tarfile, os, ConfigParser
13 CONFIG_FILE = 'config.txt'
15 def extractFiles(section, option):
16 config = ConfigParser.ConfigParser()
17 config.read(CONFIG_FILE)
18 archives = config.get(section, option)
19 archives = eval(archives)
21 tar = tarfile.open(file)
22 if not os.access(tar.membernames[0], os.R_OK):
23 for i in tar.getnames():
27 suite = unittest.TestSuite()
28 suite.addTest(test_wsdl.makeTestSuite("services_by_file"))
32 extractFiles(SECTION, 'archives')
33 unittest.main(defaultTest="makeTestSuite")
35 if __name__ == "__main__" : main()