2
# -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
3
# vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
5
# Copyright (C) 2010 Patrick Crews
10
Main script for the Drizzle test-runner
17
import lib.test_run_options as test_run_options
18
from lib.test_mode import handle_mode
19
from lib.server_mgmt.server_management import serverManager
20
from lib.sys_mgmt.system_management import systemManager
21
from lib.test_mgmt.execution_management import executionManager
29
variables = test_run_options.variables
31
# Some system-level work is constant regardless
32
# of the test to be run
33
system_manager = systemManager(variables)
35
# Create our server_manager
36
server_manager = serverManager(system_manager, variables)
38
# Get our mode-specific test_manager and test_executor
39
(test_manager,test_executor) = handle_mode(variables, system_manager)
41
# Gather our tests for execution
42
test_manager.gather_tests()
44
# Initialize test execution manager
45
execution_manager = executionManager(server_manager, system_manager
46
, test_manager, test_executor
50
execution_manager.execute_tests()
57
server_manager.cleanup()