keystone/run_tests.py
Dolph Mathews 73d26734d6 Tests running on in-memory sqlite db
Change-Id: I79e26b38416f0c143a0e83bb601c0046bb3dcf02
2011-08-17 11:32:06 -05:00

32 lines
788 B
Python
Executable File

#!/usr/bin/env python
"""Manages execution of keystone test suites"""
from keystone.test import KeystoneTest
class SQLTest(KeystoneTest):
config_name = 'sql.conf.template'
test_files = ('keystone.db',)
class MemcacheTest(KeystoneTest):
config_name = 'memcache.conf.template'
test_files = ('keystone.db',)
class LDAPTest(KeystoneTest):
config_name = 'ldap.conf.template'
test_files = ('keystone.db', 'ldap.db', 'ldap.db.db',)
TESTS = [
SQLTest,
# currently failing, and has yet to pass in jenkins: MemcacheTest,
LDAPTest,
]
if __name__ == '__main__':
for test_num, test_cls in enumerate(TESTS):
print 'Starting test %d of %d with config: %s' % \
(test_num + 1, len(TESTS), test_cls.config_name)
test_cls().run()