Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (32 sloc) 0.937 kb
#include "settings.h"
#include <map>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <boost/lexical_cast.hpp>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include "xscript/config.h"
#include "xscript/logger.h"
#include "xscript/vhost_data.h"
#ifdef HAVE_DMALLOC_H
#include <dmalloc.h>
#endif
using xscript::Config;
int
main(int argc, char *argv[]) {
(void)argc;
(void)argv;
try {
std::auto_ptr<Config> config = Config::create("test.conf");
config->startup();
xscript::VirtualHostData::instance()->setConfig(config.get());
CppUnit::TextUi::TestRunner r;
r.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
return r.run("", false) ? EXIT_SUCCESS : EXIT_FAILURE;
}
catch (const std::exception &e) {
std::cerr << e.what() << std::endl;
return EXIT_FAILURE;
}
}
Jump to Line
Something went wrong with that request. Please try again.