Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (32 sloc) 0.937 kb
5ef7b3a Work-in-progress. Start refactoring lua-block. Use normal userdata and m...
bacek authored
1 #include "settings.h"
2
3 #include <map>
4 #include <cstdlib>
5 #include <fstream>
6 #include <iostream>
7 #include <boost/lexical_cast.hpp>
8
9 #include <cppunit/ui/text/TestRunner.h>
10 #include <cppunit/extensions/TestFactoryRegistry.h>
11
12 #include "xscript/config.h"
13 #include "xscript/logger.h"
8bce81e config static methods removed
golubtsov authored
14 #include "xscript/vhost_data.h"
5ef7b3a Work-in-progress. Start refactoring lua-block. Use normal userdata and m...
bacek authored
15
16 #ifdef HAVE_DMALLOC_H
17 #include <dmalloc.h>
18 #endif
19
20 using xscript::Config;
21
22 int
23 main(int argc, char *argv[]) {
1ab3109 fixed some compiler warnings on build
compwolf authored
24 (void)argc;
25 (void)argv;
26
b8d426d changing styleguide :)
highpower authored
27 try {
28 std::auto_ptr<Config> config = Config::create("test.conf");
29 config->startup();
8bce81e config static methods removed
golubtsov authored
30 xscript::VirtualHostData::instance()->setConfig(config.get());
b8d426d changing styleguide :)
highpower authored
31
32 CppUnit::TextUi::TestRunner r;
33 r.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
34 return r.run("", false) ? EXIT_SUCCESS : EXIT_FAILURE;
35
36 }
37 catch (const std::exception &e) {
38 std::cerr << e.what() << std::endl;
39 return EXIT_FAILURE;
40 }
5ef7b3a Work-in-progress. Start refactoring lua-block. Use normal userdata and m...
bacek authored
41 }
Something went wrong with that request. Please try again.