add logging to the Guile module
[frida/frida.git] / src / test.cxx
1 #include <gtest/gtest.h>
2 #include "log4cxx/logger.h"
3 #include "log4cxx/basicconfigurator.h"
4 #include <QApplication>
5 #include "Config.hxx"
6
7 const char* TEST_DATA_DIRECTORY;
8
9 int main(int argc, char **argv) {
10 testing::InitGoogleTest(&argc, argv);
11 log4cxx::BasicConfigurator::configure();
12
13 log4cxx::LevelPtr level = log4cxx::Level::getError();
14 log4cxx::Logger::getRootLogger()->setLevel(level);
15
16 QApplication::addLibraryPath(CONFIG_LIBDIR);
17 if (argc > 1)
18 TEST_DATA_DIRECTORY = argv[1];
19 else
20 TEST_DATA_DIRECTORY = "./testdata";
21
22 return RUN_ALL_TESTS();
23 }