本文整理汇总了C++中TestRunner::initialize方法的典型用法代码示例。如果您正苦于以下问题:C++ TestRunner::initialize方法的具体用法?C++ TestRunner::initialize怎么用?C++ TestRunner::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestRunner
的用法示例。
在下文中一共展示了TestRunner::initialize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: create
static void create(varargs int clone)
{
TestRunner runner;
COMPILE(HTTP_LOGD); /* Log daemon */
COMPILE(DAV_HOME + "initd"); /* Initialize DAV objects */
COMPILE(HTTP_AUTHENTICATE); /* Authentication daemon */
COMPILE(HTTP_AUTHORIZE); /* Authorization daemon */
#if 0
COMPILE(HTTP_STATUSD_400_500); /* Error-page handler */
#endif
COMPILE(HTTP_SERVER); /* The web-server */
COMPILE(HTTP_APP); /* Web-application container */
COMPILE(HTTP_MIME); /* Mime container */
COMPILE(HTTP_COOKIE); /* Cookie container */
COMPILE(HTTP_SESSION); /* Session container */
COMPILE(HTTP_USER); /* http user object */
COMPILE(HTTP_CONTENT); /* Content container */
COMPILE(HTTP_REQUEST); /* Request object */
COMPILE(HTTP_RESPONSE); /* Response object */
COMPILE(HTTP_URI); /* URI object */
/* Run the TestAll test-suite */
runner = new_object(JORINDE_LUNIT + "data/runner");
runner->initialize( HTTP_HOME + "tests/TestAll" );
runner->silent_on_success(TRUE);
runner->error_on_failure(TRUE);
runner->run();
/* Done initializing */
server = find_object(HTTP_SERVER); /* ... keep reference to this */
if(server->is_started()) {
DGDSYSLOG(server->get_server_string() + " started.\n");
DGDSYSLOG("Log: " + (SERVER_LOG)[1..] + "\n");
} else {